ADD macos SUPPORT
parent
ae9bf97e57
commit
750877517b
|
@ -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
|
||||
|
|
4
build.py
4
build.py
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue