-
Notifications
You must be signed in to change notification settings - Fork 1
/
compile.sh
executable file
·38 lines (36 loc) · 1.09 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
compile_ui() {
case $1 in
resources)
pyside6-rcc resources/resources.qrc -o resources_rc.py
;;
welcome)
pyside6-uic ui/welcome_screen.ui -o screens/ui_welcome.py
;;
cart)
pyside6-uic ui/cart_screen.ui -o screens/ui_cart.py
;;
receipt)
pyside6-uic ui/reciept_screen.ui -o screens/ui_reciept.py
;;
admin)
pyside6-uic ui/admin_screen.ui -o screens/ui_admin.py
;;
all)
pyside6-rcc resources/resources.qrc -o resources_rc.py
pyside6-uic ui/welcome_screen.ui -o screens/ui_welcome.py
pyside6-uic ui/cart_screen.ui -o screens/ui_cart.py
pyside6-uic ui/reciept_screen.ui -o screens/ui_reciept.py
pyside6-uic ui/admin_screen.ui -o screens/ui_admin.py
;;
*)
echo "Invalid option: $1"
echo "Usage: $0 {resources|welcome|cart|receipt|admin|all}"
exit 1
;;
esac
}
for arg in "$@"
do
compile_ui "$arg"
done