blob: b0264dd6dccdbe1db0d1e68c4ec601de081c800b (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Version thresholds for informational notices only.
# Actual data migration and config seeding is handled by the wrapper script
# at first launch, where the correct user context is available.
_XDG_MIGRATION_VER="0.3.826"
_UPDATER_SINCE="0.4.164"
_ver_lt() {
[[ $(vercmp "$1" "$2") -lt 0 ]]
}
post_install() {
local _ver="${1%%-*}" # strip pkgrel suffix (e.g. 0.4.345-1 -> 0.4.345)
echo
echo " ╔═══════════════════════════════════════════════╗"
echo " ║ DeadSync installed ║"
echo " ╚═══════════════════════════════════════════════╝"
echo
echo " Installed to : /opt/deadsync"
echo " User data : \$XDG_DATA_HOME (default: ~/.local/share/deadsync)"
echo " Songs : \$XDG_DATA_HOME/songs (default: ~/.local/share/deadsync/songs)"
echo
echo " Launch from your application menu or run:"
echo " \$ deadsync"
echo
echo " Note: in-app updates are disabled for package manager installs."
echo " Updates are managed by pacman / your AUR helper."
echo
echo " Changelog:"
echo " https://github.com/pnn64/deadsync/releases/tag/v${_ver}"
echo
}
post_upgrade() {
local _ver="${1%%-*}" # strip pkgrel suffix (e.g. 0.4.345-1 -> 0.4.345)
local _old_ver="$2"
echo
echo " ╔═══════════════════════════════════════════════╗"
echo " ║ DeadSync upgraded ║"
echo " ╚═══════════════════════════════════════════════╝"
echo
echo " Installed to : /opt/deadsync"
echo " User data : \$XDG_DATA_HOME (default: ~/.local/share/deadsync)"
echo
if _ver_lt "${_old_ver}" "${_XDG_MIGRATION_VER}"; then
echo " NOTICE: This release moves user data to the XDG data directory."
echo " Your data will be migrated from ~/.deadsync/ on next launch."
echo
fi
if _ver_lt "${_old_ver}" "${_UPDATER_SINCE}"; then
echo " NOTICE: In-app updates have been introduced but are disabled"
echo " for package manager installs. This will be configured on"
echo " next launch."
echo
fi
echo " Changelog:"
echo " https://github.com/pnn64/deadsync/releases/tag/v${_ver}"
echo
}
|