Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
mak448a committed Aug 22, 2024
1 parent 58ad41b commit ba948c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
cd Qtcord
pip install -r requirements.txt
pip install pyinstaller
cd src/
pyinstaller -wi ../icon.icns main.py
# python3 helper_scripts/package_mac.py
python3 helper_scripts/package_mac.py
- run: ls
- uses: actions/upload-artifact@v4
with:
Expand Down
9 changes: 7 additions & 2 deletions helper_scripts/package_mac.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
"""
This doesn't work.
"""

import os


try:
import PyInstaller

if PyInstaller:
print("PyInstaller is good to go!")
except ModuleNotFoundError:
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.")
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."
)

os.chdir("src")
os.system("pyinstaller ../main.spec")
# os.system("pyinstaller ../main.spec")
os.system("pyinstaller -wi ../icon.icns ../src/main.py")

0 comments on commit ba948c4

Please sign in to comment.