diff --git a/README.md b/README.md index e366cc4..fad9fc6 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,21 @@ Once Inno Setup is installed correctly, open it and follow these steps: ![Step 10](./ReadmeSources/Tutorial15.png) +#### Building on Windows 7 32-bit + +##### Installing KB2533623 Update + +This update is required to avoid DLL compatibility issues with PyInstaller-generated executables. + +1. Download KB2533623 for Windows 7 32-bit: + [https://archive.org/details/kb-2533623-windows-7](https://archive.org/details/kb-2533623-windows-7) + +2. Run `Windows6.1-KB2533623-x86.msu` and follow the installation wizard. + +3. Restart the system when prompted. + +Once installed, proceed with PyInstaller and Inno Setup as described above. + #### MacOS Run the following command @@ -290,6 +305,16 @@ To change the icon of the `.app` file follow the instructions here https://apple #### Linux +##### Prerequisites + +Install the required FUSE library (needed for PyInstaller single-file executables): + +```bash +sudo apt install libfuse2 +``` + +##### Generate Standard Installer + Run the following command ``` @@ -304,6 +329,33 @@ Two folders will be created: build and dist. Inside dist you'll find the executa 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) +##### Generate Optimized Installer (< 100 MB) + +To reduce installer size, exclude unused scipy modules: + +```bash +pyinstaller \ + --additional-hooks-dir installers/pyinstaller_hooks/ \ + --name TempicoSoftware \ + --onefile \ + --noconsole \ + -i Sources/tausand_small.png \ + --exclude-module scipy.cluster \ + --exclude-module scipy.fft \ + --exclude-module scipy.integrate \ + --exclude-module scipy.interpolate \ + --exclude-module scipy.io \ + --exclude-module scipy.ndimage \ + --exclude-module scipy.odr \ + --exclude-module scipy.signal \ + --exclude-module scipy.stats \ + --exclude-module scipy._lib._uarray \ + src/main.py +``` +**Note:** These exclusions reduce installer size by ~20-30 MB. + +##### Create AppImage + To create an AppImage that can be run from multiple Linux distributions and be launch by double clicking, follow the next steps. - Create the following folder path: