feat: Start on packaging for windows
All checks were successful
Build Docker / Build Image (push) Successful in 44s
All checks were successful
Build Docker / Build Image (push) Successful in 44s
This commit is contained in:
parent
65eedff61c
commit
0fc95d0eb1
4
.gitignore
vendored
4
.gitignore
vendored
@ -13,4 +13,6 @@ plugins/signatures.json
|
|||||||
|
|
||||||
user_data/
|
user_data/
|
||||||
customPlugins/
|
customPlugins/
|
||||||
cache/
|
cache/
|
||||||
|
dist/
|
||||||
|
build/
|
2
main.py
2
main.py
@ -1613,4 +1613,4 @@ if __name__ == '__main__':
|
|||||||
if "--debug" in sys.argv:
|
if "--debug" in sys.argv:
|
||||||
app.run(debug=True,host='0.0.0.0')
|
app.run(debug=True,host='0.0.0.0')
|
||||||
else:
|
else:
|
||||||
app.run(host='0.0.0.0')
|
app.run(host='0.0.0.0',threaded=True)
|
63
main.spec
Normal file
63
main.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
|
||||||
|
import compileall
|
||||||
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
import os
|
||||||
|
|
||||||
|
compileall.compile_dir('.', force=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
datas = [
|
||||||
|
('templates', 'templates'),
|
||||||
|
('assets', 'assets'),
|
||||||
|
('themes', 'themes'),
|
||||||
|
('plugins', 'plugins')
|
||||||
|
]
|
||||||
|
hiddenimports = [
|
||||||
|
'plugins.automations',
|
||||||
|
'plugins.batching',
|
||||||
|
'plugins.customPlugins',
|
||||||
|
'plugins.renewal',
|
||||||
|
'plugins.varo'
|
||||||
|
]
|
||||||
|
|
||||||
|
# Copy the plugins folder to the dist folder
|
||||||
|
os.system(f'cp -r plugins dist/')
|
||||||
|
|
||||||
|
a = Analysis(
|
||||||
|
['main.py'],
|
||||||
|
pathex=[],
|
||||||
|
binaries=[],
|
||||||
|
datas=datas,
|
||||||
|
hiddenimports=hiddenimports,
|
||||||
|
hookspath=[],
|
||||||
|
hooksconfig={},
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
noarchive=False,
|
||||||
|
optimize=0,
|
||||||
|
)
|
||||||
|
pyz = PYZ(a.pure)
|
||||||
|
|
||||||
|
exe = EXE(
|
||||||
|
pyz,
|
||||||
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.datas,
|
||||||
|
[],
|
||||||
|
name='FireWallet',
|
||||||
|
debug=False,
|
||||||
|
bootloader_ignore_signals=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
upx_exclude=[],
|
||||||
|
runtime_tmpdir=None,
|
||||||
|
console=False,
|
||||||
|
disable_windowed_traceback=False,
|
||||||
|
argv_emulation=False,
|
||||||
|
target_arch=None,
|
||||||
|
codesign_identity=None,
|
||||||
|
entitlements_file=None,
|
||||||
|
onefile=False,
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user