Skip to content

Commit e2c6114

Browse files
committedDec 24, 2024
Update building instructions
1 parent 5c13377 commit e2c6114

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed
 

‎README.md

+32-11
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,9 @@ Run the application.
7373
python main.py
7474
```
7575

76-
You can also bundle the application.
76+
#### Building
7777

78-
```cmd
79-
python build.py
80-
```
81-
82-
#### VirusTotal False Positives
83-
84-
Some "AI" Anti-Viruses on VirusTotal have extremely high false positive rates. Recompiling the bootloader decreases them.
78+
Bundling requires recompiling the bootloader to prevent Windows from deleting the EXE (due to [false positives](https://github.com/pyinstaller/pyinstaller/blob/master/.github/ISSUE_TEMPLATE/antivirus.md)).
8579

8680
Install MSYS2 and launch MINGW64.
8781

@@ -96,7 +90,7 @@ Clone PyInstaller.
9690

9791
```cmd
9892
env_build\Scripts\activate
99-
git clone -b v6.1.0 --depth 1 https://github.com/pyinstaller/pyinstaller.git misc\pyinstaller
93+
git clone -b v6.11.1 --depth 1 https://github.com/pyinstaller/pyinstaller.git misc\pyinstaller
10094
```
10195

10296
Recompile the bootloader.
@@ -117,7 +111,11 @@ deactivate
117111
env_build\Scripts\activate
118112
```
119113

120-
Now, build it with `build.py` as usual.
114+
Bundle:
115+
116+
```cmd
117+
python build.py
118+
```
121119

122120
### Linux (Ubuntu-based)
123121

@@ -178,7 +176,30 @@ Now, you can run it.
178176
python main.py
179177
```
180178

181-
or build it.
179+
#### Building
180+
181+
Make sure GCC is installed (`build-essential`).
182+
183+
Recompile the bootloader:
184+
185+
```bash
186+
source env_build/bin/activate
187+
git clone -b v6.11.1 --depth 1 https://github.com/pyinstaller/pyinstaller.git misc/pyinstaller
188+
cd misc/pyinstaller/bootloader
189+
python waf all --gcc
190+
cd ..
191+
pip install .
192+
cd ../..
193+
```
194+
195+
Reload the environment to avoid the `ModuleNotFoundError` error.
196+
197+
```bash
198+
deactivate
199+
source env_build/bin/activate
200+
```
201+
202+
Build:
182203

183204
```bash
184205
python build.py

‎requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
pyside6==6.8.1
2-
pyinstaller==6.11.1
32
send2trash==1.8.3
43
requests~=2.32.3

0 commit comments

Comments
 (0)
Please sign in to comment.