Skip to content

Commit 596aec1

Browse files
committed
Include version in artifact
1 parent 056703a commit 596aec1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
- name: Package
2525
run: |
2626
cd dist
27-
zip -r TinyTouch-linux-x64.zip TinyTouch
27+
zip -r TinyTouch-${{ github.ref_name }}-linux-x64.zip TinyTouch
2828
- uses: actions/upload-artifact@v4
2929
with:
3030
name: TinyTouch-linux-x64
31-
path: dist/TinyTouch-linux-x64.zip
31+
path: dist/TinyTouch-${{ github.ref_name }}-linux-x64.zip
3232

3333
build-windows:
3434
runs-on: windows-latest
@@ -46,8 +46,8 @@ jobs:
4646
python -m PyInstaller TinyTouch.spec
4747
- name: Package
4848
run: |
49-
Compress-Archive -Path dist\\TinyTouch.exe -DestinationPath dist\\TinyTouch-windows-x64.zip
49+
Compress-Archive -Path dist\\TinyTouch.exe -DestinationPath dist\\TinyTouch-${{ github.ref_name }}-windows-x64.zip
5050
- uses: actions/upload-artifact@v4
5151
with:
5252
name: TinyTouch-windows-x64
53-
path: dist/TinyTouch-windows-x64.zip
53+
path: dist/TinyTouch-${{ github.ref_name }}-windows-x64.zip

src/video_model.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ def __init__(self, video_path):
6565

6666

6767
if sys.platform.startswith("win"):
68-
self.program_version = "7.0 (Windows)"
68+
self.program_version = "7.1 (Windows)"
6969
elif sys.platform.startswith("linux"):
70-
self.program_version = "7.0 (Linux)"
71-
70+
self.program_version = "7.1 (Linux)"
71+
else:
72+
self.program_version = "7.1 (Unknown OS)"
7273
print("INFO: Program version:", self.program_version)
7374
self.parameter1_name = None
7475
self.parameter2_name = None

0 commit comments

Comments
 (0)