-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease
More file actions
executable file
·38 lines (28 loc) · 750 Bytes
/
release
File metadata and controls
executable file
·38 lines (28 loc) · 750 Bytes
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
#!/usr/bin/env bash
set -e
docker run --rm --log-driver none \
-v "${PWD}/olsu":/go/src/olsu \
-v "${PWD}/olsu_build":/bin/olsu_build \
-w /bin \
golang:1.7.0 \
bash -c "chmod +x olsu_build && ./olsu_build"
output_files=(
"olsu-darwin-386.zip"
"olsu-darwin-amd64.zip"
"olsu-linux-386.zip"
"olsu-linux-amd64.zip"
)
for file in "${output_files[@]}"; do
zip -j "${file}" "olsu/${file%.zip}"
rm "olsu/${file%.zip}"
done
GOARCH="amd64"
GOOS="darwin"
olsu="olsu-${GOOS}-${GOARCH}"
unzip "${olsu}.zip"
export OLSU_REPOSITORY=olsu
export OLSU_OWNER=Telling
export OLSU_DELETE_RELEASE=yes
./"$olsu" "Olsu v0.1.0" "v0.1.0" "Initial release of olsu." "${output_files[@]}"
rm "${output_files[@]}"
rm "$olsu"