-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathrelease.sh
executable file
·75 lines (65 loc) · 1.64 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
summary() {
echo ===========================================================================
echo RELEASE PROCESS
echo 1 mvn release:prepare release:perform -Plocalrelease
echo 2 mvn -f target/checkout/demo/pom.xml android:manifest-update clean install -Pnovocation,release
echo 3 cp target/checkout/demo/target/novocation-demo-zipped.apk ~/Desktop/novocation.apk
echo 4 mvn android:manifest-update
echo 5 git commit of changes to the android manifests for new development cycle
}
intro() {
clear
summary
echo
echo REQUIREMENTS
echo localrelease profile
echo release profile
echo
echo Do you want to continue?
echo
read
clear
}
break() {
summary
echo ===========================================================================
echo
echo $1 of 5 finished
echo Do you want to continue?
read
clear
}
releasePrepareAndPerform() {
mvn release:prepare release:perform -Plocalrelease
}
installTag() {
mvn -f target/checkout/demo/pom.xml android:manifest-update clean install -Pnovocation,release
}
copyApkToDesktop() {
cp target/checkout/demo/target/novocation-demo-zipped.apk ~/Desktop/novocation.apk
}
androidManifestUpdate() {
mvn android:manifest-update
}
committingAndroidManifestChanges() {
git add **/AndroidManifest.xml
git commit -m "[android-manifest] change versions to manifests for new development cycle"
git push
}
end() {
summary
echo
echo release finished
echo ===========================================================================
}
intro
releasePrepareAndPerform
break 1
installTag
break 2
copyApkToDesktop
break 3
androidManifestUpdate
break 4
committingAndroidManifestChanges
end