ADD macos SUPPORT

main
ColdWindScholar 2023-11-12 10:55:00 +08:00
parent ae9bf97e57
commit 750877517b
2 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,6 @@ jobs:
brew update
python3 -m pip install -U --force-reinstall pip
pip3 install -r requirements.txt
pip3 install tk
- name: Pack Tool
run: |
python3 build.py

View File

@ -6,7 +6,9 @@ ostype = system()
local = os.getcwd()
print("Building...")
if os.name == 'posix':
if ostype == 'Darwin':
os.system("pyinstaller -Fw tool.py --exclude-module=numpy -i icon.ico --collect-data sv_ttk --hidden-import=tkinter --hidden-import=PIL --hidden-import=PIL._tkinter_finder")
elif os.name == 'posix':
os.system(
"pyinstaller -Fw tool.py --exclude-module=numpy -i icon.ico --collect-data sv_ttk --hidden-import=tkinter --hidden-import=PIL --hidden-import=PIL._tkinter_finder --splash splash.png")
elif os.name == 'nt':