626d013547
* switch from yarn to pnpm * Remove full-nym-wasm (#6796) * Remove nym-browser-extension (#6798) * Remove nym-browser-extension * remove unused from makefile * Remove Node tester (#6800) * Remove dom-utils (#6801) * gh-actions: remove pnpm version * nuke dist and pkg * add missing dependency * set node version to 24 and pnpm version to 11 * upgrade lock file from pnpm version 9 to 11 * pnpm add approved builds * yarn -> pnpm * upgrade jest version * yarn -> pnpm * Remove unused cfg; clippy! * pnpm: when dev mode is on, unfreeze the lock file * pnpm approve more scripts * pnpm syntax error * add `pnpm i` * disable eslint temporarily while switching to biome in later PR --------- Co-authored-by: Mark Sinclair <mmsinclair@users.noreply.github.com> Co-authored-by: mfahampshire <maxhampshire@pm.me>
19 lines
895 B
Bash
Executable File
19 lines
895 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerate macOS/Windows icon bundles from the 1024x1024 master in src-tauri/icons/.
|
|
# Master file: app-icon-source.png (padded per Apple-style safe zone). Edit that asset, then run:
|
|
# ./scripts/regenerate-tauri-icons.sh
|
|
# Requires: python3 with Pillow (`pip install pillow`) for tray_icon.png resize.
|
|
set -euo pipefail
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
SRC="$ROOT/src-tauri/icons/app-icon-source.png"
|
|
pnpm --dir "$ROOT" exec tauri icon "$SRC" -o "$ROOT/src-tauri/icons"
|
|
rm -rf "$ROOT/src-tauri/icons/android" "$ROOT/src-tauri/icons/ios"
|
|
rm -f "$ROOT/src-tauri/icons"/Square*.png "$ROOT/src-tauri/icons/StoreLogo.png"
|
|
python3 - <<PY
|
|
from PIL import Image
|
|
from pathlib import Path
|
|
icons = Path("$ROOT/src-tauri/icons")
|
|
src = Image.open(icons / "app-icon-source.png").convert("RGBA")
|
|
src.resize((128, 128), Image.Resampling.LANCZOS).save(icons / "tray_icon.png")
|
|
PY
|