[Android] Add git version number to apk file
This commit is contained in:
parent
febb99305b
commit
c84245bde6
|
@ -6,6 +6,9 @@ cd /d %~dp0..\..\
|
||||||
set base_dir=%cd%
|
set base_dir=%cd%
|
||||||
cd /d %origdir%
|
cd /d %origdir%
|
||||||
|
|
||||||
|
set VersionName=
|
||||||
|
if not "%1" == "" set VersionName= %1
|
||||||
|
|
||||||
set NDK-BUILDER=
|
set NDK-BUILDER=
|
||||||
if exist "C:\Android\android-ndk-r11c\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r11c\ndk-build.cmd" )
|
if exist "C:\Android\android-ndk-r11c\ndk-build.cmd" ( set NDK-BUILDER="C:\Android\android-ndk-r11c\ndk-build.cmd" )
|
||||||
if %NDK-BUILDER% == "" (
|
if %NDK-BUILDER% == "" (
|
||||||
|
@ -43,7 +46,7 @@ IF NOT DEFINED project64_cert_password ( exit /B 0 )
|
||||||
jarsigner -verbose -tsa http://timestamp.digicert.com -keystore "%project64_cert_keystore%" -storepass %project64_cert_password% -keypass %project64_cert_password% "%base_dir%\Android\bin\Project64-release-unsigned.apk" project64
|
jarsigner -verbose -tsa http://timestamp.digicert.com -keystore "%project64_cert_keystore%" -storepass %project64_cert_password% -keypass %project64_cert_password% "%base_dir%\Android\bin\Project64-release-unsigned.apk" project64
|
||||||
|
|
||||||
:: Align the APK
|
:: Align the APK
|
||||||
zipalign -v 4 "%base_dir%\Android\bin\Project64-release-unsigned.apk" "%base_dir%\Package\Project64.apk"
|
zipalign -v 4 "%base_dir%\Android\bin\Project64-release-unsigned.apk" "%base_dir%\Package\Project64%VersionName%.apk"
|
||||||
|
|
||||||
echo Build ok
|
echo Build ok
|
||||||
goto :end
|
goto :end
|
||||||
|
|
Loading…
Reference in New Issue