-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·47 lines (36 loc) · 901 Bytes
/
build.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
39
40
41
42
43
44
45
46
47
#!/bin/bash
if [ $GARMIN_DEVELOPER_KEY ]; then
for device in \
fenix5 \
fenix5plus \
fenix5s \
fenix5splus \
fenix5x \
fenix5xplus \
fenix6 \
fenix6pro \
fenix6s \
fenix6spro \
fenix6xpro
do
echo "Building binaries/$device/twentyfour-release.prg"
monkeyc \
-r \
-f monkey.jungle \
-y $GARMIN_DEVELOPER_KEY \
-d $device \
-o binaries/$device/twentyfour-release.prg
rm binaries/$device/twentyfour-release.prg.debug.xml
rm binaries/$device/twentyfour-release-settings.json
echo "Building binaries/$device/twentyfour-debug.prg"
monkeyc \
-f monkey.jungle \
-y $GARMIN_DEVELOPER_KEY \
-d $device \
-o binaries/$device/twentyfour-debug.prg
rm binaries/$device/twentyfour-debug.prg.debug.xml
rm binaries/$device/twentyfour-debug-settings.json
done
else
echo "Environment variable GARMIN_DEVELOPER_KEY must be set."
fi