-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (37 loc) · 1.1 KB
/
build.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
name: Build
on:
push:
branches:
- "*"
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2
- name: Set up Python
uses: actions/setup-python@v5.3.0
with:
python-version: '>=3.10'
- name: Install dependencies
run: |
pip install pyinstaller -r requirements.txt
- name: Build with PyInstaller
run: |
pyinstaller --add-binary "7z/7z.exe;7z" --onefile main.pyw --name DazContentInstaller
- name: Create package directory
run: mkdir -p dist/DazContentInstaller
- name: Create logger directory
run: mkdir -p dist/DazContentInstaller/logs
- name: Copy config.ini file
run: cp config.ini dist/DazContentInstaller/
- name: Move the built binary
run: mv dist/DazContentInstaller.exe dist/DazContentInstaller/
- name: Upload Artifacts
uses: actions/upload-artifact@v4.4.3
with:
name: DazContentInstaller
path: dist/