-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfloflis-packager
executable file
·75 lines (62 loc) · 1.77 KB
/
floflis-packager
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh
invalid="Please enter a valid input"
cat << "EOF"
------------------------------
-. .-. .-. .-. .-. .-. .
\ \ / \ \ / \ \ /
/ \ \ / \ \ / \ \
~ `-~ `-` `-~ `-` `-~ `-
_ _
|_ | _ _|_ | o _
| | (_) | | | _>
PACKAGER
------------------------------
EOF
#echo "- Linking NodeJS modules..."
#ln -s /1/Floflis/libs/node_modules node_modules
#echo "Do you want to install node modules? [Y/n]"
#while true; do
#read installnodemodules
#case $installnodemodules in
# [nN])
# echo "${ok}"
# break ;;
# [yY])
# echo "- Installing NodeJS modules for this app..."
# sudo npm install -g
# *)
# echo "${invalid}";;
#esac
#done
#echo "Is this a Construct 2 game/app? [Y/n]"
#while true; do
#read itsconstruct2
#case $itsconstruct2 in
# [nN])
# echo "${ok}"
# break ;;
# [yY])
# echo ""
# echo "(!) Detected this app/game uses Construct 2 engine. Applying special patch for C2..."
# chmod +x /usr/lib/floflis/packager/optionals/construct-2/c2init.sh && ./usr/lib/floflis/packager/optionals/construct-2/c2init.sh
# *)
# echo "${invalid}";;
#esac
#done
#echo "(✓) Done! Your app is ready."
if [ "$1" = "init" ]; then
sh /usr/lib/floflis/packager/./init.sh
fi
if [ "$1" = "pack" ]; then
sh /usr/lib/floflis/packager/./pack.sh
fi
#if [ "$1" = "c2" ] || [ "$1" = "construct" ]; then
if [ "$1" = "c2" ]; then
if [ "$2" = "pre-export" ]; then
sh /usr/lib/floflis/packager/optionals/construct-2/./pre-export
fi
if [ "$2" = "initpreview" ]; then
#sh /usr/lib/floflis/packager/optionals/construct-2/./initpreview
bash /usr/lib/floflis/packager/optionals/construct-2/initpreview
fi
fi