Skip to content

Commit

Permalink
Adding deploy instructions
Browse files Browse the repository at this point in the history
And preparing for version 1.0
  • Loading branch information
vcasadei committed Apr 2, 2020
1 parent 14df0bf commit 0d2a101
Show file tree
Hide file tree
Showing 6 changed files with 601 additions and 9 deletions.
28 changes: 28 additions & 0 deletions DEPLOY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# How to create a Build

## Android

```
npm install npm-force-resolutions --save-dev
npm install
npx npm-force-resolutions
npm install
ionic build
```

```
ionic cordova build --release android
```

### Generate key if not present

```
keytool -genkey -v -keystore my-release-key.keystore -alias corona_mission -keyalg RSA -keysize 2048 -validity 10000
```

### Sign and zip apk

```
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk corona_mission
~/Library/Android/sdk/build-tools/29.0.3/zipalign -v 4 platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk platforms/android/app/build/outputs/apk/release/corona-mission_1.0_testing.apk
```
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='utf-8'?>
<widget id="casadei.corona.mission" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="corona.mission.app" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>Corona Mission</name>
<description>Lutando COVID-19.</description>
<author email="vitor.casadei@cesar.org.br" href="http://cesar.org.br">CESAR</author>
<author email="corona.mission@cesar.org.br" href="http://cesar.org.br">CESAR</author>
<content src="index.html" />
<access origin="*" />
<allow-intent href="http://*/*" />
Expand Down
Binary file added my-release-key.keystore
Binary file not shown.
Loading

0 comments on commit 0d2a101

Please sign in to comment.