-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.31 KB
/
pyinstaller.yml
File metadata and controls
33 lines (33 loc) · 1.31 KB
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
name: PyInstaller Action
on: [push]
jobs:
pyinstaller-build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set date environment variable
run: echo "DATE=$(date +%d-%m-%Y)" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install jsoncparser
pip install certifi
pip install am-i-connected
pip install pyperclip
- name: Run PyInstaller
run: |
pyinstaller --noconfirm --onedir --console --name "Snark" --add-data "version.txt:." --add-data "activities.txt:." --add-data "logo128.png:." --add-data "icon-win32.ico:." --add-data "icon-linux.png:." --add-data "LICENSE:." --add-data "README.md:." --add-data "save:save/" --add-data "themes:themes/" --add-data "third_party:third_party/" --add-data "images:images/" --add-data "logs:logs/" "GUI.py"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Snark-${{ matrix.os }}-${{ env.DATE }}
path: dist/Snark