Skip to content

Commit d35031b

Browse files
committed
🚧 start with bundleing cli tool
1 parent 2f955cc commit d35031b

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

executables/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Pyinstaller one folder executable
2+
3+
```
4+
# from root of the project
5+
pyinstaller -name vuegen src/vuegen/__main__.py
6+
```

executables/vuegen.spec

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
from PyInstaller.utils.hooks import collect_all
3+
4+
datas = []
5+
binaries = []
6+
hiddenimports = []
7+
8+
a = Analysis(
9+
['src/vuegen/__main__.py'],
10+
pathex=[],
11+
binaries=binaries,
12+
datas=datas,
13+
hiddenimports=hiddenimports,
14+
hookspath=[],
15+
hooksconfig={},
16+
runtime_hooks=[],
17+
excludes=[],
18+
noarchive=False,
19+
optimize=0,
20+
)
21+
pyz = PYZ(a.pure)
22+
23+
exe = EXE(
24+
pyz,
25+
a.scripts,
26+
[],
27+
exclude_binaries=True,
28+
name='vuegen',
29+
debug=False,
30+
bootloader_ignore_signals=False,
31+
strip=False,
32+
upx=True,
33+
console=True,
34+
disable_windowed_traceback=False,
35+
argv_emulation=False,
36+
target_arch=None,
37+
codesign_identity=None,
38+
entitlements_file=None,
39+
)
40+
coll = COLLECT(
41+
exe,
42+
a.binaries,
43+
a.datas,
44+
strip=False,
45+
upx=True,
46+
upx_exclude=[],
47+
name='vuegen',
48+
)

0 commit comments

Comments
 (0)