-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (43 loc) · 1.24 KB
/
macos.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
name: Auto Compile on Commit (macOS)
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build the application with PyInstaller
run: |
pyinstaller script.spec
- name: List contents of the output directory
run: |
ls -R dist # Recursively list all files in the 'dist' directory
- name: Prepare files for zipping
run: |
mkdir -p zip_temp
mv dist/Vector24 zip_temp/ # Adjust path based on actual build output
mv app.log zip_temp/
mv config.json zip_temp/
mv positions.json zip_temp/
mv startup.mp3 zip_temp/
mv version.json zip_temp/
- name: Create ZIP archive
run: |
cd zip_temp
zip -r ../Vector24-ADDVNAME-amd64-macos.zip ./*
- name: Upload ZIP as an artifact
uses: actions/upload-artifact@v3
with:
name: final-zip-package
path: Vector24-ADDVNAME-amd64-macos.zip