Spaces:
Running
Running
Create entrypoint.sh
Browse files- entrypoint.sh +20 -0
entrypoint.sh
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
MANIFEST_URL=$1
|
| 3 |
+
APP_ID=$2
|
| 4 |
+
|
| 5 |
+
mkdir -p "$APP_ID"
|
| 6 |
+
cd "$APP_ID"
|
| 7 |
+
|
| 8 |
+
echo "Downloading manifest..."
|
| 9 |
+
wget -O manifest.json "$MANIFEST_URL" || exit 1
|
| 10 |
+
|
| 11 |
+
echo "Initializing Bubblewrap..."
|
| 12 |
+
twa init --manifest manifest.json --directory . --force || exit 2
|
| 13 |
+
|
| 14 |
+
echo "Building APK..."
|
| 15 |
+
twa build || exit 3
|
| 16 |
+
|
| 17 |
+
echo "Signing APK..."
|
| 18 |
+
twa deploy --type "apk" || exit 4
|
| 19 |
+
|
| 20 |
+
echo "APK ready."
|