Update build script
This commit is contained in:
parent
49e9a37f3c
commit
98f5fc074b
2 changed files with 15 additions and 1 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -24,3 +24,6 @@ node_modules/
|
|||
# Generated by Cordova
|
||||
/plugins/
|
||||
/platforms/
|
||||
|
||||
# Build output
|
||||
/output/
|
11
build-apk.sh
11
build-apk.sh
|
@ -52,4 +52,15 @@ ext.postBuildExtras = {
|
|||
|
||||
sed -i '' -e 's/org.apache.cordova.*;/com.vladstirbu.cordova.CordovaActivity;/g' platforms/android/app/src/main/java/su/viende/omori/MainActivity.java
|
||||
|
||||
mkdir -p output
|
||||
echo "* Building english version..."
|
||||
mv www.eng www
|
||||
cordova build android --prod --release -- --packageType=apk
|
||||
mv www www.eng
|
||||
mv platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk output/app-release-en-unsigned.apk
|
||||
|
||||
echo "* Building russian version..."
|
||||
mv www.rus www
|
||||
cordova build android --prod --release -- --packageType=apk
|
||||
mv www www.rus
|
||||
mv platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk output/app-release-ru-unsigned.apk
|
Loading…
Add table
Add a link
Reference in a new issue