6 changed files with 342 additions and 4 deletions
@ -0,0 +1,84 @@
|
||||
# -*- mode: python; coding: utf-8 -*- |
||||
|
||||
import itertools |
||||
import os |
||||
from pathlib import Path |
||||
|
||||
|
||||
PROJECT_ROOT = os.path.abspath('.') |
||||
|
||||
|
||||
binaries = [] |
||||
binaries += [(f'{PROJECT_ROOT}/jmvenv/lib/lib*', '.')] |
||||
|
||||
|
||||
datas = [] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/dropin.cache','twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/__init__.py', 'twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/txtorcon_endpoint_parser.py', 'twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/scripts/obwatch/orderbook.html', '.')] |
||||
datas += [(f'{PROJECT_ROOT}/scripts/obwatch/vendor/bootstrap.min.css', |
||||
'vendor')] |
||||
datas += [(f'{PROJECT_ROOT}/scripts/obwatch/vendor/jquery-3.5.1.slim.min.js', |
||||
'vendor')] |
||||
datas += [(f'{PROJECT_ROOT}/scripts/obwatch/vendor/sorttable.js', |
||||
'vendor')] |
||||
|
||||
|
||||
scripts = [ |
||||
'scripts/obwatch/ob-watcher.py', |
||||
] |
||||
|
||||
|
||||
hiddenimports = [ |
||||
'chromalog.mark.helpers', |
||||
'chromalog.mark.helpers.simple', |
||||
'twisted.plugins', |
||||
'twisted.plugins.txtorcon_endpoint_parser', |
||||
] |
||||
|
||||
|
||||
a = {} |
||||
pyz = {} |
||||
exe = {} |
||||
|
||||
|
||||
for s in scripts: |
||||
a[s] = Analysis( |
||||
[s], |
||||
pathex=[], |
||||
binaries=binaries, |
||||
datas=datas, |
||||
hiddenimports=hiddenimports, |
||||
hookspath=[], |
||||
hooksconfig={}, |
||||
runtime_hooks=[], |
||||
excludes=[], |
||||
noarchive=False, |
||||
optimize=0, |
||||
) |
||||
|
||||
pyz[s] = PYZ(a[s].pure) |
||||
|
||||
exe[s] = EXE( |
||||
pyz[s], a[s].scripts, [], |
||||
name=Path(s).stem, |
||||
exclude_binaries=True, debug=False, bootloader_ignore_signals=False, |
||||
strip=False, upx=True, console=True, disable_windowed_traceback=False, |
||||
argv_emulation=False, target_arch=None, codesign_identity=None, |
||||
entitlements_file=None, |
||||
) |
||||
|
||||
|
||||
coll = COLLECT( |
||||
*list(exe.values()), |
||||
list(set(itertools.chain.from_iterable(b.binaries for b in a.values()))), |
||||
list(set(itertools.chain.from_iterable(d.datas for d in a.values()))), |
||||
strip=False, |
||||
upx=True, |
||||
upx_exclude=[], |
||||
name='joinmarket-clientserver', |
||||
) |
||||
@ -0,0 +1,77 @@
|
||||
# -*- mode: python; coding: utf-8 -*- |
||||
|
||||
import itertools |
||||
import os |
||||
from pathlib import Path |
||||
|
||||
|
||||
PROJECT_ROOT = os.path.abspath('.') |
||||
|
||||
|
||||
binaries = [] |
||||
binaries += [(f'{PROJECT_ROOT}/jmvenv/lib/lib*', '.')] |
||||
|
||||
|
||||
datas = [] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/dropin.cache','twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/__init__.py', 'twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/txtorcon_endpoint_parser.py', 'twisted/plugins')] |
||||
|
||||
|
||||
scripts = [ |
||||
'scripts/joinmarket-qt.py', |
||||
] |
||||
|
||||
|
||||
hiddenimports = [ |
||||
'chromalog.mark.helpers', |
||||
'chromalog.mark.helpers.simple', |
||||
'twisted.plugins', |
||||
'twisted.plugins.txtorcon_endpoint_parser', |
||||
] |
||||
|
||||
|
||||
a = {} |
||||
pyz = {} |
||||
exe = {} |
||||
|
||||
|
||||
for s in scripts: |
||||
a[s] = Analysis( |
||||
[s], |
||||
pathex=[], |
||||
binaries=binaries, |
||||
datas=datas, |
||||
hiddenimports=hiddenimports, |
||||
hookspath=[], |
||||
hooksconfig={}, |
||||
runtime_hooks=[], |
||||
excludes=[], |
||||
noarchive=False, |
||||
optimize=0, |
||||
) |
||||
|
||||
pyz[s] = PYZ(a[s].pure) |
||||
|
||||
exe[s] = EXE( |
||||
pyz[s], a[s].scripts, [], |
||||
name=Path(s).stem, |
||||
exclude_binaries=True, debug=False, bootloader_ignore_signals=False, |
||||
strip=False, upx=True, console=True, disable_windowed_traceback=False, |
||||
argv_emulation=False, target_arch=None, codesign_identity=None, |
||||
entitlements_file=None, |
||||
) |
||||
|
||||
|
||||
coll = COLLECT( |
||||
*list(exe.values()), |
||||
list(set(itertools.chain.from_iterable(b.binaries for b in a.values()))), |
||||
list(set(itertools.chain.from_iterable(d.datas for d in a.values()))), |
||||
strip=False, |
||||
upx=True, |
||||
upx_exclude=[], |
||||
name='joinmarket-clientserver', |
||||
) |
||||
@ -0,0 +1,82 @@
|
||||
# -*- mode: python; coding: utf-8 -*- |
||||
|
||||
import itertools |
||||
import os |
||||
from pathlib import Path |
||||
|
||||
|
||||
PROJECT_ROOT = os.path.abspath('.') |
||||
|
||||
|
||||
binaries = [] |
||||
binaries += [(f'{PROJECT_ROOT}/jmvenv/lib/lib*', '.')] |
||||
|
||||
|
||||
datas = [] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/dropin.cache','twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/__init__.py', 'twisted/plugins')] |
||||
datas += [(f'{PROJECT_ROOT}/jmvenv/lib/python3.12/site-packages/' |
||||
f'twisted/plugins/txtorcon_endpoint_parser.py', 'twisted/plugins')] |
||||
|
||||
|
||||
scripts = [ |
||||
'scripts/snicker/create-snicker-proposal.py', |
||||
'scripts/snicker/receive-snicker.py', |
||||
'scripts/snicker/snicker-finder.py', |
||||
'scripts/snicker/snicker-recovery.py', |
||||
'scripts/snicker/snicker-seed-tx.py', |
||||
'scripts/snicker/snicker-server.py', |
||||
] |
||||
|
||||
|
||||
hiddenimports = [ |
||||
'chromalog.mark.helpers', |
||||
'chromalog.mark.helpers.simple', |
||||
'twisted.plugins', |
||||
'twisted.plugins.txtorcon_endpoint_parser', |
||||
] |
||||
|
||||
|
||||
a = {} |
||||
pyz = {} |
||||
exe = {} |
||||
|
||||
|
||||
for s in scripts: |
||||
a[s] = Analysis( |
||||
[s], |
||||
pathex=[], |
||||
binaries=binaries, |
||||
datas=datas, |
||||
hiddenimports=hiddenimports, |
||||
hookspath=[], |
||||
hooksconfig={}, |
||||
runtime_hooks=[], |
||||
excludes=[], |
||||
noarchive=False, |
||||
optimize=0, |
||||
) |
||||
|
||||
pyz[s] = PYZ(a[s].pure) |
||||
|
||||
exe[s] = EXE( |
||||
pyz[s], a[s].scripts, [], |
||||
name=Path(s).stem, |
||||
exclude_binaries=True, debug=False, bootloader_ignore_signals=False, |
||||
strip=False, upx=True, console=True, disable_windowed_traceback=False, |
||||
argv_emulation=False, target_arch=None, codesign_identity=None, |
||||
entitlements_file=None, |
||||
) |
||||
|
||||
|
||||
coll = COLLECT( |
||||
*list(exe.values()), |
||||
list(set(itertools.chain.from_iterable(b.binaries for b in a.values()))), |
||||
list(set(itertools.chain.from_iterable(d.datas for d in a.values()))), |
||||
strip=False, |
||||
upx=True, |
||||
upx_exclude=[], |
||||
name='joinmarket-clientserver', |
||||
) |
||||
Loading…
Reference in new issue