-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·50 lines (37 loc) · 866 Bytes
/
release.sh
File metadata and controls
executable file
·50 lines (37 loc) · 866 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
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/bash
# Exit on errors
set -e
# Print commands
# set -x
echo "Releasing..."
while IFS='=' read -r key value
do
key=$(echo "$key" | tr '.' '_')
value=$(echo "$value" | tr -d '\n\r')
eval "${key}"=\${value}
done < gradle.properties
VERSION=$warlock_version
echo "Version: ${VERSION}"
read -p "Press enter to continue"
if [[ $1 == "" ]]; then
echo "Running tests"
./gradlew check
fi
#if [[ $1 == "" || $1 == "--android" ]]; then
# echo "Android release"
#
# ./gradlew publishBundle
#fi
if [[ $1 == "" ]]; then
echo "Building desktop release"
# ./gradlew :desktopApp:proguardReleaseJars
./gradlew jar
fi
if [[ $1 == "" || $1 == "--conveyor" ]]; then
echo "Deploy with conveyor"
conveyor --passphrase="$CONVEYOR_PASSPHRASE" make copied-site
fi
if [[ $1 == "" || $1 == "--tag" ]]; then
git tag "v${VERSION}"
fi
echo "Success"