From 4258d9047edad226f85a4987e373983f459f8a6b Mon Sep 17 00:00:00 2001 From: omriharel Date: Thu, 4 Jun 2020 15:04:56 +0300 Subject: [PATCH] add warning hint to linux scripts when build fails, update release assets --- scripts/linux/build-dev.sh | 6 +++++- scripts/linux/build-release.sh | 7 ++++++- scripts/misc/default-config.yaml | 4 +++- scripts/misc/release-notes.txt | 2 +- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/scripts/linux/build-dev.sh b/scripts/linux/build-dev.sh index 1a772c60..b2502f46 100755 --- a/scripts/linux/build-dev.sh +++ b/scripts/linux/build-dev.sh @@ -12,4 +12,8 @@ echo "- versionTag $VERSION_TAG" echo "- buildType $BUILD_TYPE" go build -o deej-dev -ldflags "-X main.gitCommit=$GIT_COMMIT -X main.versionTag=$VERSION_TAG -X main.buildType=$BUILD_TYPE" ./cmd -echo 'Done.' +if [ $? -eq 0 ]; then + echo 'Done.' +else + echo 'Error: "go build" exited with a non-zero code. Are you running this script from the deej directory?' +fi diff --git a/scripts/linux/build-release.sh b/scripts/linux/build-release.sh index 662a3500..caceb6d0 100755 --- a/scripts/linux/build-release.sh +++ b/scripts/linux/build-release.sh @@ -12,4 +12,9 @@ echo "- versionTag $VERSION_TAG" echo "- buildType $BUILD_TYPE" go build -o deej-release -ldflags "-s -w -X main.gitCommit=$GIT_COMMIT -X main.versionTag=$VERSION_TAG -X main.buildType=$BUILD_TYPE" ./cmd -echo 'Done.' +if [ $? -eq 0 ]; then + echo 'Done.' +else + echo 'Error: "go build" exited with a non-zero code. Are you running this script from the deej directory?' +fi + diff --git a/scripts/misc/default-config.yaml b/scripts/misc/default-config.yaml index 60ba6f65..808ff757 100644 --- a/scripts/misc/default-config.yaml +++ b/scripts/misc/default-config.yaml @@ -1,6 +1,8 @@ # process names are case-insensitive # you can use 'master' to indicate the master channel, or a list of process names to create a group -# you can also use 'system' on windows to control the "system sounds" volume +# windows only: +# - experimental - you can use 'mic' to control your mic input level (uses the default recording device) +# - you can use 'system' to control the "system sounds" volume slider_mapping: 0: master 1: chrome.exe diff --git a/scripts/misc/release-notes.txt b/scripts/misc/release-notes.txt index 56e4405d..0879f5bd 100644 --- a/scripts/misc/release-notes.txt +++ b/scripts/misc/release-notes.txt @@ -9,7 +9,7 @@ Launch instructions: - Verify that your config has the correct COM port for your Arduino board - Launch `deej.exe`. You can always edit the config while `deej` is running -**_Linux users:_** for the time being, please build from source. If there's demand for precompiled release binaries, please [let us know!](https://discord.gg/nf88NJu) +**_Linux users:_** for the time being, please build from source. You'll need `libgtk-3-dev`, `libappindicator3-dev` and `libwebkit2gtk-4.0-dev` for system tray support. If there's demand for precompiled release binaries, please [let us know!](https://discord.gg/nf88NJu) > _Tip: If `deej.exe` seems to crash or doesn't start, please [send us](https://discord.gg/nf88NJu) the `logs\deej-latest-run.log` file from your `deej` directory.