Skip to content

Commit a1dc506

Browse files
authored
Merge pull request #105 from Tausand-dev/docs/update-readme
Update README with setup instructions
2 parents 6050f03 + 8c9eed5 commit a1dc506

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,21 @@ Once Inno Setup is installed correctly, open it and follow these steps:
277277

278278
![Step 10](./ReadmeSources/Tutorial15.png)
279279

280+
#### Building on Windows 7 32-bit
281+
282+
##### Installing KB2533623 Update
283+
284+
This update is required to avoid DLL compatibility issues with PyInstaller-generated executables.
285+
286+
1. Download KB2533623 for Windows 7 32-bit:
287+
[https://archive.org/details/kb-2533623-windows-7](https://archive.org/details/kb-2533623-windows-7)
288+
289+
2. Run `Windows6.1-KB2533623-x86.msu` and follow the installation wizard.
290+
291+
3. Restart the system when prompted.
292+
293+
Once installed, proceed with PyInstaller and Inno Setup as described above.
294+
280295
#### MacOS
281296

282297
Run the following command
@@ -290,6 +305,16 @@ To change the icon of the `.app` file follow the instructions here https://apple
290305

291306
#### Linux
292307

308+
##### Prerequisites
309+
310+
Install the required FUSE library (needed for PyInstaller single-file executables):
311+
312+
```bash
313+
sudo apt install libfuse2
314+
```
315+
316+
##### Generate Standard Installer
317+
293318
Run the following command
294319

295320
```
@@ -304,6 +329,33 @@ Two folders will be created: build and dist. Inside dist you'll find the executa
304329

305330
If it doesn't run, make sure it has execute permissions. In case it doesn't run `chmod +x TempicoSoftware` and then try again. The executable file could be used to create a Desktop entry so it can be lauched as an application (for example in Gnome, an icon could be assigned)
306331

332+
##### Generate Optimized Installer (< 100 MB)
333+
334+
To reduce installer size, exclude unused scipy modules:
335+
336+
```bash
337+
pyinstaller \
338+
--additional-hooks-dir installers/pyinstaller_hooks/ \
339+
--name TempicoSoftware \
340+
--onefile \
341+
--noconsole \
342+
-i Sources/tausand_small.png \
343+
--exclude-module scipy.cluster \
344+
--exclude-module scipy.fft \
345+
--exclude-module scipy.integrate \
346+
--exclude-module scipy.interpolate \
347+
--exclude-module scipy.io \
348+
--exclude-module scipy.ndimage \
349+
--exclude-module scipy.odr \
350+
--exclude-module scipy.signal \
351+
--exclude-module scipy.stats \
352+
--exclude-module scipy._lib._uarray \
353+
src/main.py
354+
```
355+
**Note:** These exclusions reduce installer size by ~20-30 MB.
356+
357+
##### Create AppImage
358+
307359
To create an AppImage that can be run from multiple Linux distributions and be launch by double clicking, follow the next steps.
308360

309361
- Create the following folder path:

0 commit comments

Comments
 (0)