Skip to content

Packaging

Łukasz Herok edited this page Jul 11, 2021 · 13 revisions

General information about build procedure

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

Linux

Install tools (Fedora):

dnf install ruby-devel gcc make rpm-build libffi-devel
gem install --no-document fpm

Requires to checkout whole project and create venv in the project root.

cd build
./linux_rpm_build.sh

Windows

Install Inno setup (once there were problems so I recreated venv and install requirements without package version specyfied)

  1. cd build
  2. pyinstaller savings.spec
  3. The result is in dist/
  4. Open and compile windows-setup-inno.iss
  5. Result is in target

Clone this wiki locally