A cheap attempt at a native Bluesky client for Android

workflows: upload the right files

+22 -3
+2 -2
.tangled/workflows/build.yaml
··· 28 28 npm i -D wrangler@latest 29 29 30 30 fastlane release_bin 31 - bash ./generate-root.sh 32 - npx wrangler r2 object put monarch-releases/monarch-release-$(date +%s).apk --remote true --file=app/build/outputs/apk/release/app-release.apk 31 + source ./generate-root.sh 32 + npx wrangler r2 object put monarch-releases/$MONARCH_APK_FILENAME --remote true --file=MONARCH_APK_PATH 33 33 npx wrangler r2 object put monarch-releases/index.html --remote true --file=./index.html
+20 -1
generate-root.sh
··· 1 1 #!/bin/bash 2 2 3 + # Check if a file path argument is provided 4 + if [ $# -eq 0 ]; then 5 + echo "Usage: $0 <path-to-apk-file>" 6 + exit 1 7 + fi 8 + 9 + # Get the input file path 10 + INPUT_APK="$1" 11 + 12 + # Check if the file exists 13 + if [ ! -f "$INPUT_APK" ]; then 14 + echo "Error: File '$INPUT_APK' not found" 15 + exit 1 16 + fi 17 + 3 18 # Get the current UNIX timestamp 4 19 TIMESTAMP=$(date +%s) 5 20 6 21 # Move APK file to its new home 7 - mv monarch-release.apk monarch-release-$TIMESTAMP.apk 22 + mv "$INPUT_APK" monarch-release-$TIMESTAMP.apk 23 + 24 + # Export the final APK path as an environment variable 25 + export MONARCH_APK_PATH="$(pwd)/monarch-release-$TIMESTAMP.apk" 26 + export MONARCH_APK_FILENAME="monarch-release-$TIMESTAMP.apk" 8 27 9 28 # Define the output filename 10 29 OUTPUT_FILE="index.html"