Skip to content

Building

Bartek L edited this page Jul 1, 2023 · 8 revisions

Using script

Requirements

  • Python 3

Building

  1. Clone source code.
git clone https://github.com/bartekl1/SoftwareUpdater.git
  1. Run compile.py file.
py compile.py

Manual

Building

Requirements

  • Python 3
  • Python packages in requirements.txt file
    You can install them using following command.
pip install -r requirements.txt
  • PyInstaller
    You can install it using following command.
pip install pyinstaller

Building

  1. Clone source code.
git clone https://github.com/bartekl1/SoftwareUpdater.git
  1. Compile using PyInstaller.
pyinstaller --noconsole --onefile --windowed --icon="img/elephant.ico" --hidden-import=customtkinter --hidden-import=PIL --hidden-import=requests --add-data="img;img/" --add-data="<CUSTOMTKINTER_PATH>;customtkinter/" SoftwareUpdater.py
  • Replace <CUSTOMTKINTER_PATH> with the path of customtkinter. You can check it using pip show customtkinter, it will display location add customtkinter to it.
  1. You should have SoftwareUpdater.exe file in dist folder.

Creating installer

Requirements

  • NSIS

Building

  1. Clone source code.
git clone https://github.com/bartekl1/SoftwareUpdater.git
  1. Compile NSIS script.
makensis setup.nsi
  1. You should have SoftwareUpdaterSetup.exe file in dist folder.