Skip to content

Commit

Permalink
echo the found apk and install aws cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nitesh authored and nitesh committed May 30, 2024
1 parent 3d05cb1 commit 9b52d1a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 16 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,14 @@ jobs:
run: |
apt-get update
apt-get install -y curl unzip
- name: Install AWS CLI
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install
- name: Build application
run: yarn android:build
run: yarn build-unsigned-android
- name: Find and upload APK to S3
run: |
apk_path=$(find . -type f -name "*.apk" | head -n 1)
echo "APK path: $apk_path"
22 changes: 9 additions & 13 deletions fetch_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ ANDROID_LINK=$FILE_PATH$ANDROID_FILE
# Android #
###########

if ! echo "$ANDROID_SHA256 android/app/lndmobile/$ANDROID_FILE" | sha256sum -c -; then
echo "Android library file missing or checksum failed" >&2

# delete old instance of library file
rm -rf android/app/lndmobile/$ANDROID_FILE
# delete old instance of library file
rm -rf android/app/lndmobile/$ANDROID_FILE

# download Android LND library file
curl -L $ANDROID_LINK > android/app/lndmobile/$ANDROID_FILE
# download Android LND library file
curl -L $ANDROID_LINK > android/app/lndmobile/$ANDROID_FILE

# check checksum
if ! echo "$ANDROID_SHA256 android/app/lndmobile/$ANDROID_FILE" | sha256sum -c -; then
echo "Android checksum failed" >&2
exit 1
fi
fi
# check checksum
if ! echo "$ANDROID_SHA256 android/app/lndmobile/$ANDROID_FILE" | sha256sum -c -; then
echo "Android checksum failed" >&2
exit 1
fi
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"gen-proto": "pbjs -t static-module -w es6 --force-long -o proto/lightning.js proto/*.proto proto/*/*.proto && pbts -o proto/lightning.d.ts proto/lightning.js",
"build-tor-lib": "./build-tor",
"prepare-release": "yarn install && cd ios && pod install && cd ../macos && pod install",
"android:build": "chmod +x fetch_libraries.sh && ./fetch_libraries.sh && yarn && yarn gen-proto && yarn android:unsigned-mainnet",
"build-unsigned-android": "chmod +x fetch_libraries.sh && ./fetch_libraries.sh && yarn && yarn gen-proto && yarn android:mainnet-unsigned",
"android:clean": "cd android && ./gradlew clean",
"android:regtest-debug": "react-native run-android --mode chainregtestNormalDebug --appIdSuffix regtest.debug --main-activity MainActivity",
"android:regtest": "react-native run-android --mode chainregtestNormalRelease --appIdSuffix regtest",
Expand All @@ -29,7 +29,7 @@
"android:bundle-release-testnet": "cd android && ./gradlew clean && NODE_OPTIONS=--openssl-legacy-provider ./gradlew bundlechaintestnetNormalRelease",
"android:bundle-js-debug": "react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle",
"android:bundle-js-release": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle",
"android:unsigned-mainnet": "cd android && ./gradlew assembleChainmainnetNormalRelease",
"android:mainnet-unsigned": "cd android && ./gradlew assembleChainmainnetNormalRelease",
"ios:regtest-debug": "react-native run-ios --scheme BlixtWalletRegtest --configuration DebugRegtest",
"ios:regtest": "react-native run-ios --scheme BlixtWalletRegtest --configuration ReleaseRegtest",
"ios:testnet-debug": "react-native run-ios --scheme BlixtWalletTestnet --configuration DebugTestnet",
Expand Down

0 comments on commit 9b52d1a

Please sign in to comment.