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 98af81b..fa8a7d1 100644 Binary files a/src-tauri/icons/icon.icns and b/src-tauri/icons/icon.icns differ