blob: 5cab4327282c2737bcff9385c8bc217af50023c0 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
#!/bin/bash
post_install() {
echo ""
echo "========================================"
echo "HTML Builder Qt5 - Post Installation"
echo "========================================"
echo ""
# Устанавливаем права
echo "Setting permissions on /opt/htmlbuilder..."
if [ -d "/opt/htmlbuilder" ]; then
# Вариант 1: Полные права (777) как вы просили
chmod -R 777 /opt/htmlbuilder 2>/dev/null || {
echo "Note: Some permissions could not be set"
}
# Убеждаемся что исполняемые файлы имеют +x
chmod +x /opt/htmlbuilder/htmlbuilder 2>/dev/null || true
chmod +x /opt/htmlbuilder/run-htmlbuilder 2>/dev/null || true
echo "✓ Permissions set on /opt/htmlbuilder"
# Проверяем Qt5 зависимости
echo ""
echo "Checking Qt5 runtime dependencies..."
if ldd /opt/htmlbuilder/htmlbuilder 2>/dev/null | grep -q "Qt5"; then
echo "✓ Qt5 libraries detected"
else
echo "⚠ Note: Qt5 libraries not detected"
echo " Make sure qt5-base and qt5pas are installed"
fi
else
echo "✗ ERROR: /opt/htmlbuilder not found!"
exit 1
fi
# Информация для пользователя
echo ""
echo "========================================"
echo "INSTALLATION COMPLETE!"
echo "========================================"
echo ""
echo "HTML Builder has been installed with Qt5 widgetset."
echo ""
echo "Available commands:"
echo " htmlbuilder - Run HTML Builder (direct)"
echo " htmlbuilder-qt5 - Run with Qt5 environment wrapper"
echo ""
echo "For Qt5-specific configuration, see:"
echo " /usr/share/doc/htmlbuilder/QT5-README"
echo ""
echo "To customize Qt5 behavior, set these environment variables:"
echo " export QT_SELECT=5 # Force Qt5"
echo " export QT_QPA_PLATFORM=xcb # X11 backend"
echo " export QT_QPA_PLATFORM=wayland # Wayland backend"
echo ""
echo "If you experience display issues, try:"
echo " QT_QPA_PLATFORM=xcb htmlbuilder"
echo ""
echo "/opt/htmlbuilder has been set to 777 permissions for"
echo "multi-user access. Use with caution on shared systems."
}
post_upgrade() {
echo "Updating HTML Builder Qt5 installation..."
post_install
echo "Upgrade complete!"
}
pre_remove() {
echo "Preparing to remove HTML Builder Qt5..."
echo "Application files will be removed from /opt/htmlbuilder"
echo "User data in ~/.config/htmlbuilder/ will be preserved."
}
post_remove() {
echo "HTML Builder Qt5 has been removed."
echo "Qt5 libraries (qt5-base, qt5pas) are still installed."
echo "Remove them manually if not needed:"
echo " sudo pacman -Rns qt5pas"
}
|