-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
30 lines (25 loc) · 1.97 KB
/
Makefile
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
build:
@echo BUILDING PROD ENVIRONTMENT
@echo "import {environment} from './environment.prod'; \nexport let config = environment;" > ./environments/environment.ts
ionic cordova build android --prod --release
git checkout environments/environment.ts
ubuntu: build deploy-ubuntu
mac: build deploy-mac
deploy-mac:
rm sharebook-release-prod-signed.aab || true
(cd platforms/android ; ./gradlew bundle ; cd .. ; cd ..)
/usr/bin/jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore sharebook.keystore -storepass MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAriIiIHicLsi4kG13/cAknZn7sM2ZMYHiXjNZtlHJgtsVIZ699bMuyRwk76RQmQ4yeeIu1sBzkc+Go+cS13MGhOKrh8OScL//42gj+HtVIRE01/mrC2N3mlMD/dKhTVJqXPaXxO/Cr6rpGnMmW/dD6Mx/d8jYjgOZM1ICAzCgC7EFf90zrbgcIYRY3ffkj9fqjfUbVGffdYHozFHOOqPLxUYJ2qfFHPLPWRWw4Ave2YCQvSMMET6PxB25ntxhOxDlWKaRClMbPQPyL94OBl5Za+T5qUF1O3vK89P9xHeGAQPIZcTt47mPDp/i+xgtWhTB25zPsScbEhOMT4QCtC7oswIDAQAB ./platforms/android/app/build/outputs/bundle/release/app.aab sharebook
./zipalign -v 4 platforms/android/app/build/outputs/bundle/release/app.aab ./sharebook-release-prod-signed.aab
deploy-ubuntu:
rm sharebook-release-prod-signed.aab || true
(cd platforms/android ; ./gradlew bundle ; cd .. ; cd ..)
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore sharebook.keystore -storepass MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAriIiIHicLsi4kG13/cAknZn7sM2ZMYHiXjNZtlHJgtsVIZ699bMuyRwk76RQmQ4yeeIu1sBzkc+Go+cS13MGhOKrh8OScL//42gj+HtVIRE01/mrC2N3mlMD/dKhTVJqXPaXxO/Cr6rpGnMmW/dD6Mx/d8jYjgOZM1ICAzCgC7EFf90zrbgcIYRY3ffkj9fqjfUbVGffdYHozFHOOqPLxUYJ2qfFHPLPWRWw4Ave2YCQvSMMET6PxB25ntxhOxDlWKaRClMbPQPyL94OBl5Za+T5qUF1O3vK89P9xHeGAQPIZcTt47mPDp/i+xgtWhTB25zPsScbEhOMT4QCtC7oswIDAQAB ./platforms/android/app/build/outputs/bundle/release/app.aab sharebook
zipalign -v 4 platforms/android/app/build/outputs/bundle/release/app.aab ./sharebook-release-prod-signed.aab
clean:
rm -rf node_modules
rm -rf platforms
rm -rf plugins
rm -rf www
clean-cordova:
rm -rf platforms
rm -rf plugins