Initial commit from Weevil
This commit is contained in:
21
build.sh
Normal file
21
build.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Read SDK path from config
|
||||
SDK_DIR=$(grep '^ftc_sdk_path' .weevil.toml | sed 's/.*= "\(.*\)"/\1/')
|
||||
|
||||
if [ -z "$SDK_DIR" ]; then
|
||||
echo "Error: Could not read FTC SDK path from .weevil.toml"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Building project..."
|
||||
echo "Using FTC SDK: $SDK_DIR"
|
||||
./gradlew buildApk
|
||||
echo ""
|
||||
echo "✓ Build complete!"
|
||||
echo ""
|
||||
APK=$(find "$SDK_DIR" -path "*/outputs/apk/debug/*.apk" 2>/dev/null | head -1)
|
||||
if [ -n "$APK" ]; then
|
||||
echo "APK: $APK"
|
||||
fi
|
||||
Reference in New Issue
Block a user