snipplets.dev/projects/V/Game/build.sh

31 lines
966 B
Bash
Raw Normal View History

2024-05-11 21:12:26 +03:00
#!/bin/bash
# Обновление PATH
PATH="~/.local/bin/vlang:~/.vmodules/vab:$PATH"
# Настройки Android
export ANDROID_SDK_ROOT="/home/user/.android/sdk/cmdline-tools/33"
export ANDROID_NDK_ROOT="/home/user/.android/android-ndk-r26d"
ANDROID_DEVICE_ID="ca4fcde6"
ANDROID_PACKAGE_NAME="test app"
ANDROID_PACKAGE_ID="me.a2s.example"
VAB_FLAGS_DEBUG="-v 3 --name $ANDROID_PACKAGE_NAME --package-id $ANDROID_PACKAGE_ID --api 33 --build-tools 29.0.0"
VAB_FLAGS_RELEASE="-v 3 --name $ANDROID_PACKAGE_NAME --package-id $ANDROID_PACKAGE_ID --api 33 --build-tools 29.0.0 --icon ./assets/vlang.png --version-code 1 --keystore ./sign.keystore --keystore-alias \"alias_name\""
debug() {
VAB_FLAGS=$VAB_FLAGS_DEBUG vab $(pwd)
# vab --device $ANDROID_DEVICE_ID run ./v_app.apk
}
release() {
echo "WIP"
}
test() {
VAB_FLAGS="-v 3 --name $ANDROID_PACKAGE_NAME --package-id $ANDROID_PACKAGE_ID --api 33 --build-tools 26.0.2" vab android.v
}
test