plugin/updater: pass command line parameters (if any)
Massimo Melina committed
Mar 27, 2023 at 11:25 UTC
530a06fe1cd122d052c90116761efbc1748c7b3e
1 file changed
+6
-3
plugins/updater-disabled/plugin.js
+6
-3
@@ -1,8 +1,11 @@
1
/*
2
-this plugin is currently experimental and working only with exe version.
2
+This plugin is currently experimental and working only with exe version.
3
Its capability is to offer automatic restart when an update is available in the form of hfs.exe-new file.
4
+
5
+Tip: In my case I'm uploading "hfs.exe-new" over ftp, and it's a bit slow, so to avoid the plugin to catch
6
+ an unfinished file, I do the upload using a temporary name, and only when it's done I rename it to "hfs.exe-new".
7
*/
5
-exports.version = 0.1
8
+exports.version = 0.2
9
exports.description = "automatic restart when an update is available in the form of hfs.exe-new file"
10
exports.apiRequired = 3 // api.log
11
@@ -12,7 +15,7 @@ const BATCH = `@echo off
15
:loop
16
setlocal
17
SET hfs_updater=1
15
-hfs
18
+hfs %*
19
endlocal
20
if exist hfs.exe-new (
21
move /y hfs.exe hfs.exe-old