esoftplay 0.0.126-s → 0.0.126-u
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +16 -1
- package/modules/user/index.tsx +0 -2
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -138,6 +138,10 @@ function switchStatusAssets(status) {
|
|
|
138
138
|
const icondebug = DIR + "assets/icon.debug.png"
|
|
139
139
|
const iconlive = DIR + "assets/icon.live.png"
|
|
140
140
|
|
|
141
|
+
const icon_iospng = DIR + "assets/icon_ios.png"
|
|
142
|
+
const icon_iosdebug = DIR + "assets/icon_ios.debug.png"
|
|
143
|
+
const icon_ioslive = DIR + "assets/icon_ios.live.png"
|
|
144
|
+
|
|
141
145
|
const iconNotifpng = DIR + "assets/iconNotif.png"
|
|
142
146
|
const iconNotifdebug = DIR + "assets/iconNotif.debug.png"
|
|
143
147
|
const iconNotiflive = DIR + "assets/iconNotif.live.png"
|
|
@@ -156,11 +160,13 @@ function switchStatusAssets(status) {
|
|
|
156
160
|
}
|
|
157
161
|
if (status.includes('l')) {
|
|
158
162
|
copyFileFromTo(iconlive, iconpng)
|
|
163
|
+
copyFileFromTo(icon_ioslive, icon_iospng)
|
|
159
164
|
copyFileFromTo(splashlive, splashpng)
|
|
160
165
|
copyFileFromTo(iconNotiflive, iconNotifpng)
|
|
161
166
|
}
|
|
162
167
|
if (status.includes('d')) {
|
|
163
168
|
copyFileFromTo(icondebug, iconpng)
|
|
169
|
+
copyFileFromTo(icon_iosdebug, icon_iospng)
|
|
164
170
|
copyFileFromTo(splashdebug, splashpng)
|
|
165
171
|
copyFileFromTo(iconNotifdebug, iconNotifpng)
|
|
166
172
|
}
|
|
@@ -964,8 +970,17 @@ function switchStatus(status) {
|
|
|
964
970
|
let valid = true
|
|
965
971
|
if (valid)
|
|
966
972
|
valid = copyFromTo(status.includes("l") ? applive : appdebug, appjson)
|
|
967
|
-
if (valid)
|
|
973
|
+
if (valid) {
|
|
968
974
|
valid = copyFromTo(status.includes("l") ? conflive : confdebug, confjson)
|
|
975
|
+
|
|
976
|
+
const cjson = readToJSON(confjson)
|
|
977
|
+
if (cjson.hasOwnProperty('config')) {
|
|
978
|
+
if (cjson.config.hasOwnProperty('build')) {
|
|
979
|
+
const [usr, pwd] = cjson.config.build
|
|
980
|
+
command(`expo logout && expo login -u ${usr} -p ${pwd}`)
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
969
984
|
if (valid && fs.existsSync(gplist))
|
|
970
985
|
valid = copyFromTo(status.includes("l") ? gplistlive : gplistdebug, gplistlive)
|
|
971
986
|
switchStatusAssets(status)
|
package/modules/user/index.tsx
CHANGED