dashboard
repositories
activity
search
login
APPS
/
PAILot
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
feat: add share/save button to PDF viewer
Matthias Nott
3 days ago
a526ea4ce4a6da31222f73ca12c8dd9017fb2410
[APPS/PAILot.git]
/
tools
/
build-android.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
# PAILot Android Build Script
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
APP_DIR="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$APP_DIR"
echo "=== Building APK ==="
JAVA_HOME=/opt/homebrew/Cellar/openjdk@17/17.0.18/libexec/openjdk.jdk/Contents/Home \
flutter build apk --release --no-tree-shake-icons
echo ""
echo "=== Done ==="
echo "APK: build/app/outputs/flutter-apk/app-release.apk"
echo "Run ./tools/deploy-android.sh to install on device"