-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathrelease.sh
executable file
·39 lines (32 loc) · 857 Bytes
/
release.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
# build a new release of dysk for distribution
#
# WARNING: this is not intented for normal usage but
# for the official release. It involves a heavy tool
# chain running on linux.
#
# For your own usage, you should rather do
#
# cargo install --path .
#
# or
#
# cargo build --release
#
version=$(./version.sh)
echo "Building release $version"
# clean previous build
rm -rf build
mkdir build
# compile all targets
./compile-all-targets.sh
# add the readme and changelog in the build directory
echo "This is dysk. More info and installation instructions on https://github.com/Canop/dysk" > build/README.md
cp CHANGELOG.md build
# publish version number
echo "$version" > build/version
# prepare the release archive
rm dysk_*.zip
zip -r "dysk_$version.zip" build/*
# copy it to releases folder
mkdir releases
cp "dysk_$version.zip" releases