From 963d5483899631757afaf1dbafea57c86a01da85 Mon Sep 17 00:00:00 2001 From: huage Date: Sat, 18 Apr 2026 10:24:18 +0800 Subject: [PATCH] fix: add android platform before sync --- Dockerfile.android | 2 +- capacitor.config.json | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile.android b/Dockerfile.android index cf065ad..0a9f9b0 100644 --- a/Dockerfile.android +++ b/Dockerfile.android @@ -38,7 +38,7 @@ COPY package*.json ./ RUN npm install COPY . . -RUN npm run build && npx cap sync android +RUN npm run build && npx cap add android && npx cap sync android WORKDIR /workspace/android RUN chmod +x gradlew diff --git a/capacitor.config.json b/capacitor.config.json index 128b143..7b0039e 100644 --- a/capacitor.config.json +++ b/capacitor.config.json @@ -7,7 +7,12 @@ }, "android": { "backgroundColor": "#ffffff", - "allowMixedContent": true + "allowMixedContent": true, + "icon": "public/icons/icon.png", + "adaptiveIcon": { + "foreground": "public/icons/ic_launcher_foreground.png", + "background": "public/icons/ic_launcher_background.png" + } }, "plugins": { "SplashScreen": {