From 2c87d50a1f6f7a8a0eeb328d395ed620ed687f25 Mon Sep 17 00:00:00 2001 From: ChienNM3 Date: Wed, 31 Jan 2024 14:42:34 +0700 Subject: [PATCH] Move version outside --- .github/workflows/build.yml | 8 +++++--- build/build-linux.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c79ee84..bee585f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,8 @@ jobs: - { name: 'TorPlayer', os: 'windows-latest' } runs-on: ${{ matrix.build.os }} + env: + VERSION: 0.0.3 steps: - name: Checkout uses: actions/checkout@v4 @@ -37,7 +39,7 @@ jobs: - name: Build MacOS if: runner.os == 'macOS' run: | - ./build/build-macos.sh 0.0.2 + ./build/build-macos.sh $VERSION shell: bash # ---- End MacOS -------- @@ -46,7 +48,7 @@ jobs: - name: Build Windows if: runner.os == 'Windows' run: | - .\build\build-windows.bat 0.0.2 + .\build\build-windows.bat $VERSION shell: powershell # ------ End Windows ------- @@ -61,7 +63,7 @@ jobs: - name: Build Linux if: runner.os == 'Linux' run: | - ./build/build-linux.sh 0.0.2 + ./build/build-linux.sh $VERSION shell: bash # ----- End Linux ------- diff --git a/build/build-linux.sh b/build/build-linux.sh index 70b1b5d..5259f46 100755 --- a/build/build-linux.sh +++ b/build/build-linux.sh @@ -5,7 +5,7 @@ SCRIPT_DIR="$(dirname "$(readlink -f "$0")")" readonly VERSION="${1:-0.0.1}" readonly APP=TorPlayer -readonly APPDIR=build/bin/${APP} +readonly APPDIR=build/bin/${APP}_${VERSION} mkdir -p "$APPDIR/usr/bin"