ionic resources
http://ionicframework.com/docs/cli/icon-splashscreen.html
用一条指令生成ionic生需Icons & splash,拷贝至meteor项目,使用的下面的配置。
App.info({ id: ‘xxx.xxx.xxxx‘, name: ‘xxx‘, description: ‘xxx‘, author: ‘---‘, version: ‘0.3.2‘, email: ‘9830131#qq.com‘, website: ‘http://www.xxxxx.com‘});
App.icons({ // iOS
‘iphone‘: ‘resources/icons/icon-60.png‘,‘iphone_2x‘: ‘resources/icons/[email protected]‘,‘iphone_3x‘: ‘resources/icons/[email protected]‘,‘ipad‘: ‘resources/icons/icon-76.png‘,‘ipad_2x‘: ‘resources/icons/[email protected]‘,
// Android ‘android_ldpi‘: ‘resources/icons/drawable-ldpi-icon.png‘, ‘android_mdpi‘: ‘resources/icons/drawable-mdpi-icon.png‘, ‘android_hdpi‘: ‘resources/icons/drawable-hdpi-icon.png‘, ‘android_xhdpi‘: ‘resources/icons/drawable-xhdpi-icon.png‘ }); App.launchScreens({ // iOS ‘iphone‘: ‘resources/splash/Default~iphone.png‘, ‘iphone_2x‘: ‘resources/splash/[email protected]~iphone.png‘, ‘iphone5‘: ‘resources/splash/[email protected]~iphone.png‘, ‘iphone6‘: ‘resources/splash/Default-667h.png‘, ‘iphone6p_portrait‘: ‘resources/splash/Default-736h.png‘, ‘iphone6p_landscape‘: ‘resources/splash/Default-Landscape-736h.png‘, ‘ipad_portrait‘: ‘resources/splash/Default-Portrait~ipad.png‘, ‘ipad_portrait_2x‘: ‘resources/splash/[email protected]~ipad.png‘, ‘ipad_landscape‘: ‘resources/splash/Default-Landscape~ipad.png‘, ‘ipad_landscape_2x‘: ‘resources/splash/[email protected]~ipad.png‘, // Android ‘android_ldpi_portrait‘: ‘resources/splash/drawable-port-ldpi-screen.png‘, ‘android_ldpi_landscape‘: ‘resources/splash/drawable-land-ldpi-screen.png‘, ‘android_mdpi_portrait‘: ‘resources/splash/drawable-port-mdpi-screen.png‘, ‘android_mdpi_landscape‘: ‘resources/splash/drawable-land-mdpi-screen.png‘, ‘android_hdpi_portrait‘: ‘resources/splash/drawable-port-hdpi-screen.png‘, ‘android_hdpi_landscape‘: ‘resources/splash/drawable-land-hdpi-screen.png‘, ‘android_xhdpi_portrait‘: ‘resources/splash/drawable-port-xhdpi-screen.png‘, ‘android_xhdpi_landscape‘: ‘resources/splash/drawable-land-xhdpi-screen.png‘ });
时间: 2024-11-04 21:00:56