fix: add android platform before sync

This commit is contained in:
2026-04-18 10:24:18 +08:00
parent 23291be5d2
commit 963d548389
2 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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": {