esoftplay 0.0.134-u → 0.0.134-w
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 +8 -9
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -579,8 +579,8 @@ function publish(notes) {
|
|
|
579
579
|
let date_format_str;
|
|
580
580
|
if (isUpdateExist) {
|
|
581
581
|
currentUpdate = fs.readdirSync('/var/www/html/ota/updates/' + ajson.expo.runtimeVersion)[0]
|
|
582
|
-
var d = new Date(currentUpdate * 1000);
|
|
583
|
-
date_format_str = d
|
|
582
|
+
var d = new Date(currentUpdate * 1000).toISOString();
|
|
583
|
+
date_format_str = d
|
|
584
584
|
}
|
|
585
585
|
var out = false
|
|
586
586
|
const rl = readline.createInterface({
|
|
@@ -595,16 +595,15 @@ isDebug : ${cjson.config.isDebug}
|
|
|
595
595
|
runtimeVersion : ${ajson.expo.runtimeVersion}
|
|
596
596
|
latest update : ${currentUpdate ? date_format_str : '- not found'}
|
|
597
597
|
|
|
598
|
-
Pastikan data sudah benar sebelum anda melanjutkan?(y/n)
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
});
|
|
598
|
+
Pastikan data sudah benar sebelum anda melanjutkan?(y/n)`,
|
|
599
|
+
function (input) {
|
|
600
|
+
out = input
|
|
601
|
+
rl.close();
|
|
602
|
+
});
|
|
604
603
|
|
|
605
604
|
rl.on("close", function () {
|
|
606
605
|
if (out && out.toLowerCase() == 'y') {
|
|
607
|
-
command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath " + notes + " && cd $currentPath && rm -rf ./dist")
|
|
606
|
+
command("rm -rf ./dist && esp start && currentPath=$(pwd) && cd /var/www/html/ota/ && npm run publish $currentPath \"" + notes + "\" && cd $currentPath && rm -rf ./dist")
|
|
608
607
|
consoleSucces("Berhasil")
|
|
609
608
|
const os = require('os')
|
|
610
609
|
var d = new Date();
|