-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·57 lines (42 loc) · 1.08 KB
/
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
48
49
50
51
52
53
54
55
56
57
#!/usr/bin/env bash
versions=("0.5.x" "0.6.x")
# run ./build-plugin.sh and check exit code
if ! (bash "./build-plugin.sh"); then
echo "Failed to build plugin"
exit 1
fi
# run ./build-ux.sh and check exit code
if ! (bash ./build-ux.sh); then
echo "Failed to build UX"
exit 1
fi
# Re-create hashes.txt
> "./build/hashes.txt"
# Append all hashes to hashes.txt
(
cd ./build
output="../hashes.txt"
(
cd ./installer
# Compute all Plugin Hashes
for version in "${versions[@]}"
do
echo "Computing Touch-Gestures.Installer-$version.zip"
sha256sum $version/Touch-Gestures.Installer-$version.zip >> $output
done
)
echo "" >> hashes.txt
(
cd ./ux
# Compute all UX Hashes
for os in win linux osx; do
for arch in x64 x86 arm64; do
name="Touch-Gestures.UX-$os-$arch.zip"
echo "Computing $name"
if [ -f "$name" ]; then
sha256sum $name >> $output
fi
done
done
)
)