From 9431fd722efcdcde3f812d1cf28e15158cb94b88 Mon Sep 17 00:00:00 2001 From: bordun Date: Tue, 10 Nov 2020 13:05:06 +0100 Subject: [PATCH] docs, log & restore user rpi build --- CHANGELOG.md | 4 +-- .../getting-started/running-from-sources.md | 34 +++++++++---------- scripts/package.js | 2 +- 3 files changed, 19 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec47b611..177a1d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ **Important change** -Prebuilt binaries are now supplied only for 64bit Linux/MacOs/Windows. Other platforms should use the `node` package. +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** @@ -23,7 +23,7 @@ As of this version, packages except the `node` package are bundled with a midi b - 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 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/scripts/package.js b/scripts/package.js index 876e6d7a..40049303 100644 --- a/scripts/package.js +++ b/scripts/package.js @@ -12,7 +12,7 @@ packager({ name: appData.name, platform: all ? ['linux', 'win32', 'darwin'] : process.env.PLATFORM, arch: process.env.ARCH || 'x64', - electronVersion: require('../package.json').optionalDependencies.electron, + electronVersion: process.env.ARCH === 'armv7l' ? '1.7.11' : require('../package.json').optionalDependencies.electron, overwrite: true, out: path.resolve(__dirname + '/../dist'), icon: path.resolve(__dirname + '/../resources/images/logo'),