fix(mobile): use PWA artwork for Android launcher icon
This commit is contained in:
1 parent
e31652ff94
commit
dd3854ef5c
6 files changed
+11
-7
No files matched your search
@@ -3,7 +3,7 @@
|
||||
"name": "EdgeEver",
|
||||
"slug": "edgeever",
|
||||
"scheme": "edgeever",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"runtimeVersion": {
|
||||
"policy": "appVersion"
|
||||
},
|
||||
@@ -25,10 +25,11 @@
|
||||
},
|
||||
"android": {
|
||||
"package": "org.edgeever.mobile",
|
||||
"versionCode": 18,
|
||||
"versionCode": 19,
|
||||
"adaptiveIcon": {
|
||||
"backgroundColor": "#d1fae5",
|
||||
"foregroundImage": "./assets/adaptive-icon-foreground.png"
|
||||
"backgroundImage": "./assets/icon.png",
|
||||
"foregroundImage": "./assets/adaptive-icon-transparent.png"
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
@@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" aria-hidden="true">
|
||||
<rect width="64" height="64" fill="none" />
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 133 B |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@edgeever/mobile",
|
||||
"version": "0.4.12",
|
||||
"version": "0.4.13",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "expo-router/entry",
|
||||
|
||||
@@ -43,7 +43,7 @@ bun run prepare:mobile:icons
|
||||
PREBUILD_FINGERPRINT="$({
|
||||
shasum \
|
||||
apps/mobile/app.json \
|
||||
apps/mobile/assets/adaptive-icon-foreground.svg \
|
||||
apps/mobile/assets/adaptive-icon-transparent.svg \
|
||||
apps/web/public/pwa-512x512.png \
|
||||
bun.lock
|
||||
} | shasum | awk '{print $1}')"
|
||||
|
||||
@@ -7,8 +7,8 @@ const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "
|
||||
const mobileAssetsDir = path.join(projectRoot, "apps/mobile/assets");
|
||||
const sharedIconPath = path.join(projectRoot, "apps/web/public/pwa-512x512.png");
|
||||
const mobileIconPath = path.join(mobileAssetsDir, "icon.png");
|
||||
const adaptiveIconSourcePath = path.join(mobileAssetsDir, "adaptive-icon-foreground.svg");
|
||||
const adaptiveIconPath = path.join(mobileAssetsDir, "adaptive-icon-foreground.png");
|
||||
const adaptiveIconSourcePath = path.join(mobileAssetsDir, "adaptive-icon-transparent.svg");
|
||||
const adaptiveIconPath = path.join(mobileAssetsDir, "adaptive-icon-transparent.png");
|
||||
|
||||
await mkdir(mobileAssetsDir, { recursive: true });
|
||||
await copyFile(sharedIconPath, mobileIconPath);
|
||||
|
||||
Reference in new issue
Block a user