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 :: compiling c 
Shell :: git push default 
Shell :: pulseaudio listen to microphone 
Shell :: get library list linux 
Shell :: wget multiple urls from file 
Shell :: homebrew without sudo mac 
Shell :: access django admin 
Shell :: sed with variable 
Shell :: create a new branch without code 
Shell :: remove directory not empty windows 
Shell :: how to pull a new remote branch 
Shell :: batch rename folder 
Shell :: install docker-machine linux 
Shell :: grep recursive filename matching 
Shell :: rsync backup 
Shell :: curl omit ssl 
Shell :: while loops in bash 
Shell :: install minikube chocolatey 
Shell :: aircrack-ng install command 
Shell :: how to merge git 
Shell :: pulling a branch from github 
Shell :: bash output to stdout and file 
Shell :: git asking for passphrase after restart 
Shell :: installing mutillidae in kali 
Shell :: git checkout fast 
Shell :: execute bash script with sudo 
Shell :: linux find files older than 15 minutes 
Shell :: how to install wsl 2 
Shell :: vim quit 
Shell :: docker compose installation 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =