|
@@ -11,6 +11,8 @@ filesToModify.forEach((file) => {
|
|
if (file == './src/manifest.json') {
|
|
if (file == './src/manifest.json') {
|
|
var maps = state["app-plus"].distribute.sdkConfigs.maps
|
|
var maps = state["app-plus"].distribute.sdkConfigs.maps
|
|
var geolocation = state["app-plus"].distribute.sdkConfigs.geolocation
|
|
var geolocation = state["app-plus"].distribute.sdkConfigs.geolocation
|
|
|
|
+ var icons = state["app-plus"].distribute.icons
|
|
|
|
+ var push = state["app-plus"].distribute.sdkConfigs.push
|
|
|
|
|
|
if (args === 'zhiHuiYun') {
|
|
if (args === 'zhiHuiYun') {
|
|
state.name = '综合智慧云'
|
|
state.name = '综合智慧云'
|
|
@@ -29,6 +31,41 @@ filesToModify.forEach((file) => {
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
|
|
+ icons.android = {
|
|
|
|
+ "hdpi" : "unpackage/res/icons/72x72.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/icons/96x96.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/icons/144x144.png",
|
|
|
|
+ "xxxhdpi" : "unpackage/res/icons/192x192.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.appstore = "unpackage/res/icons/1024x1024.png"
|
|
|
|
+ icons.ios.ipad = {
|
|
|
|
+ "app": "unpackage/res/icons/76x76.png",
|
|
|
|
+ "app@2x": "unpackage/res/icons/152x152.png",
|
|
|
|
+ "notification": "unpackage/res/icons/20x20.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "proapp@2x": "unpackage/res/icons/167x167.png",
|
|
|
|
+ "settings": "unpackage/res/icons/29x29.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "spotlight": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.iphone = {
|
|
|
|
+ "app@2x": "unpackage/res/icons/120x120.png",
|
|
|
|
+ "app@3x": "unpackage/res/icons/180x180.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "notification@3x": "unpackage/res/icons/60x60.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "settings@3x": "unpackage/res/icons/87x87.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png",
|
|
|
|
+ "spotlight@3x": "unpackage/res/icons/120x120.png"
|
|
|
|
+ }
|
|
|
|
+ push.unipush.icons.small = {
|
|
|
|
+ "hdpi" : "unpackage/res/push/36x36.png",
|
|
|
|
+ "ldpi" : "unpackage/res/push/18x18.png",
|
|
|
|
+ "mdpi" : "unpackage/res/push/24x24.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/push/48x48.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/push/72x72.png"
|
|
|
|
+ }
|
|
} else if (args === 'xunJian') {
|
|
} else if (args === 'xunJian') {
|
|
state.name = '智能巡更'
|
|
state.name = '智能巡更'
|
|
state.appid = '__UNI__BF1A1F0'
|
|
state.appid = '__UNI__BF1A1F0'
|
|
@@ -46,6 +83,41 @@ filesToModify.forEach((file) => {
|
|
geolocation.amap.appkey_android = "63bef5d715bfa5433189e7b65516dfa5"
|
|
geolocation.amap.appkey_android = "63bef5d715bfa5433189e7b65516dfa5"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
|
|
+ icons.android = {
|
|
|
|
+ "hdpi" : "unpackage/res/icons-xunJian/72x72.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/icons-xunJian/96x96.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/icons-xunJian/144x144.png",
|
|
|
|
+ "xxxhdpi" : "unpackage/res/icons-xunJian/192x192.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.appstore = "unpackage/res/icons-xunJian/1024x1024.png"
|
|
|
|
+ icons.ios.ipad = {
|
|
|
|
+ "app": "unpackage/res/icons-xunJian/76x76.png",
|
|
|
|
+ "app@2x": "unpackage/res/icons-xunJian/152x152.png",
|
|
|
|
+ "notification": "unpackage/res/icons-xunJian/20x20.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons-xunJian/40x40.png",
|
|
|
|
+ "proapp@2x": "unpackage/res/icons-xunJian/167x167.png",
|
|
|
|
+ "settings": "unpackage/res/icons-xunJian/29x29.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons-xunJian/58x58.png",
|
|
|
|
+ "spotlight": "unpackage/res/icons-xunJian/40x40.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons-xunJian/80x80.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.iphone = {
|
|
|
|
+ "app@2x": "unpackage/res/icons-xunJian/120x120.png",
|
|
|
|
+ "app@3x": "unpackage/res/icons-xunJian/180x180.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons-xunJian/40x40.png",
|
|
|
|
+ "notification@3x": "unpackage/res/icons-xunJian/60x60.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons-xunJian/58x58.png",
|
|
|
|
+ "settings@3x": "unpackage/res/icons-xunJian/87x87.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons-xunJian/80x80.png",
|
|
|
|
+ "spotlight@3x": "unpackage/res/icons-xunJian/120x120.png"
|
|
|
|
+ }
|
|
|
|
+ push.unipush.icons.small = {
|
|
|
|
+ "hdpi" : "unpackage/res/push-xunJian/36x36.png",
|
|
|
|
+ "ldpi" : "unpackage/res/push-xunJian/18x18.png",
|
|
|
|
+ "mdpi" : "unpackage/res/push-xunJian/24x24.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/push-xunJian/48x48.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/push-xunJian/72x72.png"
|
|
|
|
+ }
|
|
} else if (args === 'huiYi') {
|
|
} else if (args === 'huiYi') {
|
|
state.name = '智能会议'
|
|
state.name = '智能会议'
|
|
state.appid = '__UNI__F3963F8'
|
|
state.appid = '__UNI__F3963F8'
|
|
@@ -63,6 +135,41 @@ filesToModify.forEach((file) => {
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
|
|
+ icons.android = {
|
|
|
|
+ "hdpi" : "unpackage/res/icons/72x72.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/icons/96x96.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/icons/144x144.png",
|
|
|
|
+ "xxxhdpi" : "unpackage/res/icons/192x192.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.appstore = "unpackage/res/icons/1024x1024.png"
|
|
|
|
+ icons.ios.ipad = {
|
|
|
|
+ "app": "unpackage/res/icons/76x76.png",
|
|
|
|
+ "app@2x": "unpackage/res/icons/152x152.png",
|
|
|
|
+ "notification": "unpackage/res/icons/20x20.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "proapp@2x": "unpackage/res/icons/167x167.png",
|
|
|
|
+ "settings": "unpackage/res/icons/29x29.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "spotlight": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.iphone = {
|
|
|
|
+ "app@2x": "unpackage/res/icons/120x120.png",
|
|
|
|
+ "app@3x": "unpackage/res/icons/180x180.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "notification@3x": "unpackage/res/icons/60x60.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "settings@3x": "unpackage/res/icons/87x87.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png",
|
|
|
|
+ "spotlight@3x": "unpackage/res/icons/120x120.png"
|
|
|
|
+ }
|
|
|
|
+ push.unipush.icons.small = {
|
|
|
|
+ "hdpi" : "unpackage/res/push/36x36.png",
|
|
|
|
+ "ldpi" : "unpackage/res/push/18x18.png",
|
|
|
|
+ "mdpi" : "unpackage/res/push/24x24.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/push/48x48.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/push/72x72.png"
|
|
|
|
+ }
|
|
} else if (args === 'menJin') {
|
|
} else if (args === 'menJin') {
|
|
state.name = '智能门禁'
|
|
state.name = '智能门禁'
|
|
state.appid = '__UNI__8D6E9FD'
|
|
state.appid = '__UNI__8D6E9FD'
|
|
@@ -80,6 +187,41 @@ filesToModify.forEach((file) => {
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.amap.appkey_android = "ffc71dfd4e576596027f8f45a1b8fb2f"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_ios = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
geolocation.tencent.apikey_android = "EGOBZ-74ZET-ST7XS-VYICT-RBLHZ-KLFEX"
|
|
|
|
+ icons.android = {
|
|
|
|
+ "hdpi" : "unpackage/res/icons/72x72.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/icons/96x96.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/icons/144x144.png",
|
|
|
|
+ "xxxhdpi" : "unpackage/res/icons/192x192.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.appstore = "unpackage/res/icons/1024x1024.png"
|
|
|
|
+ icons.ios.ipad = {
|
|
|
|
+ "app": "unpackage/res/icons/76x76.png",
|
|
|
|
+ "app@2x": "unpackage/res/icons/152x152.png",
|
|
|
|
+ "notification": "unpackage/res/icons/20x20.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "proapp@2x": "unpackage/res/icons/167x167.png",
|
|
|
|
+ "settings": "unpackage/res/icons/29x29.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "spotlight": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png"
|
|
|
|
+ }
|
|
|
|
+ icons.ios.iphone = {
|
|
|
|
+ "app@2x": "unpackage/res/icons/120x120.png",
|
|
|
|
+ "app@3x": "unpackage/res/icons/180x180.png",
|
|
|
|
+ "notification@2x": "unpackage/res/icons/40x40.png",
|
|
|
|
+ "notification@3x": "unpackage/res/icons/60x60.png",
|
|
|
|
+ "settings@2x": "unpackage/res/icons/58x58.png",
|
|
|
|
+ "settings@3x": "unpackage/res/icons/87x87.png",
|
|
|
|
+ "spotlight@2x": "unpackage/res/icons/80x80.png",
|
|
|
|
+ "spotlight@3x": "unpackage/res/icons/120x120.png"
|
|
|
|
+ }
|
|
|
|
+ push.unipush.icons.small = {
|
|
|
|
+ "hdpi" : "unpackage/res/push/36x36.png",
|
|
|
|
+ "ldpi" : "unpackage/res/push/18x18.png",
|
|
|
|
+ "mdpi" : "unpackage/res/push/24x24.png",
|
|
|
|
+ "xhdpi" : "unpackage/res/push/48x48.png",
|
|
|
|
+ "xxhdpi" : "unpackage/res/push/72x72.png"
|
|
|
|
+ }
|
|
}
|
|
}
|
|
} else if ('./src/pages.json') {
|
|
} else if ('./src/pages.json') {
|
|
state.pages.forEach((e, index) => {
|
|
state.pages.forEach((e, index) => {
|