mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Switch project so src layout
This will make it possible to build pip packages. Add a make file to compile UI files and build mac and win applications.
This commit is contained in:
38
Makefile
Normal file
38
Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
SHELL := bash
|
||||
|
||||
build_ui:
|
||||
cd ui_dev && for ui_file in *.ui; do \
|
||||
file_name=$${ui_file%.ui}; \
|
||||
pyuic5 $${ui_file} -o ../src/revpicommander/ui/$${file_name}_ui.py -x --from-imports; \
|
||||
echo $${file_name}; \
|
||||
done
|
||||
cd ui_dev && for rc_file in *.qrc; do \
|
||||
file_name=$${rc_file%.qrc}; \
|
||||
pyrcc5 $${rc_file} -o ../src/revpicommander/ui/$${file_name}_rc.py; \
|
||||
echo $${file_name}; \
|
||||
done
|
||||
|
||||
update_translation:
|
||||
pylupdate5 translate.pro
|
||||
|
||||
installer_mac:
|
||||
pyinstaller -n "RevPi Commander" \
|
||||
--add-data="src/revpicommander/locale:locale" \
|
||||
--add-data="data/revpicommander.icns:." \
|
||||
--icon=data/revpicommander.icns \
|
||||
--noconfirm \
|
||||
--clean \
|
||||
--onedir \
|
||||
--windowed \
|
||||
src/revpicommander/__main__.py
|
||||
|
||||
installer_win:
|
||||
pyinstaller -n "RevPi Commander" \
|
||||
--add-data="src\\revpicommander\\locale;.\\locale" \
|
||||
--add-data="data\\revpicommander.ico;." \
|
||||
--icon=data\\revpicommander.ico \
|
||||
--noconfirm \
|
||||
--clean \
|
||||
--onedir \
|
||||
--windowed \
|
||||
src/revpicommander\__main__.py
|
||||
Reference in New Issue
Block a user