diff --git a/CHANGELOG.md b/CHANGELOG.md index a0b29a8e..952de23f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # Changelog + +## 0.49.6 + +- bug fixes + - windows users launching the app from a terminal now need to add a double dash (--) before their options + - launcher: disabled unstable `Relaunch` action + ## 0.49.5 - bug fixes - launcher: file/folder browsing not working - - cli: parsing issues on windows ## 0.49.4 diff --git a/package.json b/package.json index 55fec5a2..7f3d4a2c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "open-stage-control", "productName": "Open Stage Control", "description": "Libre and modular OSC / MIDI controller", - "version": "0.49.5", + "version": "0.49.6", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" @@ -68,7 +68,7 @@ "uglifyify": "5.0.2", "webworkify": "1.5.0", "ws": "7.2.1", - "yargs": "14.0.0" + "yargs": "15.1.0" }, "optionalDependencies": { "electron": "7.1.11", diff --git a/resources/docs/docs/getting-started.md b/resources/docs/docs/getting-started.md index 5070e506..e3b44f89 100644 --- a/resources/docs/docs/getting-started.md +++ b/resources/docs/docs/getting-started.md @@ -193,3 +193,14 @@ npm run build npm run package-node ``` + +## Running in a terminal on Windows + +Windows users launching the app from a terminal need to add a double dash (`--`) before their options: + +```bash +open-stage-control.exe -- --port 5555 [...] + +# when running from sources +npm start -- -- [options] +``` diff --git a/src/launcher/index.js b/src/launcher/index.js index 50e56b4a..4e1c4c3b 100644 --- a/src/launcher/index.js +++ b/src/launcher/index.js @@ -271,15 +271,16 @@ $(document).ready(()=>{ } }) ]})) - menu.append(new MenuItem({type: 'submenu' , label: 'App', submenu: [ - new MenuItem({ - label: 'Relaunch', - click: ()=>{ - app.relaunch() - app.exit(0) - } - }), - ]})) + // not working currently + // menu.append(new MenuItem({type: 'submenu' , label: 'App', submenu: [ + // new MenuItem({ + // label: 'Relaunch', + // click: ()=>{ + // app.relaunch() + // app.exit(0) + // } + // }), + // ]})) window.addEventListener('contextmenu', function(e) { diff --git a/src/server/settings.js b/src/server/settings.js index 9eea096b..6891aebc 100644 --- a/src/server/settings.js +++ b/src/server/settings.js @@ -1,5 +1,12 @@ // This prevents argv parsing to be breaked when the app is packaged (executed without 'electron' prefix) -if (process.argv[1]&&process.argv[1].indexOf('-')==0) process.argv.unshift('') +if (process.argv[1] && process.argv[1].indexOf('-') == 0) process.argv.unshift('') + +// on windows, electron stops parsing after the first argument containing a colon +// https://github.com/electron/electron/pull/13039 +// windows cli users need to add a double dash (--) before their options to avoid that +// it must be stripped to let yargs work normally +if (process.argv[2] == '--') process.argv.splice(2, 1) + var infos = require('../package.json')