feat(installer): install PacManager on the target system only
PacManager (FWS-PacManage 1.2.1) is packaged like fws-dnd: a local PKGBUILD with the sources vendored in the repository, because the upstream Gitea is private and makepkg cannot fetch from it during the build. It is deliberately absent from packages.x86_64. On a live system one is about to replace, a package manager serves no purpose, and it would drag qt6-base into the squashfs for nothing. build.sh drops the built package into the image instead, and the kickstart %post installs it into the target, then deletes the file. Two conditions there: only when a desktop was chosen (it is a GUI application, nothing could launch it on a command-line install), and never blocking -- "pacman -U" resolves qt6-base over the network, and no PacManager is not a failed installation. The binary goes to /usr/lib/fws-pacmanage rather than /usr/bin: PluginManager looks for its plugins in applicationDirPath()/plugins, so /usr/bin would mean a /usr/bin/plugins directory polluting a PATH entry. Binary and plugins stay together in a private directory and /usr/bin/fws-pacmanage is a symlink -- Qt resolves /proc/self/exe, so the plugins are still found. Upstream ships no .desktop file, so one is provided here. build.sh also gains a guard: it now checks, before any lengthy step, that every package only local-repo can provide is actually built. Until now a missing one surfaced as a bare "target not found" from pacman, after the mirror refresh, the full upgrade and the whole mkarchiso setup -- several minutes for an error detectable in one second. Signed-off-by: nocode <suzuku295@gmail.com>
This commit is contained in:
1 parent
c7607b3f37
commit
213ff2d47d
6 files changed
+183
-1
No files matched your search
@@ -0,0 +1,25 @@
|
||||
[Desktop Entry]
|
||||
# Lanceur fourni par FWS : le dépôt amont FWS-PacManage n'en livre aucun
|
||||
# (CMakeLists n'installe que le binaire et les en-têtes).
|
||||
#
|
||||
# Icon : nom d'icône standard, présent dans tous les thèmes — les SVG de
|
||||
# resources/icons/ sont des icônes d'INTERFACE (24 px, trait clair codé en dur
|
||||
# pour un fond sombre), inutilisables telles quelles dans un menu. À remplacer
|
||||
# le jour où le projet aura une vraie icône d'application.
|
||||
Type=Application
|
||||
# ATTENTION : « Version » est la version de la SPÉCIFICATION Desktop Entry
|
||||
# (1.0 à 1.5), PAS celle de l'application — y mettre 1.2.1 fait échouer
|
||||
# desktop-file-validate : « value "1.2.1" is not a known version ».
|
||||
Version=1.0
|
||||
Name=Gestionnaire de paquets
|
||||
Name[en]=Package Manager
|
||||
GenericName=Gestionnaire de paquets
|
||||
GenericName[en]=Package Manager
|
||||
Comment=Rechercher, installer et mettre à jour les logiciels
|
||||
Comment[en]=Search, install and update software
|
||||
Exec=fws-pacmanage
|
||||
Icon=system-software-install
|
||||
Terminal=false
|
||||
Categories=System;PackageManager;
|
||||
Keywords=paquet;paquets;logiciel;pacman;flatpak;installer;mise à jour;package;software;update;
|
||||
StartupNotify=true
|
||||
Reference in new issue
Block a user