Build config with custom apk sign

This commit is contained in:
OleSTEEP 2024-01-23 21:45:06 +03:00
parent 111f7b6980
commit 7861dd270e
2 changed files with 17 additions and 6 deletions

View file

@ -1,5 +1,4 @@
#/bin/bash #/bin/sh
set -e
echo '/* echo '/*
Licensed to the Apache Software Foundation (ASF) under one Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file or more contributor license agreements. See the NOTICE file
@ -55,12 +54,12 @@ sed -i '' -e 's/org.apache.cordova.*;/com.vladstirbu.cordova.CordovaActivity;/g'
mkdir -p output mkdir -p output
echo "* Building english version..." echo "* Building english version..."
mv www.eng www mv www.eng www
cordova build android --prod --release -- --packageType=apk cordova build android --prod --release
mv www www.eng mv www www.eng
mv platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk output/app-release-en-unsigned.apk mv platforms/android/app/build/outputs/apk/release/app-release.apk output/app-release-en.apk
echo "* Building russian version..." echo "* Building russian version..."
mv www.rus www mv www.rus www
cordova build android --prod --release -- --packageType=apk cordova build android --prod --release
mv www www.rus mv www www.rus
mv platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk output/app-release-ru-unsigned.apk mv platforms/android/app/build/outputs/apk/release/app-release.apk output/app-release-ru.apk

12
build.json Normal file
View file

@ -0,0 +1,12 @@
{
"android": {
"release": {
"keystore": "file.jks",
"storePassword": "passwd",
"alias": "alias",
"password" : "passwd",
"keystoreType": "jks",
"packageType": "apk"
}
}
}