Skip to content

Commit baedc13

Browse files
Fix dapp store deployment (#3829)
1 parent bcb5137 commit baedc13

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

.circleci/src/commands/@mobile-commands.yml

+32-5
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,22 @@ mobile-release-android:
192192
193193
# Deploy Solana saga dApp store
194194
mobile-release-saga-dapp-store:
195+
parameters:
196+
bundle-id:
197+
default: 'co.audius.app'
198+
type: string
199+
track:
200+
default: 'alpha'
201+
type: string
195202
steps:
196203
- checkout
197204
- attach_workspace:
198205
at: ./
206+
- run:
207+
name: Add Java to PATH
208+
command: |
209+
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> ~/.bashrc
210+
source ~/.bashrc
199211
- run:
200212
name: Install nvm
201213
command: |
@@ -219,7 +231,13 @@ mobile-release-saga-dapp-store:
219231
- run:
220232
name: Recover key
221233
command: |
234+
cd packages/mobile/dapp-store
222235
echo $SOLANA_DAPP_STORE_PRIVATE_KEY > app-keypair.json
236+
- run:
237+
name: Increment version code
238+
command: |
239+
cd packages/mobile/android
240+
bundle exec fastlane incrementVersionCode package_name:<<parameters.bundle-id>> track:<<parameters.track>>
223241
- run:
224242
name: Build Android
225243
command: |
@@ -228,22 +246,31 @@ mobile-release-saga-dapp-store:
228246
- run:
229247
name: Validate release
230248
command: |
249+
cd packages/mobile/dapp-store
231250
nvm use
232-
npx dapp-store validate release -k app-keypair.json -b $ANDROID_HOME/build-tools/30.0.3
251+
npx dapp-store validate release -k app-keypair.json -b $ANDROID_HOME/build-tools/33.0.0
233252
- run:
234253
name: Publish APK
235254
command: |
255+
cd packages/mobile/dapp-store
236256
nvm use
237-
npx dapp-store create release -k app-keypair.json -b $ANDROID_HOME/build-tools/30.0.3 -u https://audius-fe.rpcpool.com
257+
npx dapp-store create release -k app-keypair.json -b $ANDROID_HOME/build-tools/33.0.0 -u https://solana-mainnet.g.alchemy.com/v2/9j3Y1hc042MCH0_TqunwotlaFLHF6K4l
238258
- run:
239259
name: Issue update to dapp store
240260
command: |
261+
cd packages/mobile/dapp-store
241262
nvm use
242-
npx dapp-store publish update -k app-keypair.json -u https://audius-fe.rpcpool.com --requestor-is-authorized --complies-with-solana-dapp-store-policies
263+
npx dapp-store publish update -k app-keypair.json -u https://solana-mainnet.g.alchemy.com/v2/9j3Y1hc042MCH0_TqunwotlaFLHF6K4l --requestor-is-authorized --complies-with-solana-dapp-store-policies
243264
- run:
244265
name: Commit changes
245266
command: |
246-
git checkout main -f
267+
cd packages/mobile/dapp-store
268+
git stash
269+
git checkout main
247270
git pull
248-
git commit -am 'Update dapp-store build artifacts'
271+
git stash pop
272+
git add .
273+
git config --global user.email "[email protected]"
274+
git config --global user.name "audius-infra"
275+
git commit -m 'Update dapp-store build artifacts'
249276
git push origin main

.circleci/src/jobs/@mobile-jobs.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -323,4 +323,6 @@ mobile-deploy-saga-dapp-store:
323323
docker:
324324
- image: circleci/android:api-30-node
325325
steps:
326-
- mobile-release-saga-dapp-store
326+
- mobile-release-saga-dapp-store:
327+
bundle-id: 'co.audius.app'
328+
track: 'alpha'

0 commit comments

Comments
 (0)