-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
41 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Build Mac | ||
run-name: Build Mac | ||
# on: | ||
# push: | ||
# tags: | ||
# - "**" | ||
on: [push] | ||
jobs: | ||
Build-Windows: | ||
runs-on: macos-latest | ||
steps: | ||
# Use Python 3.12.4 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12.4" | ||
- run: git clone https://github.com/mak448a/QTCord/ --depth=1 | ||
- run: cd QTCord/helper_scripts && pip install -r requirements.txt && pip install pyinstaller && python3 package_mac.py | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: "QTCord-Mac" | ||
path: "QTCord/src/dist/QTCord" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
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.") | ||
|
||
os.chdir("src") | ||
os.system("pyinstaller ../../main.spec") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters