张一三
张一三
  • 发布:2018-07-30 22:46
  • 更新:2018-07-31 05:00
  • 阅读:10623

HBuilderX 与HBuilder 配置文件manifest.json在应用图标配置方面有什么区别?HBuilder里配置,然后HBuilderX打包会不会有问题?

分类:HBuilder

官方已经停止了对HBuilder软件的功能更新,是想引导大家使用HBuilderX。

但HBuilder在有些方面是很优秀的,其实我一直对HBuilder打开速度慢方面无所谓,慢点没什么关系,重要的是能解决问题和带来极大的便利性。

我就非常中意HBuilder在选定某个字符串后,在右侧会标记出本页面所有含有该字符串的位置,这对识别、查找、删除极其方便。

另外HBuilderX在配置manifest.json文件方面远远不如HBuilder,例如HBuilder在配置应用图标时只需直接上传等。

再有就是我对HBuilderX中只要在文件列表单点击文件就会打开文件这个功能非常不习惯,强制自己习惯一段时间后还是感觉很厌烦。

既然HBuilder已被官方放弃,使用HBuilderX也就是必然趋势。只是实在割舍不掉HBuilder带来的某些便利性。所以就HBuilder和HBuilderX结合起来用。

1、但HBuilder与HBuilderX在manifest.json配置内容在配置应用图标图片上有区别,现在很迷惑。如果我用HBuilder配置manifest.json里的应用图标图片后,再用HBuilderX打包发行,会不会导致在某些手机上图标图标显示错误???????

如本页底部代码中所示,HBuilder中有“app@2x”,“app@2x”,"settings@2x","spotlight@2x”等图标配置,而在HBuilderX没有。

//下面是HBuildeXr的图标图片配置

"icons": {  
    "ios": {  
        "prerendered": "", /*必选,是否高亮显示*/  
        "auto": "", /*可选,512x512,用于自动生成各种尺寸图标的大分辨率程序图标*/  
        "iphone": {  
            "normal": "",/*可选,57x57,iPhone普通屏幕程序图标*/  
            "retina": "",/*可选,114x114,iPhone高分屏程序图标*/  
            "retina7": "",/*可选,120x120,iPhone iOS7高分屏程序图标*/  
            "spotlight-normal": "", /*可选,29x29,iPhone Spotlight搜索程序图标*/  
            "spotlight-retina": "", /*可选,58x58,iPhone高分屏Spotlight搜索程序图标*/  
            "spotlight-retina7": "",/*可选,80x80,iPhone iOS7高分屏Spotlight搜索程序图标*/  
            "settings-normal": "", /*可选,29x29,iPhone设置页面程序图标*/  
            "settings-retina": ""  
        },  
        "ipad": {  
            "normal": "", /*可选,72x72,iPad普通屏幕程序图标*/  
            "retina": "", /*可选,144x144,iPad高分屏程序图标*/  
            "normal7": "", /*可选,76x76,iPad iOS7程序图标*/  
            "retina7": "", /*可选,152x152,iPad iOS7高分屏程序图标*/  
            "spotlight-normal": "", /*可选,50x50,iPad Spotlight搜索程序图标*/  
            "spotlight-retina": "", /*可选,100x100,iPad高分屏Spotlight搜索程序图标*/  
            "spotlight-normal7": "",/*可选,40x40,iPad iOS7 Spotlight搜索程序图标*/  
            "spotlight-retina7": "",/*可选,80x80,iPad iOS7高分屏Spotlight搜索程序图标*/  
            "settings-normal": "",/*可选,29x29,iPad设置页面程序图标*/  
            "settings-retina": ""  
        }  
    },  
    "android": {  
        "mdpi": "", /*必选,48x48,普通屏程序图标*/  
        "ldpi": "", /*必选,48x48,大屏程序图标*/  
        "hdpi": "", /*必选,72x72,高分屏程序图标*/  
        "xhdpi": "",/*必选,96x96,720P高分屏程序图标*/  
        "xxhdpi": ""  
    }  
},

//下面是HBuilder的图标图片配置

"icons": {  
    "ios": {  
        "prerendered": true, /*应用图标是否已经高亮处理,在iOS6及以下设备上有效*/  
        "auto": "", /*应用图标,分辨率:512x512,用于自动生成各种尺寸程序图标*/  
        "iphone": {  
            "normal": "", /*iPhone3/3GS程序图标,分辨率:57x57*/  
            "retina": "", /*iPhone4程序图标,分辨率:114x114*/  
            /*iPhone4S/5/6程序图标,分辨率:120x120*/  
            /*iPhone6 Plus程序图标,分辨率:180x180*/  
            "spotlight-normal": "", /*iPhone3/3GS Spotlight搜索程序图标,分辨率:29x29*/  
            "spotlight-retina": "", /*iPhone4 Spotlight搜索程序图标,分辨率:58x58*/  
            /*iPhone4S/5/6 Spotlight搜索程序图标,分辨率:80x80*/  
            "settings-normal": "", /*iPhone4设置页面程序图标,分辨率:29x29*/  
            /*iPhone4S/5/6设置页面程序图标,分辨率:58x58*/  
            "app@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_120x120.png",  
            "app@3x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_180x180.png",  
            "settings@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_58x58.png",  
            "settings@3x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_87x87.png",  
            "spotlight@3x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_120x120.png",  
            "spotlight@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_80x80.png",  
            "notification@3x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_60x60.png",  
            "notification@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_40x40.png"  
        },  
        "ipad": {  
            "normal": "", /*iPad普通屏幕程序图标,分辨率:72x72*/  
            "retina": "", /*iPad高分屏程序图标,分辨率:144x144*/  
            /*iPad iOS7程序图标,分辨率:76x76*/  
            /*iPad iOS7高分屏程序图标,分辨率:152x152*/  
            "spotlight-normal": "", /*iPad Spotlight搜索程序图标,分辨率:50x50*/  
            "spotlight-retina": "", /*iPad高分屏Spotlight搜索程序图标,分辨率:100x100*/  
            /*iPad iOS7 Spotlight搜索程序图标,分辨率:40x40*/  
            /*iPad iOS7高分屏Spotlight搜索程序图标,分辨率:80x80*/  
            /*iPad设置页面程序图标,分辨率:29x29*/  
            "settings": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_29x29.png",  
            "spotlight": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_40x40.png",  
            "settings@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_58x58.png",  
            "spotlight@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_80x80.png",  
            "notification": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_20x20.png",  
            "notification@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_40x40.png",  
            "app": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_76x76.png",  
            "app@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_152x152.png",  
            "proapp@2x": "E:/百度云盘/photoshop/eater/icon/app_icon_iPhone_167x167.png"  
        }  
    },  
    "android": {  
        "mdpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_48x48.png", /*普通屏程序图标,分辨率:48x48*/  
        "ldpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_48x48.png", /*大屏程序图标,分辨率:48x48*/  
        "hdpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_72x72.png", /*高分屏程序图标,分辨率:72x72*/  
        "xhdpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_96x96.png",/*720P高分屏程序图标,分辨率:96x96*/  
        "xxhdpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_144x144.png",/*1080P 高分屏程序图标,分辨率:144x144*/  
        "xxxhdpi": "E:/百度云盘/photoshop/eater/icon/app_icon_android_192x192.png"  
    }  
},
2018-07-30 22:46 负责人:无 分享
已邀请:
DCloud_heavensoft

DCloud_heavensoft

manifest格式是5+的,不属于ide范围。同样的5+App,manifest都是一个格式,ide也不会自动给你改manifest。你在HBuilder里做manifest,在HBuilderX里打包是一样的。

文件单击是预览,双击是打开。HBuilder单击文件没有反应,HBuilderX补了预览功能。

滚动条信息点功能在计划中,欢迎到需求墙投票:http://dev.dcloud.net.cn/wish/

  • 张一三 (作者)

    兄弟你这么一大清早6点不到就在论坛解答大家遇到的问题,这份敬业着实让我佩服。感谢你的解答,也解决了我的疑惑,非常感谢!

    2018-07-31 07:02

该问题目前已经被锁定, 无法添加新回复