esoftplay 0.0.199 → 0.0.200
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 +17 -5
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -1201,11 +1201,23 @@ function build() {
|
|
|
1201
1201
|
return
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
|
-
|
|
1205
|
-
if (
|
|
1206
|
-
if (
|
|
1207
|
-
|
|
1208
|
-
|
|
1204
|
+
let ajson = readToJSON(appjson)
|
|
1205
|
+
if (ajson.expo.hasOwnProperty("updates"))
|
|
1206
|
+
if (ajson.expo.updates.hasOwnProperty('url') && !ajson.expo.updates.url.includes("https://u.expo.dev")) {
|
|
1207
|
+
if (!fs.existsSync('./code-signing')) {
|
|
1208
|
+
consoleError("./code-signing not found!")
|
|
1209
|
+
return
|
|
1210
|
+
}
|
|
1211
|
+
consoleSucces("START PULL OTA..")
|
|
1212
|
+
command('cd /var/www/html/ota && git fetch origin master && git reset --hard FETCH_HEAD && git clean -df')
|
|
1213
|
+
consoleSucces("END PULL OTA..")
|
|
1214
|
+
|
|
1215
|
+
const { getCurrentVersion } = require('/var/www/html/ota/scripts/config_version')
|
|
1216
|
+
if (getCurrentVersion)
|
|
1217
|
+
if (readToJSON(confjson).updated < getCurrentVersion(ajson.expo.slug)) {
|
|
1218
|
+
consoleError('config.json is outdated, please update to continue!')
|
|
1219
|
+
return
|
|
1220
|
+
}
|
|
1209
1221
|
}
|
|
1210
1222
|
|
|
1211
1223
|
const local = args[1] == 'local' ? ' --local' : ''
|