搭配 Webpack 的 Quasar CLI - @quasar/app-webpack
就圖示而言,Capacitor 是所有建置目標中最複雜的之一,因為您不僅需要將圖示放置在特定的資料夾中,還需要在兩種平台 (Android、iOS) 的設定檔中註冊它們。
如果您發現有任何新增或遺失的檔案,請開啟 issue。

Icon Genie CLI
提示
我們強烈建議使用 Icon Genie CLI,因為它會取用來源圖示,並自動複製、縮放、最小化圖示,並將它們放置在適當的目錄中。在需要時,它也會告訴您需要將哪些標籤新增到您的 /index.html 或 /src/index.template.html 檔案中。
使用 Icon Genie CLI 快速引導必要的圖像。如需完整的選項列表,請造訪 Icon Genie CLI 命令列表頁面。
$ icongenie generate -m capacitor -i /path/to/source/icon.png [-b /path/to/background.png]
內容貼上
根據您將使用的封裝工具 (@electron/packager 或 electron-builder),請參閱它們的文件,了解如何掛鉤圖示。
手動說明
除非您使用 Icon Genie 應用程式擴充功能,否則這些是您需要替換的檔案
./
android/
app/
src/
main/
res/
drawable/
splash.png
drawable-land-hdpi/
splash.png
drawable-land-mdpi/
splash.png
drawable-land-xhdpi/
splash.png
drawable-land-xxhdpi/
splash.png
drawable-land-xxxhdpi/
splash.png
drawable-port-hdpi/
splash.png
drawable-port-mdpi/
splash.png
drawable-port-xhdpi/
splash.png
drawable-port-xxhdpi/
splash.png
drawable-port-xxxhdpi/
splash.png
mipmap-hdpi/
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
mipmap-mdpi/
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
mipmap-xhdpi/
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
mipmap-xxhdpi/
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
mipmap-xxhdpi/
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
ios/
App/
App/
Assets.xcassets/
AppIcon.appiconset/
AppIcon-20x20@1x.png
AppIcon-20x20@2x-1.png
AppIcon-20x20@2x.png
AppIcon-20x20@3x.png
AppIcon-29x29@1x.png
AppIcon-29x29@2x-1.png
AppIcon-29x29@2x.png
AppIcon-29x29@3x.png
AppIcon-40x40@1x.png
AppIcon-40x40@2x-1.png
AppIcon-40x40@2x.png
AppIcon-40x40@3x.png
AppIcon-512@2x.png
AppIcon-60x60@2x.png
AppIcon-60x60@3x.png
AppIcon-76x76@1x.png
AppIcon-76x76@2x.png
AppIcon-83.5x83.5@2x.png
Splash.imageset/
splash-2732x2732-1.png
splash-2732x2732-2.png
splash-2732x2732.png