blob: 9eea6b11940396a6df0a684c7ff6fbad682eb964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
post_install() {
echo ""
echo "==> Dispatch Electron desktop wrapper installed (self-contained)."
echo " Launch from your menu (Dispatch) or run:"
echo " dispatch"
echo ""
echo " The bundled frontend talks to the API URL baked in at build"
echo " time (default: http://localhost:18390). To run a local backend:"
echo " pacman -S dispatch dispatch-systemd # systemd"
echo " pacman -S dispatch dispatch-s6 # s6 / Artix"
echo ""
echo " To point the wrapper at a different backend, rebuild with:"
echo " VITE_API_URL=\"http://your-host:18390\" bin/build-pkg-electron"
echo ""
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications 2>/dev/null || true
fi
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
gtk-update-icon-cache -q /usr/share/icons/hicolor 2>/dev/null || true
fi
}
post_upgrade() {
post_install
}
post_remove() {
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications 2>/dev/null || true
fi
}
|