-
Notifications
You must be signed in to change notification settings - Fork 40
46 lines (36 loc) · 1.12 KB
/
build-windows.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
name: Build Windows Executable
on:
push:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Install escpos all modules includes win32 printing module if windows SO
run: |
pip install 'python-escpos[all]'
- name: Install socketio client
run: |
pip install 'python-socketio[client]'
- name: Install project dependencies
run: |
pip install -r requirements.cli.txt
- name: Build executable
run: |
pyinstaller --onefile --add-data "./capabilities.json:escpos" --console --name fiscalberry --distpath dist --icon ./src/common/assets/fiscalberry.ico src/cli.py
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: fiscalberry
path: dist