From 8365c8d63555e4c8d60f47aa89a574b29fe7e4fd Mon Sep 17 00:00:00 2001 From: polv Date: Tue, 24 Mar 2026 12:59:56 +0700 Subject: [PATCH] clean app icon script --- make-square-icon.js | 4 +--- package.json | 1 + src-tauri/icons/icon.icns | Bin 349366 -> 349366 bytes 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/make-square-icon.js b/make-square-icon.js index f545db6..7c0e0c9 100644 --- a/make-square-icon.js +++ b/make-square-icon.js @@ -12,7 +12,7 @@ async function resizeAndMakeWhiteTransparent(inputPath, outputPath) { if (!origW || !origH) throw new Error("Unable to read image dimensions"); const targetW = Math.max(origW, origH); - const targetH = Math.max(origW, origH); + const targetH = targetW; // Resize and output raw RGBA buffer const { data, info } = await img @@ -23,8 +23,6 @@ async function resizeAndMakeWhiteTransparent(inputPath, outputPath) { const { width: w, height: h, channels } = info; // channels should be 4 (RGBA) if (channels < 3) throw new Error("Unexpected channel count"); - console.log(targetH, targetW, info); - // Modify alpha for near-white pixels for (let i = 0; i < data.length; i += channels) { const r = data[i]; diff --git a/package.json b/package.json index 7bb3d5b..7137f6a 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "tauri dev", "android:start": "tauri android run", + "android:install:debug": "adb install -r src-tauri/gen/android/app/build/outputs/apk/arm64/debug/app-arm64-debug.apk", "android:server": "tauri android dev", "android:build:debug": "tauri android build --debug", "build": "tauri build", diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns index 98af81b5aec5770f2fc0f360fefc5a2c32e1bb47..fa8a7d10cc0385f46e0ac9993df7dfed577b8e3b 100644 GIT binary patch delta 72 zcmdnCQgqu&QI5>yykZ8{kZs#5wHQ4(w(pi_RngdP7|V1-X!{`}#)aXHTwA#qi?rIm c<}(2?^Y*X#EJxRGzwgd^oo9Pu7vuR$0N#xqSpWb4 delta 71 zcmV-N0J#6QsTH=V6$oi#ZgT(yRJMcHnzz@Q0dy*{3q=UCH$$RV0x>kRee%xIvvx4T d5{FC00f$S)0=G-W1I4eiPY5L_w-9v%*9=5&9o7H<