File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments