diff --git a/.travis.yml b/.travis.yml index 9e7dd66e..95ad0b73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,28 +24,23 @@ before_deploy: - npm run build-docs - npm run package -- --all - npm run package-node - - npm run deb32 + - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-linux-x64/resources/app/server/ + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-linux && chmod +x osc-midi-linux + - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-win32-x64/resources/app/server/ + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-windows.exe && chmod +x osc-midi-windows.exe + - cd $TRAVIS_BUILD_DIR/dist/open-stage-control-darwin-x64/open-stage-control.app/Contents/Resources/app/server + - wget https://github.com/jean-emmanuel/open-stage-control-midi/releases/latest/download/osc-midi-osx && chmod +x osc-midi-osx + - cd $TRAVIS_BUILD_DIR - npm run deb64 - - npm run debarm - cd dist - mkdir packages - - mv open-stage-control-linux-ia32/*.deb packages/open-stage-control-${VERSION}-i386.deb - mv open-stage-control-linux-x64/*.deb packages/open-stage-control-${VERSION}-amd64.deb - - mv open-stage-control-linux-armv7l/*.deb packages/open-stage-control-${VERSION}-armv7l.deb - mv open-stage-control-node open-stage-control-${VERSION}-node - - mv open-stage-control-win32-ia32 open-stage-control-${VERSION}-win32-ia32 - mv open-stage-control-win32-x64 open-stage-control-${VERSION}-win32-x64 - - mv open-stage-control-linux-ia32 open-stage-control-${VERSION}-linux-ia32 - mv open-stage-control-linux-x64 open-stage-control-${VERSION}-linux-x64 - - mv open-stage-control-linux-armv7l open-stage-control-${VERSION}-linux-armv7l - - mv open-stage-control-linux-arm64 open-stage-control-${VERSION}-linux-arm64 - zip -q -r --symlinks packages/open-stage-control-${VERSION}-osx.zip open-stage-control-darwin-x64/open-stage-control.app - zip -q -r packages/open-stage-control-${VERSION}-node.zip open-stage-control-${VERSION}-node - - zip -q -r packages/open-stage-control-${VERSION}-win32-ia32.zip open-stage-control-${VERSION}-win32-ia32 - zip -q -r packages/open-stage-control-${VERSION}-win32-x64.zip open-stage-control-${VERSION}-win32-x64 - - zip -q -r packages/open-stage-control-${VERSION}-linux-ia32.zip open-stage-control-${VERSION}-linux-ia32 - zip -q -r packages/open-stage-control-${VERSION}-linux-x64.zip open-stage-control-${VERSION}-linux-x64 - - zip -q -r packages/open-stage-control-${VERSION}-linux-armv7l.zip open-stage-control-${VERSION}-linux-armv7l - - zip -q -r packages/open-stage-control-${VERSION}-linux-arm64.zip open-stage-control-${VERSION}-linux-arm64 - ls packages - cd .. diff --git a/CHANGELOG.md b/CHANGELOG.md index 825eabbc..177a1d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,17 @@ # Changelog -## 1.6.3 +## 1.7.0 + +**Important change** + +Prebuilt binaries are now supplied only for 64bit Linux/MacOs/Windows. Other platforms should use the `node` package or build it from sources. + +**MIDI support** + +As of this version, packages except the `node` package are bundled with a midi binary that will be used whenever midi's `path` option is not set. It is no longer necessary to install `python` and `python-rtmidi`. + +**Changelog** + - bug fixes - missing context menu (copy, paste) in inspector inputs @@ -12,9 +23,10 @@ - widgets - keyboard: add `velocity` property (allows mapping the touch coordinates between `off` (top) and `on` (bottom)) - - input: add `validation` property (allows defining a regular expression that the valud must match) + - input: add `validation` property (allows defining a regular expression that the value must match) - midi - accept sending sysex strings without spaces between the bytes + - load prebuilt midi binary on 64bit linux/windows/osx - misc - sessions converted from v0 will use the widget's html property to display the former label property diff --git a/package.json b/package.json index 35bdd1e8..8a44e4d0 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": "1.6.2", + "version": "1.7.0-beta1", "author": { "name": "Jean-Emmanuel Doucet", "email": "jean-emmanuel@ammd.net" @@ -83,11 +83,8 @@ "start": "electron app/", "build": "npm run build-css && npm run build-js && node scripts/copy-assets.js && echo '\\033[36m=> JS and CSS assets built successfully. Run \"npm run package\" to build an executable or \"npm start\" to run the app.\\033[0m\n'", "package": "node scripts/package.js", - "package-rpi": "node scripts/package.js --old-rpi", "package-node": "node scripts/package-node.js", - "deb32": "electron-installer-debian --src dist/open-stage-control-linux-ia32/ --arch i386 --dest dist/open-stage-control-linux-ia32/ --icon resources/images/logo.png", "deb64": "electron-installer-debian --src dist/open-stage-control-linux-x64/ --arch amd64 --dest dist/open-stage-control-linux-x64/ --icon resources/images/logo.png", - "debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png", "build-css": "node scripts/build-css.js", "build-js": "npm run build-launcher-js && npm run build-client-js && npm run build-server-js", "build-client-js": "node scripts/build-client.js", diff --git a/resources/docs/docs/getting-started/introduction.md b/resources/docs/docs/getting-started/introduction.md index 8cf22a1a..314a3cec 100644 --- a/resources/docs/docs/getting-started/introduction.md +++ b/resources/docs/docs/getting-started/introduction.md @@ -28,11 +28,11 @@ iOS devices must be of version `10.3` or higher. ## Installation -??? example "Linux" +??? example "Linux 64bit" **Ubuntu / Debian** - - [Download](/download) `open-stage-control-VERSION-ARCH.deb` + - [Download](/download) `open-stage-control-VERSION-amd64.deb` - Install it by running this as root in a terminal: ```bash dpkg -i path/to/open-stage-control-VERSION-ARCH.deb @@ -40,18 +40,25 @@ iOS devices must be of version `10.3` or higher. **Other linux distributions** - - [Download](/download) `open-stage-control-VERSION-linux-ARCH.zip` + - [Download](/download) `open-stage-control-VERSION-linux-x64.zip` - Extract it in the location of your choice - The file inside it named `open-stage-control` is the app's main executable -??? example "Mac" +??? example "Mac 64bit" - [Download](/download) `open-stage-control-VERSION-osx.zip` - Extract it in the location of your choice - Drag `open-stage-control.app` in your `Application` folder -??? example "Windows" +??? example "Windows 64bit" - - [Download](/download) `open-stage-control-VERSION-win32-ARCH.zip` + - [Download](/download) `open-stage-control-VERSION-win32-x64.zip` - Extract it in the location of your choice - The file inside it named `open-stage-control.exe` is the app's main executable + +??? example "Other systems" + + - Install [Node.js](https://nodejs.org/en/download/package-manager/) + - Download `open-stage-control-VERSION-node.zip` + - Extract it in the location of your choice + - In a terminal, run `node /path/to/open-stage-control-VERSION-node --help` diff --git a/resources/docs/docs/getting-started/running-from-sources.md b/resources/docs/docs/getting-started/running-from-sources.md index 8071bd0d..58c19463 100644 --- a/resources/docs/docs/getting-started/running-from-sources.md +++ b/resources/docs/docs/getting-started/running-from-sources.md @@ -21,6 +21,13 @@ npm install npm run build ``` +!!! tip "Raspberry systems" + Run this instead of `npm install` if the architecture is `armv7l` + ``` + npm install --arch=armv7l + ``` + + !!! info "Updating from sources" ```bash git pull @@ -51,12 +58,9 @@ npm run build-docs ## Package from sources +Follow the "Run from sources" instructions, then: + ```bash -git clone https://github.com/jean-emmanuel/open-stage-control -cd open-stage-control/ -# uncomment next line if you want the latest release -# instead of the current development version -# git checkout $(git describe --tags `git rev-list --tags --max-count=1`) # TARGET_PLATFORM can be linux, win32 (windows) or darwin (os x) export PLATFORM=TARGET_PLATFORM @@ -64,21 +68,8 @@ export PLATFORM=TARGET_PLATFORM export ARCH=TARGET_ARCH -npm install - -# run this instead if ARCH is armv7l -# npm install --arch=armv7l - - -npm run build - npm run package -# Do one of the following if you want a deb package for debian/ubuntu -npm run deb32 -npm run deb64 -npm run debarm - # The node-only package can be built with npm run package-node @@ -89,3 +80,10 @@ This will build the app in `dist/open-stage-control-PLATFORM-ARCH`. !!! info "" Building the app for windows from a linux system requires wine to be installed. + + +## Debian/Ubuntu installer + +``` +npm run deb64 +``` diff --git a/resources/docs/docs/midi/midi-configuration.md b/resources/docs/docs/midi/midi-configuration.md index e03558d6..a1eee906 100644 --- a/resources/docs/docs/midi/midi-configuration.md +++ b/resources/docs/docs/midi/midi-configuration.md @@ -1,46 +1,55 @@ ## Installation -Enabling MIDI support in Open Stage Control requires additional softwares to be installed on the server's system: -- [python 3](https://www.python.org/downloads/) -- python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html#from-pypi) +=== "Linux / Windows / OSX" -??? example "Linux" + Since version `1.7.0`, Open Stage Control comes bundled with built-in MIDI support if you're using the 64bit package for Linux, OSX or Windows. - - Install `python3` and `python3-pip` from your distribution's package repository - - Install `python-rtmidi` from a terminal by executing this command - ```bash - python3 -m pip install python-rtmidi --upgrade - ``` -??? example "Mac" +=== "Other systems" - - Download and install [Python 3 for Mac OS](https://www.python.org/downloads/mac-osx/) - - Open a terminal - - Install `pip` (package installer for python) by executing these commands - ``` - curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py - python get-pip.py - ``` - - Install `python-rtmidi` by executing this command - ```bash - python -m pip install python-rtmidi --upgrade - ``` + Enabling MIDI support on other systems or when building Open Stage Control from sources requires additional softwares to be installed on the server's system: -??? example "Windows" + - [python 3](https://www.python.org/downloads/) + - python package [python-rtmidi](https://spotlightkid.github.io/python-rtmidi/installation.html#from-pypi) - - Download and install [Python 3 for Windows](https://www.python.org/downloads/windows/) - - **make sure to check the option** "Add Python 3.x to PATH" - - Open a terminal (++win+r++) - - Install `pip` (package installer for python) by executing these commands - ``` - curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py - python get-pip.py - ``` - - Install `python-rtmidi` by executing this command - ```bash - python -m pip install python-rtmidi --upgrade - ``` + + ??? example "Linux" + + - Install `python3` and `python3-pip` from your distribution's package repository + - Install `python-rtmidi` from a terminal by executing this command + ```bash + python3 -m pip install python-rtmidi --upgrade + ``` + + ??? example "Mac" + + - Download and install [Python 3 for Mac OS](https://www.python.org/downloads/mac-osx/) + - Open a terminal + - Install `pip` (package installer for python) by executing these commands + ``` + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + python get-pip.py + ``` + - Install `python-rtmidi` by executing this command + ```bash + python -m pip install python-rtmidi --upgrade + ``` + + ??? example "Windows" + + - Download and install [Python 3 for Windows](https://www.python.org/downloads/windows/) + - **make sure to check the option** "Add Python 3.x to PATH" + - Open a terminal (++win+r++) + - Install `pip` (package installer for python) by executing these commands + ``` + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + python get-pip.py + ``` + - Install `python-rtmidi` by executing this command + ```bash + python -m pip install python-rtmidi --upgrade + ``` ## Configuration @@ -73,17 +82,17 @@ Enable parsing of midi time code messages (disabled by default). These will be r Send program changes with a `-1` offset to match some software/hardware implementations -**`path=/path/to/python`** - -Indicates where to find python binary in case open stage control doesn't (`Error: spawn python3 ENOENT`). - - **`device_name:virtual`** (*Linux / Mac only*): creates a virtual midi device with one input port and one output port **`jack`** (*Linux only*): use JACK MIDI instead of ALSA. `python-rtmidi` must be compiled with [jack support](https://spotlightkid.github.io/python-rtmidi/installation.html#linux) for this to work. +**`path=/path/to/python`** + +Indicates where to find python binary in case open stage control doesn't (`Error: spawn python3 ENOENT`). *Only use this if you know what you are doing.* + + ## Widget setup In order to send MIDI messages, a widget must have at least one `target` formatted as follows: diff --git a/resources/docs/download.md b/resources/docs/download.md index d0d27d44..ff9ebb29 100644 --- a/resources/docs/download.md +++ b/resources/docs/download.md @@ -1,5 +1,8 @@ # Download the latest release +!!! tip "" + [*Click here*](/docs/getting-started/introduction/#installation) to read the installation guide. + Open Stage Control