Skip to content

Commit ecfd0ea

Browse files
committed
add build
1 parent 9fd9750 commit ecfd0ea

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

BUILD.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Building binaries
2+
install pyinstaller
3+
```
4+
poetry add --dev pyinstaller
5+
6+
```
7+
Creating an executable
8+
```
9+
poetry run pyinstaller --onefile your_project_name.py
10+
11+
```
12+
Had to adjust the `pyproject.toml` file
13+
```
14+
[tool.poetry.dependencies]
15+
python = "<3.14,>=3.8.1"
16+
```
17+
Run the commands within your project directory, the final binaries will appear in `dist`
18+
19+
One of the modules was missing, so had to specify files to add, see below. Please adjust for your own virtual environment.
20+
21+
for mac
22+
```
23+
poetry run pyinstaller --onefile --add-data "/Users/trbouma/Library/Caches/pypoetry/virtualenvs/safebox-32NsP7gP-py3.12/lib/python3.12/site-packages/coolname/data/*:coolname/data" --name safebox ./safebox/cli.py
24+
```
25+
for ubuntu
26+
```
27+
poetry run pyinstaller --onefile --add-data "/home/trbouma/.cache/pypoetry/virtualenvs/bintest-7_VnywOr-py3.10/lib/python3.10/site-packages/coolname/data/*:coolname/data" --name safebox ./safebox/cli.py
28+
29+
```

0 commit comments

Comments
 (0)