-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·24 lines (18 loc) · 739 Bytes
/
release.sh
File metadata and controls
executable file
·24 lines (18 loc) · 739 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
# build a new release of rhit
# This isn't used for normal compilation but for the building of the official releases
version=$(sed 's/version = "\([0-9.]\{1,\}\)"/\1/;t;d' Cargo.toml | head -1)
echo "Building release $version"
# make the build directory and compile for all targets
./compile-all-targets.sh
# add the readme, changelog and license in the build directory
echo "This is rhit. More info and installation instructions on https://github.com/Canop/rhit" > build/README.md
cp CHANGELOG.md build
cp LICENSE build
# publish version number
echo "$version" > build/version
# prepare the release archive
rm rhit_*.zip
zip -r "rhit_$version.zip" build/*
# copy it to releases folder
mkdir releases
cp "rhit_$version.zip" releases