Skip to content

Commit ba948c4

Browse files
committed
u
1 parent 58ad41b commit ba948c4

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.github/workflows/build-mac.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ jobs:
1919
cd Qtcord
2020
pip install -r requirements.txt
2121
pip install pyinstaller
22-
cd src/
23-
pyinstaller -wi ../icon.icns main.py
24-
# python3 helper_scripts/package_mac.py
22+
python3 helper_scripts/package_mac.py
2523
- run: ls
2624
- uses: actions/upload-artifact@v4
2725
with:

helper_scripts/package_mac.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
"""
22
This doesn't work.
33
"""
4+
45
import os
56

67

78
try:
89
import PyInstaller
10+
911
if PyInstaller:
1012
print("PyInstaller is good to go!")
1113
except ModuleNotFoundError:
12-
raise Exception("You need pyinstaller installed. Make sure to install a version at least 2 months old as to avoid false positives on virus detectors. Use pip install pyinstaller.")
14+
raise Exception(
15+
"You need pyinstaller installed. Make sure to install a version at least 2 months old as to avoid false positives on virus detectors. Use pip install pyinstaller."
16+
)
1317

1418
os.chdir("src")
15-
os.system("pyinstaller ../main.spec")
19+
# os.system("pyinstaller ../main.spec")
20+
os.system("pyinstaller -wi ../icon.icns ../src/main.py")

0 commit comments

Comments
 (0)