2023-05-08 05:28:12 +00:00
|
|
|
@echo off
|
|
|
|
cd /d %~dp0
|
|
|
|
|
|
|
|
for %%I in (.) do set CurrDirName=%%~nxI
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
@echo on
|
2023-05-08 07:03:13 +00:00
|
|
|
dragonruby-publish --only-package %CurrDirName%
|
|
|
|
@echo off
|
|
|
|
cd builds
|
|
|
|
if not exist ./%CurrDirName%.keystore (
|
|
|
|
echo "no keystore, generating keys"
|
|
|
|
keytool -genkey -v -keystore %CurrDirName%.keystore -alias %CurrDirName% -keyalg RSA -keysize 2048 -validity 10000
|
|
|
|
)
|
|
|
|
if exist ./%CurrDirName%-android.apk (
|
|
|
|
echo "Signing apk..."
|
|
|
|
call "C:\Program Files (x86)\Android\android-sdk\build-tools\32.0.0\apksigner.bat" sign -ks %CurrDirName%.keystore %CurrDirName%-android.apk
|
|
|
|
) else (
|
|
|
|
ECHO "no apk?"
|
|
|
|
ECHO ./%CurrDirName%-android.apk
|
|
|
|
)
|
|
|
|
ECHO "All done!"
|
|
|
|
explorer.exe %cd%
|
|
|
|
PAUSE
|