mirror of
https://github.com/marcelstoer/nodemcu-pyflasher.git
synced 2025-07-13 14:26:37 +00:00
Add support for self-contained bundle build for macOS and Windows
This commit is contained in:
parent
e0f8089b68
commit
dffef90bd6
31
build-on-mac.spec
Normal file
31
build-on-mac.spec
Normal file
@ -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')
|
26
build-on-win.spec
Normal file
26
build-on-win.spec
Normal file
@ -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')
|
@ -1,7 +1,3 @@
|
|||||||
pyinstaller --log-level=DEBUG ^
|
pyinstaller --log-level=DEBUG ^
|
||||||
--windowed ^
|
|
||||||
--icon=.\images\icon-256.png ^
|
|
||||||
--name="NodeMCU-PyFlasher" ^
|
|
||||||
--noconfirm ^
|
--noconfirm ^
|
||||||
--onefile ^
|
build-on-win.spec
|
||||||
nodemcu-pyflasher.py
|
|
||||||
|
9
build.sh
9
build.sh
@ -1,10 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
rm -fr build dist
|
#rm -fr build dist
|
||||||
pyinstaller --log-level=DEBUG \
|
pyinstaller --log-level=DEBUG \
|
||||||
--windowed \
|
|
||||||
--icon=./images/icon-256.icns \
|
|
||||||
--name="NodeMCU-PyFlasher" \
|
|
||||||
--noconfirm \
|
--noconfirm \
|
||||||
--onefile \
|
build-on-mac.spec
|
||||||
--osx-bundle-identifier=com.frightanic.nodemcu-pyflasher \
|
|
||||||
nodemcu-pyflasher.py
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user