-
Notifications
You must be signed in to change notification settings - Fork 18
56 lines (46 loc) · 1.54 KB
/
test_bundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Package Application with Pyinstaller
on:
workflow_dispatch:
jobs:
build-win64:
runs-on: windows-latest
steps:
- name: (Install) python
uses: actions/setup-python@v4
with:
python-version: "3.11"
architecture: "x64"
- name: (Install) python dev tools
shell: bash
run: python -m pip install pip wheel setuptools
- name: Checkout repository
uses: actions/checkout@v4
- name: (Install) dependencies
run: python -m pip install -r "requirements_win64.txt"
shell: bash
- name: (Install) pyinstaller
shell: bash
run: |
set PYINSTALLER_COMPILE_BOOTLOADER=TRUE
pip install pyinstaller
- name: (Create) Executable
shell: bash
run: |
pyinstaller \
--clean \
--noconfirm \
rok_tracker.spec
echo "✔️ Executables created successfully" >> $GITHUB_STEP_SUMMARY
echo " - Python version used: '3.11'" >> $GITHUB_STEP_SUMMARY
echo " - Python architecture used: 'x64'" >> $GITHUB_STEP_SUMMARY
- name: Prepare executable for upload
run: |
cp "config.json" "dist/RoK Tracker/config.json"
mkdir "dist/RoK Tracker/deps"
cp -r "deps/inputs/" "dist/RoK Tracker/deps/"
tar.exe -a -c -f "RoK Tracker.zip" -C "dist/" "RoK Tracker"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: RoK Tracker
path: "RoK Tracker.zip"