Skip to content

Commit 41cdd53

Browse files
committed
✨ with pyvis added the basic example works using the cli
1 parent d35031b commit 41cdd53

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

executables/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Pyinstaller one folder executable
22

3+
- pyvis templates were not copied, so make these explicit (see [this](https://stackoverflow.com/a/72687433/9684872))
4+
35
```
46
# from root of the project
5-
pyinstaller -name vuegen src/vuegen/__main__.py
7+
pyinstaller -D -w --collect-all pyvis -n vuegen src/vuegen/__main__.py
68
```

executables/vuegen.spec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ from PyInstaller.utils.hooks import collect_all
44
datas = []
55
binaries = []
66
hiddenimports = []
7+
tmp_ret = collect_all('pyvis')
8+
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
79

810
a = Analysis(
911
['src/vuegen/__main__.py'],

0 commit comments

Comments
 (0)