esoftplay 0.0.134-s → 0.0.134-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.
Files changed (2) hide show
  1. package/bin/cli.js +8 -9
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -570,7 +570,7 @@ function publish(notes) {
570
570
  fs.writeFileSync(appjson, JSON.stringify(ajson, undefined, 2))
571
571
  consoleSucces("start publishing " + status.toUpperCase() + " - PUBLISH_ID : " + (last_id + 1))
572
572
  if (isCustomServer) {
573
- if (fs.existsSync('/var/www/html/ota/')) {
573
+ if (!fs.existsSync('/var/www/html/ota/')) {
574
574
  consoleError("ota not found at /var/www/html/ota, please clone it first!")
575
575
  return
576
576
  }
@@ -589,14 +589,13 @@ function publish(notes) {
589
589
  });
590
590
 
591
591
  rl.question(`
592
- --- Detail Publish ---
592
+ --- Detail Publish ---
593
+ Nama Aplikasi : ${ajson.expo.name}
594
+ isDebug : ${cjson.config.isDebug}
595
+ runtimeVersion : ${ajson.expo.runtimeVersion}
596
+ latest update : ${currentUpdate ? date_format_str : '- not found'}
593
597
 
594
- Nama Aplikasi : ${ajson.expo.name}
595
- isDebug : ${cjson.config.isDebug}
596
- runtimeVersion : ${ajson.expo.runtimeVersion}
597
- latest update : ${currentUpdate ? date_format_str : '- not found'}}
598
-
599
- Pastikan data sudah benar sebelum anda melanjutkan?(y/n)
598
+ Pastikan data sudah benar sebelum anda melanjutkan?(y/n)
600
599
 
601
600
  `, function (input) {
602
601
  out = input
@@ -605,7 +604,7 @@ function publish(notes) {
605
604
 
606
605
  rl.on("close", function () {
607
606
  if (out && out.toLowerCase() == 'y') {
608
- command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath && cd $currentPath && rm -rf ./dist")
607
+ command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath " + notes + " && cd $currentPath && rm -rf ./dist")
609
608
  consoleSucces("Berhasil")
610
609
  const os = require('os')
611
610
  var d = new Date();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.134-s",
3
+ "version": "0.0.134-u",
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",