mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Add PyInstaller script for Windows
This commit is contained in:
1
.idea/revpicommander.iml
generated
1
.idea/revpicommander.iml
generated
@@ -10,6 +10,5 @@
|
||||
</component>
|
||||
<component name="PackageRequirementsSettings">
|
||||
<option name="versionSpecifier" value="Greater or equal (>=x.y.z)" />
|
||||
<option name="removeUnused" value="true" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -2,6 +2,7 @@ recursive-include data *
|
||||
recursive-include src/revpicommander *.py *.qm
|
||||
recursive-include ui_dev *
|
||||
include LICENSE.txt
|
||||
include make_installer_win.bat
|
||||
include Makefile
|
||||
include MANIFEST.in
|
||||
include README.md
|
||||
|
||||
10
Makefile
10
Makefile
@@ -72,15 +72,7 @@ installer_mac: all
|
||||
src/$(PACKAGE)/__main__.py
|
||||
|
||||
installer_win: all
|
||||
$(PYTHON) -m PyInstaller -n "RevPi Commander" \
|
||||
--add-data="src\\$(PACKAGE)\\locale;.\\locale" \
|
||||
--add-data="data\\$(PACKAGE).ico;." \
|
||||
--icon=data\\$(PACKAGE).ico \
|
||||
--noconfirm \
|
||||
--clean \
|
||||
--onedir \
|
||||
--windowed \
|
||||
src/$(PACKAGE)\__main__.py
|
||||
make_installer_win.bat
|
||||
|
||||
.PHONY: installer_mac installer_win
|
||||
|
||||
|
||||
18
make_installer_win.bat
Normal file
18
make_installer_win.bat
Normal file
@@ -0,0 +1,18 @@
|
||||
@echo off
|
||||
set PACKAGE=revpicommander
|
||||
|
||||
rem python -m venv venv
|
||||
rem venv\\Scripts\\activate.bat
|
||||
rem pip install -r requirements.txt
|
||||
|
||||
pyinstaller -n "RevPi Commander" ^
|
||||
--add-data="src\%PACKAGE%\locale;.\revpicommander\locale" ^
|
||||
--add-data="data\%PACKAGE%.ico;." ^
|
||||
--icon=data\\%PACKAGE%.ico ^
|
||||
--noconfirm ^
|
||||
--clean ^
|
||||
--onedir ^
|
||||
--windowed ^
|
||||
src\\%PACKAGE%\\__main__.py
|
||||
|
||||
rem deactivate
|
||||
@@ -2,3 +2,5 @@ Pyinstaller
|
||||
PyQt5>=5.14.1
|
||||
revpimodio2>=2.5.6
|
||||
zeroconf>=0.24.4
|
||||
setuptools>=65.6.3
|
||||
wheel
|
||||
Reference in New Issue
Block a user