Skip to content

Commit ff924b1

Browse files
committed
fix for android build
1 parent 4f248d9 commit ff924b1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,23 @@ jobs:
370370
source scripts/env.sh
371371
scripts/app_config/shared/update_version.sh -v "0.0.0" -b "${{ github.run_number }}"
372372
373+
- name: Generate Android app icons and splash assets
374+
run: |
375+
source scripts/env.sh
376+
scripts/app_config/shared/asset_generators.sh android
377+
378+
- name: Ensure Android launcher icons exist
379+
shell: bash
380+
run: |
381+
set -euxo pipefail
382+
ICON_SOURCE="asset_sources/icon/campfire/icon.png"
383+
test -f "${ICON_SOURCE}"
384+
for d in mipmap-mdpi mipmap-hdpi mipmap-xhdpi mipmap-xxhdpi mipmap-xxxhdpi; do
385+
mkdir -p "android/app/src/main/res/${d}"
386+
cp "${ICON_SOURCE}" "android/app/src/main/res/${d}/ic_launcher.png"
387+
cp "${ICON_SOURCE}" "android/app/src/main/res/${d}/ic_launcher_round.png"
388+
done
389+
373390
- name: Generate local template secrets
374391
run: |
375392
cd scripts

0 commit comments

Comments
 (0)