-
Notifications
You must be signed in to change notification settings - Fork 0
Packaging
Łukasz Herok edited this page Jul 11, 2021
·
13 revisions
Command-line scripts for building binaries and installers:
- build/linux_rpm_build.sh
- build/windows_exe_build.bat
It uses:
- pyInstaller
- fpm (for linux rpm)
- Inno Setup (for Windows)
The default .spec file was created with pyinstaller savings.py, and was adjusted.
The setups are placed in the target dir.
In fedora system there is a problem in generating and further installing the rpm. Installing the rpm gives the error:
Modify: savings2/venv/lib/python3.7/site-packages/fbs/installer/linux.py
args = [
'--rpm-rpmbuild-define', '\"_build_id_links none\"',
]https://github.com/jordansissel/fpm/issues/1503
Install tools (Fedora):
dnf install ruby-devel gcc make rpm-build libffi-devel
gem install --no-document fpmRequires to checkout whole project and create venv in the project root.
cd build
./linux_rpm_build.shInstall Inno setup (once there were problems so I recreated venv and install requirements without package version specyfied)
cd buildpyinstaller savings.spec- The result is in dist/
- Open and compile
windows-setup-inno.iss - Result is in target