Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ionic publish

// generate .keystore file
keytool -genkey -v -keystore app.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
// sign the apk
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore app.keystore app-release-unsigned.apk alias_name
// zip the apk
zipalign -v 4 app-release-unsigned.apk ReleaseSigned.apk
Comment

publish ionic app

STEP 1
To generate a release build for Android, we can use the following cordova cli command:
$ ionic cordova build --release android

STEP 2
If you already have a signing key, skip these steps and use that one instead.
Let’s generate our private key using the keytool command that comes with the JDK. If this tool isn’t found, refer to the installation guide:
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000

STEP 3
To sign the unsigned APK, run the jarsigner tool which is also included in the JDK:
$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore HelloWorld-release-unsigned.apk alias_name
Comment

PREVIOUS NEXT
Code Example
Shell :: zsh command not found nvm mac 
Shell :: install scala using brew 
Shell :: uninstall dependencies yarn 
Shell :: git last commit change author 
Shell :: host key verification failed 
Shell :: powershell pc battery command 
Shell :: soundcloud for ubuntu install command 
Shell :: helm repo list charts 
Shell :: Connect to Remote MySQL Database through Command Line 
Shell :: install powershell using cmd windows 10 
Shell :: clear port by terminal 
Shell :: while loop shell script 
Shell :: Connect to a VM instance by using SSH. 
Shell :: bash script to output a specific line of a file 
Shell :: how to check if your linux Server Is Under DDoS Attack 
Shell :: how to install xdm ubuntu 20.04 
Shell :: how to move a directory in linux 
Shell :: heroku buildpacks 
Shell :: setup wordpress on ubuntu 
Shell :: kill process in windows 
Shell :: git remove folder from cache 
Shell :: get users linux 
Shell :: chown specific user linux 
Shell :: edit file terminal 
Shell :: git tag to previous commit 
Shell :: pnpm install dev 
Shell :: how to reset all github credentials 
Shell :: how to install grub 
Shell :: ffprobe get duration 
Shell :: debian backports 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =