-
Notifications
You must be signed in to change notification settings - Fork 531
/
build_macos
executable file
·66 lines (58 loc) · 1.44 KB
/
build_macos
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
#!/bin/bash
set -e
export PATH=/opt/Qt/5.9-static/bin:$PATH
rm -rf build/macos/*
# Original
qmake -config release "CONFIG += release_macos build_original"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_original_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..
# Platinum
qmake -config release "CONFIG += release_macos build_platinum"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_platinum_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..
# Gold
qmake -config release "CONFIG += release_macos build_gold"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_gold_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..
# Silver
qmake -config release "CONFIG += release_macos build_silver"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_silver_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..
# Bronze
qmake -config release "CONFIG += release_macos build_bronze"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_bronze_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..
# Free of charge
qmake -config release "CONFIG += release_macos build_free"
make clean
make -j8
rm -rf build/macos/obj
cd build/macos
zip vesc_tool_free_macos.zip `ls | grep -v '\.zip$'`
ls | grep -v '\.zip$' | xargs rm -rf
cd ../..