You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

38 lines
1.0 KiB

#!/bin/bash
echo "🏗️ HikeMap APK Local Builder"
echo "============================="
echo ""
# Create output directory
mkdir -p output
# Copy necessary files to apk-builder directory
cp twa-manifest.json apk-builder/ 2>/dev/null || true
# Build the Docker image
echo "📦 Building APK builder Docker image..."
docker build -t hikemap-apk-builder ./apk-builder
# Run the container to build APK
echo "🚀 Running APK build process..."
docker run --rm \
-v $(pwd)/output:/app/output \
-v $(pwd)/twa-manifest.json:/app/twa-manifest.json \
hikemap-apk-builder
# Check if APK was created
if [ -f "output/hikemap.apk" ]; then
echo ""
echo "✅ SUCCESS! APK created at: output/hikemap.apk"
echo ""
echo "📱 To install on Android:"
echo " 1. Transfer hikemap.apk to your phone"
echo " 2. Enable 'Install from unknown sources'"
echo " 3. Open the APK file to install"
echo ""
echo "📊 APK Info:"
ls -lh output/hikemap.apk
else
echo "❌ APK build failed. Check the logs above for errors."
fi