Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
  • Loading branch information
ChienNM3 committed Jan 31, 2024
1 parent 6e93c44 commit 87336fb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Build MacOS
if: runner.os == 'macOS'
run: |
./build/build-macos.sh
./build/build-macos.sh 0.0.2
shell: bash
# ---- End MacOS --------

Expand All @@ -46,7 +46,7 @@ jobs:
- name: Build Windows
if: runner.os == 'Windows'
run: |
.\build\build-windows.bat
.\build\build-windows.bat 0.0.2
shell: powershell
# ------ End Windows -------

Expand All @@ -61,7 +61,7 @@ jobs:
- name: Build Linux
if: runner.os == 'Linux'
run: |
./build/build-linux.sh
./build/build-linux.sh 0.0.2
shell: bash
# ----- End Linux -------

Expand Down
3 changes: 2 additions & 1 deletion build/build-linux.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/sh
set -xe

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

readonly VERSION="${1:-0.0.1}"
readonly APP=TorPlayer
readonly APPDIR=build/bin/${APP}_${VERSION}
readonly APPDIR=build/bin/${APP}


mkdir -p "$APPDIR/usr/bin"
Expand Down
4 changes: 2 additions & 2 deletions build/build-macos.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
set -xe

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"

readonly VERSION="${1:-0.0.1}"
readonly APPDIR="build/bin/TorPlayer_${VERSION}.app"

readonly APPDIR="build/bin/TorPlayer.app"

mkdir -p $APPDIR/Contents/{MacOS,Resources}

Expand Down
2 changes: 1 addition & 1 deletion build/build-windows.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off

go build -ldflags "-H windowsgui" -o build\bin\TorPlayer.exe
go build -ldflags "-H windowsgui" -o build\bin\TorPlayer_%1.exe

0 comments on commit 87336fb

Please sign in to comment.