Files
wehub-resource-sync 3e779be6f3
CI / lint (push) Failing after 13m4s
CI / test (3.11, ubuntu-latest) (push) Failing after 2m4s
CI / test (3.13, ubuntu-latest) (push) Successful in 13m30s
CI / test (3.14, ubuntu-latest) (push) Successful in 17m21s
CI / test (3.12, ubuntu-latest) (push) Successful in 17m55s
CI / discover-apps-ps (push) Successful in 1m56s
CI / test (3.9, ubuntu-latest) (push) Successful in 13m17s
CI / test (3.10, ubuntu-latest) (push) Successful in 26m21s
CI / audit (push) Successful in 13m38s
Deploy site / deploy (push) Has been cancelled
CI / test (3.14, ubuntu-24.04-arm) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:32:37 +08:00

47 lines
1.4 KiB
Plaintext

# SPDX-License-Identifier: MIT
#
# Pacman scriptlet for winpodx (#255 PR 4).
# Referenced from PKGBUILD's `install=winpodx.install`.
# Post-install banner. pacman shows this output above the progress bar
# right after the package files land. Keep terse -- full guidance is in
# docs/INSTALL.md.
post_install() {
cat <<'EOF'
[WinPodX] Package installed. Next step:
- Open WinPodX from your application menu (GUI) OR
- Run 'winpodx' in a terminal
First-run prompt will offer auto setup / customize wizard / skip.
For the curl-like all-in-one experience, run:
winpodx setup
Full docs: https://github.com/kernalix7/winpodx/blob/main/docs/INSTALL.md
EOF
}
post_upgrade() {
# No banner on upgrade; existing users don't need the first-run hint.
:
}
# Pacman has no purge concept; both pacman -R and pacman -Rns drop the
# package files but leave user state. We still run the stage-1 cleanup
# (kill processes + stop listener) so the user isn't left with stale
# tray pointing at a deleted binary, and we tell them how to do the
# full wipe themselves.
post_remove() {
if [ -x /usr/share/winpodx/packaging/postrm-common.sh ]; then
/usr/share/winpodx/packaging/postrm-common.sh remove || true
fi
cat <<'EOF'
[WinPodX] Package removed. User-side state (containers, configs,
reverse-open daemon, autostart) was NOT touched. To wipe everything:
winpodx uninstall --purge --yes
EOF
}