Family bookkeeping PWA modelled on 木木记账
Hono + SQLite server and a React/shadcn PWA with two-level categories, who-spent/who-paid splits, settlement, one-line and voice entry, budget alerts (Web Push and Bark), monthly/annual reports, and 木木 import tools. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
# Copies the category icons from the locally installed 木木记账 into a data
|
||||
# directory (default: server/data/mumu-icons), or to the server with HOST set.
|
||||
# The icons stay private: they are never committed or baked into the image.
|
||||
#
|
||||
# deploy/extract-mumu-icons.sh # local dev
|
||||
# HOST=root@8.133.23.131 deploy/extract-mumu-icons.sh # server
|
||||
set -euo pipefail
|
||||
APP=${APP:-"/Applications/木木记账.app"}
|
||||
SRC="$APP/Contents/Frameworks/App.framework/Versions/A/Resources/flutter_assets/assets"
|
||||
cd "$(dirname "$0")/.."
|
||||
for s in 3d flat filled lineal outline; do test -d "$SRC/$s" || { echo "missing $SRC/$s"; exit 1; }; done
|
||||
|
||||
if [ -n "${HOST:-}" ]; then
|
||||
tar -C "$SRC" -czf - 3d flat filled lineal outline | ssh "$HOST" 'mkdir -p /opt/billing/data/mumu-icons && tar -C /opt/billing/data/mumu-icons -xzf -'
|
||||
else
|
||||
mkdir -p server/data/mumu-icons
|
||||
tar -C "$SRC" -cf - 3d flat filled lineal outline | tar -C server/data/mumu-icons -xf -
|
||||
fi
|
||||
echo "icons copied"
|
||||
Reference in New Issue
Block a user