A cheap attempt at a native Bluesky client for Android

workflows: generate index page

+29 -1
+3 -1
.tangled/workflows/build.yaml
··· 27 27 npm i -D wrangler@latest 28 28 29 29 fastlane release_bin 30 - npx wrangler r2 object put monarch-releases/monarch-release.apk --remote true --file=app/build/outputs/apk/release/app-release.apk 30 + bash ./generate-root.sh 31 + npx wrangler r2 object put monarch-releases/monarch-release-$(date +%s).apk --remote true --file=app/build/outputs/apk/release/app-release.apk 32 + npx wrangler r2 object put monarch-releases/index.html --remote true --file=./index.html
+26
generate-root.sh
··· 1 + #!/bin/bash 2 + 3 + # Get the current UNIX timestamp 4 + TIMESTAMP=$(date +%s) 5 + 6 + # Define the output filename 7 + OUTPUT_FILE="index.html" 8 + 9 + # Create the HTML file with a HERE document 10 + cat > $OUTPUT_FILE <<EOF 11 + <!DOCTYPE html> 12 + <html lang="en"> 13 + <head> 14 + <meta charset="UTF-8"> 15 + <meta name="viewport" content="width=device-width, initial-scale=1.0"> 16 + <title>Download</title> 17 + </head> 18 + <body> 19 + <!-- File generated at UNIX timestamp: $TIMESTAMP --> 20 + <a href="/monarch-release.apk">Download Monarch APK</a> 21 + </body> 22 + </html> 23 + EOF 24 + 25 + # Print a confirmation message to the console 26 + echo "Successfully created $OUTPUT_FILE"