Upload via GUI (7543 Dateien)
This commit is contained in:
+4
-1
@@ -358,7 +358,10 @@ class Updater {
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
try {
|
||||
const child = spawn(filePath, [], {
|
||||
// Das eigene Setup (ab 2.1.8) aktualisiert mit --update ohne Rückfragen und startet die App neu.
|
||||
// Ältere NSIS-Setups kennen den Schalter nicht und bekommen ihn deshalb nicht.
|
||||
const isOwnSetup = /^git-manager-gui-setup/i.test(path.basename(filePath));
|
||||
const child = spawn(filePath, isOwnSetup ? ['--update'] : [], {
|
||||
detached: true,
|
||||
stdio: 'ignore',
|
||||
shell: false
|
||||
|
||||
Reference in New Issue
Block a user