-
Notifications
You must be signed in to change notification settings - Fork 0
(PL) Kompilowanie
Bartek L edited this page Jul 1, 2023
·
2 revisions
- Python 3
- Sklonuj kod źródłowy.
git clone https://github.com/bartekl1/SoftwareUpdater.git
- Uruchom plik
compile.py
.
py compile.py
- Python 3
- Pakiety Python z pliku
requirements.txt
Możesz je zainstalować korzystając z poniższego polecenia.
pip install -r requirements.txt
- PyInstaller
Możesz zainstalować go korzystając z poniższego polecenia.
pip install pyinstaller
- Sklonuj kod źródłowy.
git clone https://github.com/bartekl1/SoftwareUpdater.git
- Skompiluj korzystając z 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
- Zastąp
<CUSTOMTKINTER_PATH>
ścieżką customtkinter. Możesz ją sprawdzić używającpip show customtkinter
, polecenie wyświetli lokalizacje, do której należy dodaćcustomtkinter
.
- Plik
SoftwareUpdater.exe
powinien znajdować się w folderzedist
.
- NSIS
- Sklonuj kod źródłowy.
git clone https://github.com/bartekl1/SoftwareUpdater.git
- Skompiluj skrypt NSIS.
makensis setup.nsi
- Plik
SoftwareUpdaterSetup.exe
powinien znajdować się w folderzedist
.