- Go 主进程 cmd/zerorigin(托盘常驻 + 触发器/规则/动作引擎) - Wails v3 设置进程 cmd/settings(独立 module) - 监督进程 cmd/watchdog(-supervise 异常重启) - 构建脚本 build.bat / NSIS 安装包 deploy/、便携版 portable/ - 架构与 MVP 计划文档 docs/、阶段 0-4 验收记录 deploy/acceptance-0-4.md
22 lines
825 B
Bash
22 lines
825 B
Bash
#!/bin/sh
|
|
|
|
# Update desktop database for .desktop file changes
|
|
# This makes the application appear in application menus and registers its capabilities.
|
|
if command -v update-desktop-database >/dev/null 2>&1; then
|
|
echo "Updating desktop database..."
|
|
update-desktop-database -q /usr/share/applications
|
|
else
|
|
echo "Warning: update-desktop-database command not found. Desktop file may not be immediately recognized." >&2
|
|
fi
|
|
|
|
# Update MIME database for custom URL schemes (x-scheme-handler)
|
|
# This ensures the system knows how to handle your custom protocols.
|
|
if command -v update-mime-database >/dev/null 2>&1; then
|
|
echo "Updating MIME database..."
|
|
update-mime-database -n /usr/share/mime
|
|
else
|
|
echo "Warning: update-mime-database command not found. Custom URL schemes may not be immediately recognized." >&2
|
|
fi
|
|
|
|
exit 0
|