-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·23 lines (17 loc) · 694 Bytes
/
release.sh
File metadata and controls
executable file
·23 lines (17 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# build a new release of safecloset
# This isn't used for normal compilation but for the building of the official releases
version=$(./version.sh)
echo "Building release $version"
# make the build directory and compile for all targets
./build-all-targets.sh
# add the readme and changelog in the build directory
echo "This is safecloset. More info and installation instructions on https://github.com/Canop/safecloset" > build/README.md
cp CHANGELOG.md build
# publish version number
echo "$version" > build/version
# prepare the release archive
rm safecloset_*.zip
zip -r "safecloset_$version.zip" build/*
# copy it to releases folder
mkdir releases
cp "safecloset_$version.zip" releases