Skip to content

Commit

Permalink
Move version outside
Browse files Browse the repository at this point in the history
  • Loading branch information
ChienNM3 committed Jan 31, 2024
1 parent 87336fb commit 2c87d50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 --------

Expand All @@ -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 -------

Expand All @@ -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 -------

Expand Down
2 changes: 1 addition & 1 deletion build/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 2c87d50

Please sign in to comment.