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.
Files changed (2) hide show
  1. package/bin/cli.js +17 -5
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -1201,11 +1201,23 @@ function build() {
1201
1201
  return
1202
1202
  }
1203
1203
 
1204
- const { getCurrentVersion } = require('/var/www/html/ota/scripts/config_version')
1205
- if (getCurrentVersion)
1206
- if (cjson.updated < getCurrentVersion(ajson.expo.slug)) {
1207
- consoleError('config.json is outdated, please update to continue!')
1208
- return
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' : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.199",
3
+ "version": "0.0.200",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",