Merge branch 'master' into v1
This commit is contained in:
commit
84e3a90d91
5 changed files with 38 additions and 13 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
```
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue