-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for self-contained bundle build for macOS and Windows
- Loading branch information
1 parent
e0f8089
commit dffef90
Showing
4 changed files
with
60 additions
and
12 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,31 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
|
||
a = Analysis(['nodemcu-pyflasher.py'], | ||
binaries=None, | ||
datas=[("images", "images")], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
name='NodeMCU-PyFlasher', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=False , icon='images/icon-256.icns') | ||
app = BUNDLE(exe, | ||
name='NodeMCU-PyFlasher.app', | ||
icon='./images/icon-256.icns', | ||
bundle_identifier='com.frightanic.nodemcu-pyflasher') |
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,26 @@ | ||
# -*- mode: python -*- | ||
|
||
block_cipher = None | ||
|
||
a = Analysis(['nodemcu-pyflasher.py'], | ||
binaries=[], | ||
datas=[("images", "images")], | ||
hiddenimports=[], | ||
hookspath=[], | ||
runtime_hooks=[], | ||
excludes=[], | ||
win_no_prefer_redirects=False, | ||
win_private_assemblies=False, | ||
cipher=block_cipher) | ||
pyz = PYZ(a.pure, a.zipped_data, | ||
cipher=block_cipher) | ||
exe = EXE(pyz, | ||
a.scripts, | ||
a.binaries, | ||
a.zipfiles, | ||
a.datas, | ||
name='NodeMCU-PyFlasher', | ||
debug=False, | ||
strip=False, | ||
upx=True, | ||
console=False , icon='images\\icon-256.ico') |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
pyinstaller --log-level=DEBUG ^ | ||
--windowed ^ | ||
--icon=.\images\icon-256.png ^ | ||
--name="NodeMCU-PyFlasher" ^ | ||
--noconfirm ^ | ||
--onefile ^ | ||
nodemcu-pyflasher.py | ||
build-on-win.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
#!/usr/bin/env bash | ||
rm -fr build dist | ||
#rm -fr build dist | ||
pyinstaller --log-level=DEBUG \ | ||
--windowed \ | ||
--icon=./images/icon-256.icns \ | ||
--name="NodeMCU-PyFlasher" \ | ||
--noconfirm \ | ||
--onefile \ | ||
--osx-bundle-identifier=com.frightanic.nodemcu-pyflasher \ | ||
nodemcu-pyflasher.py | ||
build-on-mac.spec |