Author SHA1 Message Date
BlackAngelTV c233440b77 fix(ci): build the ISO in a privileged container via the host Docker socket 2026-12-04 15:33:56 +01:00
BlackAngelTV c704a72d3e ci: probe workspace visibility in a privileged container 2026-12-04 15:30:33 +01:00
BlackAngelTV 32af9aad8f ci: probe docker socket and privileged build container 2026-12-04 15:28:43 +01:00
BlackAngelTV 382fc3ba03 ci: probe runner capabilities 2026-12-04 15:25:54 +01:00
BlackAngelTV d4cd948b8c fix(ci): report the real mount error and how to fix the runner
The preflight swallowed the reason mount() failed, so a refused tmpfs mount
looked like a generic privilege problem. Print the command's own error and name
the two fixes: container.privileged in the act_runner config, or a label
registered in host mode.
2026-12-04 13:48:41 +01:00
BlackAngelTV cda6c61adc chore(release): bump VERSION to 0.9.0
Release / release (push) Failing after 3s
Start the 0.9 line so the release workflow builds the ISO and publishes it
on Gitea and GitHub with the image attached.

The decide step now refuses to run when the checkout carries no tag: without
them the version-line rule reads every VERSION as a new line and publishes a
patch release. release.sh reads the last released tag with sed instead of
grep, so a repository without tags reaches its "first release" case instead
of dying under pipefail, and a dry run no longer demands the production
tokens it never uses.
2026-12-04 13:25:28 +01:00
BlackAngelTV beca881276 fix(release): only trust a finished asset, replace a broken one
GitHub answers 201 when it accepts an upload, not when the file is stored: the
1.35 GiB transfer died on a DNS hiccup and left a "starter" asset, which the
next run then treated as already published. Only state=uploaded now counts, an
incomplete asset is deleted before the retry, and the result is checked again
after the upload instead of being assumed.
2026-12-04 12:57:28 +01:00
BlackAngelTV 07a581a80b fix(release): report what a failed upload actually means
The first real 1.35 GiB publication failed differently on each forge and the
bare status codes said nothing: Gitea answered 413 from nginx, long before its
own size limit, while GitHub broke on a DNS hiccup mid-transfer and showed an
unreadable "000000". Upload failures now name the cause, and curl retries a
transfer that dies on a transient network error.
2026-12-04 12:49:11 +01:00
BlackAngelTV 386633b092 feat(release): publish an ISO that was built somewhere else
The build needs mount() and loop devices, which a CI job does not always get,
while the publication only needs the API tokens. --iso takes the artefact as an
argument so an image built on the usual host can be released from any machine.
2026-12-04 12:42:10 +01:00
BlackAngelTV d99f489fd8 ci(release): fail fast when the runner cannot mount
The org runner executes jobs in an unprivileged container, where mount() is
denied even as root, so mkarchiso died at pacstrap after a couple of minutes.
A tmpfs mount probe in the preflight now reports the missing capability
immediately instead of leaving a raw mount error next to the package setup.
2026-12-04 12:38:05 +01:00
BlackAngelTV 5f12530d7f ci(release): install mkarchiso's host tools and hand back the workspace
The first real build on the org runner validated nothing: mkarchiso refuses to
run when grub-install, mkfs.fat or mcopy are missing from the host. Those three
packages are now installed before the build, and the workspace is chowned back
to the runner afterwards so a root-owned build tree cannot break the next
checkout.
2026-12-04 12:34:58 +01:00
BlackAngelTV f69ebd2f4b ci(release): add a build_only run that publishes nothing
The build and the uploads are the only parts a dry run cannot cover, and the
org runner had never been asked to run mkarchiso. A build_only dispatch builds
the ISO on the runner and stops there, so the chain can be validated without
touching either forge.
2026-12-04 12:32:26 +01:00
BlackAngelTV 5b3b54f257 ci(release): target the org runner and default to the multi-desktop ISO
The org runners are labelled arch-host, so the previous self-hosted/arch pair
never matched anything. The ISO carries every desktop and the choice is made
in the installer, so the variant is only a filename label and multi is the
default. A dry_run input exercises the whole chain without a build, which is
how the workflow gets validated after a change.
2026-12-04 12:29:28 +01:00
BlackAngelTV 766292a1c3 ci(release): run the build and both releases from a Gitea workflow
The official build and its two publications were started by hand, so a VERSION
bump could stay unpublished indefinitely. Touching VERSION on Main now starts
the workflow, which asks release.sh whether the version line actually changed,
then builds and opens the Gitea and GitHub releases with the ISO attached.
2026-12-04 12:23:31 +01:00
BlackAngelTV 5ddcfe20e0 feat(release): build and publish a new version line on both forges
Bumping VERSION said what shipped, but nothing tied it to an ISO nor to a
release entry: an ISO could be built and never published, or published twice
with different notes. One script now detects the new 0.8.* -> 0.9.* line,
builds through build-offi.sh, then creates or updates the Gitea and GitHub
releases with the ISO attached, so a failed upload is replayed with
--skip-build instead of rebuilding.
2026-12-04 12:18:52 +01:00
BlackAngelTV 9b7a1b4b10 chore(build): drop the local PKGBUILD builds from setup-aur.sh
The FWS packages now come from the remote [fws] repository, so the
pkgbuilds/ loop built nothing useful. The script only builds the AUR
packages, and the README steps follow.
2026-11-26 21:33:00 +01:00
BlackAngelTV b5435fdce0 feat(iso): restore the systemd-boot loader entries
The images fell back to the generic default entry. Restore the FWS
labels and the extras (nomodeset, recovery, speech, memtest) that the
installed ISO should offer at boot.
2026-11-26 21:33:00 +01:00
BlackAngelTV 252d7b8484 feat(hardware): restore fws-vr-setup
The VR launcher and its menu entry had been removed; bring them back
with the icon and the exec permissions declared in both profiles so the
shortcut works from the installed system.
2026-11-26 21:33:00 +01:00
BlackAngelTV ea3cd5a28d fix(hyprland): ship the desktop config as hyprland.lua
Hyprland 0.57 dropped the hyprlang syntax, so hyprland.conf is no longer
read and the session started bare with a US layout. The template now
emits the Lua config that Anaconda renders into /etc/skel and the homes
it just created.
2026-11-26 21:33:00 +01:00
24 changed files with 1191 additions and 247 deletions

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
name: Probe runner
on:
workflow_dispatch:
jobs:
probe:
runs-on: arch-host
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Probe
run: |
set -e
echo "PWD=$PWD"
ls | head
sudo pacman -Sy --needed --noconfirm --quiet docker
docker run --rm --privileged -v "$PWD:$PWD" -w "$PWD" archlinux:latest sh -c '
ls | head
test -f release.sh && echo REPO_VISIBLE
'
echo marker > from-job.txt
docker run --rm --privileged -v "$PWD:$PWD" -w "$PWD" archlinux:latest sh -c '
cat from-job.txt && echo READ_BACK_OK
echo from-container > from-container.txt
'
echo "--- back in job"
cat from-container.txt
rm -f from-job.txt from-container.txt
+144
View File
@@ -0,0 +1,144 @@
name: Release
# Publishes a new version line: official build, then the release on Gitea and
# on GitHub with the ISO attached.
#
# Triggered when VERSION changes on Main (any push that touches VERSION fires
# it, even alongside other files: the path filter is an OR), and manually from
# the Actions tab.
on:
push:
branches: [Main]
paths:
- VERSION
workflow_dispatch:
inputs:
variant:
description: "Étiquette de l'ISO (multi = tous les bureaux, le choix se fait à l'installation)"
required: false
default: multi
force:
description: "Publier même sans changement de ligne de version"
type: boolean
default: false
dry_run:
description: "Vérifier la chaîne sans builder ni publier"
type: boolean
default: false
build_only:
description: "Builder l'ISO sans publier (valide mkarchiso sur le runner)"
type: boolean
default: false
# One release at a time: a build holds root, loop devices and ~20 min.
concurrency:
group: release
cancel-in-progress: false
jobs:
release:
# Organisation runners: labels arch-host, ubuntu-latest, debian, alpine.
# Jobs run in an unprivileged Arch container (mount denied, no user
# namespaces), so build-offi.sh builds in a privileged archlinux container
# through the host's Docker socket.
runs-on: arch-host
timeout-minutes: 180
steps:
- name: Récupérer le dépôt avec ses tags
uses: actions/checkout@v4
with:
# The version-line rule reads the released tags.
fetch-depth: 0
- name: Git — accepter le dépôt monté par le runner
run: git config --global --add safe.directory "${GITHUB_WORKSPACE}" || true
- name: Faut-il publier ?
id: check
env:
FORCE: ${{ inputs.force }}
run: |
# The version-line rule reads the released tags: a checkout without
# them (fetch-depth: 0 dropped) would see every VERSION as a new line
# and publish a patch release.
[ -n "$(git tag -l)" ] \
|| { echo "::error::aucun tag dans le checkout — fetch-depth: 0 est requis"; exit 1; }
if [ "${FORCE}" = "true" ]; then
./release.sh --check --force
else
./release.sh --check
fi
- name: Outils du runner (docker)
if: steps.check.outputs.publish == 'true' || inputs.build_only
run: |
# The job runs in an unprivileged container: mount() is denied and
# user namespaces are off. build-offi.sh detects that and runs
# mkarchiso in a privileged archlinux container through the host
# Docker socket, so only the Docker CLI is needed here.
SUDO=(); [ "$(id -u)" -eq 0 ] || SUDO=(sudo)
"${SUDO[@]}" pacman -S --needed --noconfirm --quiet docker
- name: Pré-vol du runner
if: steps.check.outputs.publish == 'true' || inputs.build_only
run: |
for c in bash curl jq git pacman docker; do
command -v "${c}" >/dev/null 2>&1 \
|| { echo "::error::${c} absent du runner"; exit 1; }
done
# build-offi.sh elevates itself once, to install packages and drive
# Docker; the build itself runs as root in the privileged container.
[ "$(id -u)" -eq 0 ] || sudo -n true 2>/dev/null \
|| { echo "::error::sudo sans mot de passe requis (installation des paquets) "; exit 1; }
# The privileged container is the only place where mount() works:
# prove the socket and a mount now, not after 20 minutes of build.
[ -S /var/run/docker.sock ] \
|| { echo "::error::/var/run/docker.sock absent : impossible de lancer le conteneur de build"; exit 1; }
if ! MOUNT_ERR="$(docker run --rm --privileged archlinux:latest \
sh -c 'mount -t tmpfs tmpfs /mnt && umount /mnt' 2>&1)"; then
echo "::error::le conteneur de build ne peut pas monter : ${MOUNT_ERR}"
exit 1
fi
- name: Build officiel et publication
if: steps.check.outputs.publish == 'true' || inputs.build_only
env:
GITEA_TOKEN: ${{ secrets.FWS_GITEA_TOKEN }}
GITHUB_TOKEN: ${{ secrets.FWS_GITHUB_TOKEN }}
VARIANT: ${{ inputs.variant || 'multi' }}
DRY_RUN: ${{ inputs.dry_run }}
BUILD_ONLY: ${{ inputs.build_only }}
run: |
if [ "${DRY_RUN}" = "true" ]; then
# Same preflight and notes as a real run, without the build or any
# publication: how the chain is validated after a change.
./release.sh --dry-run --variant "${VARIANT}"
elif [ "${BUILD_ONLY}" = "true" ]; then
# Proves the official build works on this runner and touches
# neither forge. The ISO itself is thrown away with the workspace.
FWS_ISO_VERSION="$(cat VERSION)" FWS_ISO_TAG="${VARIANT}" ./build-offi.sh
else
./release.sh --variant "${VARIANT}"
fi
- name: Résumé
if: steps.check.outputs.publish == 'true' || inputs.build_only
run: |
[ -n "${GITHUB_STEP_SUMMARY:-}" ] || exit 0
{
echo "### FWS $(cat VERSION)"
echo ""
echo "ISO : $(ls -1t out/v*/v*/*.iso 2>/dev/null | head -1)"
} >> "${GITHUB_STEP_SUMMARY}"
- name: Rendre le workspace au runner
if: always()
run: |
# The build runs as root: its artifacts stay root-owned in the
# workspace, and act_runner then fails to clean it up and cannot check
# the repository out for the next run. Hand them back unconditionally.
SUDO=(); [ "$(id -u)" -eq 0 ] || SUDO=(sudo)
"${SUDO[@]}" chown -R "$(id -u):$(id -g)" . 2>/dev/null || true
rm -rf out
+2 -2
View File
@@ -237,13 +237,13 @@ L'ISO finale est générée dans `./out/FWS-YYYY.MM.DD-x86_64.iso`.
4. **`pacman -Syu`** complet (obligatoire — sinon `makepkg` plante sur les "conflicting files" lors des splits de paquets type `gcc-libs`). 4. **`pacman -Syu`** complet (obligatoire — sinon `makepkg` plante sur les "conflicting files" lors des splits de paquets type `gcc-libs`).
5. **Install des outils de build** : `base-devel git`. 5. **Install des outils de build** : `base-devel git`.
6. **Création d'un utilisateur `fwsbuild`** non-root avec `sudo` NOPASSWD (makepkg refuse de tourner en root). 6. **Création d'un utilisateur `fwsbuild`** non-root avec `sudo` NOPASSWD (makepkg refuse de tourner en root).
7. **Clone + build AUR** : `broadcom-wl-dkms` et les paquets de `AUR_PACKAGES` via `makepkg -s --noconfirm`, plus les PKGBUILD locaux de `pkgbuilds/` (fws-pacmanage → PacManager 1.6.2, anaconda, anaconda-widgets, pykickstart, blivet, python-meh patché…). Le build est **incrémental** : un paquet déjà présent dans `local-repo/` à la bonne version est sauté. 7. **Clone + build AUR** : `broadcom-wl-dkms` et les paquets de `AUR_PACKAGES` via `makepkg -s --noconfirm`. Les paquets FWS (anaconda et ses deps, fws-dnd, fws-pacmanage) ne sont plus construits ici : ils viennent du dépôt distant `[fws]` déclaré dans le `pacman.conf` du profil. Le build est **incrémental** : un paquet déjà présent dans `local-repo/` à la bonne version est sauté.
- **Si l'AUR est injoignable**, chaque clonage a une seconde chance, puis le paquet déjà construit dans `local-repo/` est réutilisé. Le script n'abandonne que si le paquet est réellement absent. Un réseau qui bronche ne coûte plus les dix minutes de préparation pacman qui précèdent. - **Si l'AUR est injoignable**, chaque clonage a une seconde chance, puis le paquet déjà construit dans `local-repo/` est réutilisé. Le script n'abandonne que si le paquet est réellement absent. Un réseau qui bronche ne coûte plus les dix minutes de préparation pacman qui précèdent.
- **`broadcom-wl-dkms` est construit mais PAS installé** sur la machine de build : il blackliste `b43`/`bcma`/`ssb` pour tout le système et compilerait un module contre le noyau du conteneur. Sur un run Arch natif, l'installer couperait le Wi-Fi de ta propre machine. - **`broadcom-wl-dkms` est construit mais PAS installé** sur la machine de build : il blackliste `b43`/`bcma`/`ssb` pour tout le système et compilerait un module contre le noyau du conteneur. Sur un run Arch natif, l'installer couperait le Wi-Fi de ta propre machine.
8. **Création du repo local** : `repo-add local-repo/fws-local.db.tar.gz`. 8. **Création du repo local** : `repo-add local-repo/fws-local.db.tar.gz`.
9. **Cleanup** : suppression de l'utilisateur `fwsbuild`. 9. **Cleanup** : suppression de l'utilisateur `fwsbuild`.
**Durée** : quelques minutes en incrémental ; le premier build complet (anaconda + deps) est plus long. **Durée** : quelques minutes en incrémental ; le premier build complet des paquets AUR est plus long.
### Publier sur le dépôt distant `[fws]` ### Publier sur le dépôt distant `[fws]`
+1 -1
View File
@@ -1 +1 @@
0.8.1 0.9.0
+56 -2
View File
@@ -227,6 +227,60 @@ if [ "$EUID" -ne 0 ]; then
fi fi
fi fi
# ── Conteneur sans CAP_SYS_ADMIN : builder via le Docker de l'hôte ──────────
# A Gitea runner runs jobs in an unprivileged container: mount() is denied and
# user namespaces are off, so mkarchiso cannot build in place. The host Docker
# socket is mounted though: re-run the build in a privileged archlinux
# container, streaming the tree in and the ISO out. A bind mount would not do:
# the runner workspace is not a path on the Docker host.
can_mount() {
local mp
mp="$(mktemp -d)" || return 1
if mount -t tmpfs tmpfs "$mp" 2>/dev/null; then
umount "$mp" 2>/dev/null
rmdir "$mp" 2>/dev/null
return 0
fi
rmdir "$mp" 2>/dev/null
return 1
}
if [ -z "$FWS_IN_CONTAINER" ] && ! can_mount; then
command -v docker >/dev/null 2>&1 \
|| { echo -e "\e[31mmount() refusé et docker absent : ce conteneur ne peut pas builder.\e[0m" >&2
echo " Installe docker (pacman -S docker) ou rends le runner privilégié." >&2
exit 1; }
[ -S /var/run/docker.sock ] \
|| { echo -e "\e[31mmount() refusé et /var/run/docker.sock absent : aucun moteur Docker joignable.\e[0m" >&2; exit 1; }
docker info >/dev/null 2>&1 \
|| { echo -e "\e[31mmount() refusé et démon Docker injoignable.\e[0m" >&2; exit 1; }
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
IMAGE="docker.io/library/archlinux:latest"
echo -e "\e[36mmount() refusé : build dans un conteneur Arch privilégié (docker)...\e[0m"
docker pull "$IMAGE" || exit 1
CID="$(docker create --privileged --network=host \
-e FWS_IN_CONTAINER=1 \
-e FWS_ISO_VERSION -e FWS_ISO_TAG \
-v fws-pacman-cache:/var/cache/pacman/pkg \
-w /tmp "$IMAGE" bash /tmp/build-offi.sh)" || exit 1
# docker cp from stdin needs an existing destination directory: /tmp is
# one, and it keeps the copied tree out of the container's root.
tar -C "$REPO_DIR" --exclude=./.git --exclude=./out -cf - . \
| docker cp - "$CID:/tmp" \
|| { docker rm -f "$CID" >/dev/null 2>&1; exit 1; }
if docker start -a "$CID"; then rc=0; else rc=$?; fi
if [ "$rc" -eq 0 ]; then
mkdir -p "$REPO_DIR/out"
docker cp "$CID:/tmp/out/." "$REPO_DIR/out/" || rc=$?
fi
docker rm -f "$CID" >/dev/null 2>&1 || true
OWNER="$(stat -c '%u:%g' "$REPO_DIR" 2>/dev/null || true)"
[ -z "$OWNER" ] || chown -R "$OWNER" "$REPO_DIR/out" 2>/dev/null || true
exit "$rc"
fi
if grep -qi 'microsoft\|wsl' /proc/version 2>/dev/null; then if grep -qi 'microsoft\|wsl' /proc/version 2>/dev/null; then
echo -e "\e[36mBuild officiel dans WSL ($DISTRO_NAME) en tant que root...\e[0m" echo -e "\e[36mBuild officiel dans WSL ($DISTRO_NAME) en tant que root...\e[0m"
IS_WSL=1 IS_WSL=1
@@ -309,9 +363,9 @@ reflector --verbose --latest 10 --sort rate --save /etc/pacman.d/mirrorlist || t
if [ -n "$FWS_IN_CONTAINER" ]; then if [ -n "$FWS_IN_CONTAINER" ]; then
# Image de base qui vieillit → upgrade complet AVANT d'ajouter archiso, # Image de base qui vieillit → upgrade complet AVANT d'ajouter archiso,
# sinon partial upgrade (archiso tire des deps plus récentes que la base). # sinon partial upgrade (archiso tire des deps plus récentes que la base).
pacman -Syu --noconfirm archiso pacman -Syu --noconfirm archiso grub
else else
pacman -Sy --noconfirm archiso pacman -Sy --noconfirm archiso grub
fi fi
echo "==> Préparation de l'environnement de build..." echo "==> Préparation de l'environnement de build..."
@@ -15156,7 +15156,7 @@ zh_TW = "錯誤:{error}"
zu = "Iphutha: {error}" zu = "Iphutha: {error}"
# ==== Hyprland shortcut descriptions (hyprland.conf.tmpl, shown by fws-keys) ==== # ==== Hyprland shortcut descriptions (hyprland.lua.tmpl, shown by fws-keys) ====
[binds.open_terminal] [binds.open_terminal]
fr = "Ouvrir un terminal (kitty)" fr = "Ouvrir un terminal (kitty)"
@@ -0,0 +1,5 @@
title FWS install medium (%ARCH%, UEFI)
sort-key 01
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% udev.event_timeout=45
@@ -0,0 +1,2 @@
timeout 3
default 01-archiso-linux.conf
+1
View File
@@ -36,6 +36,7 @@ file_permissions=(
["/usr/local/bin/fws-intel-rst"]="0:0:755" ["/usr/local/bin/fws-intel-rst"]="0:0:755"
["/usr/local/bin/fws-grub-finalize"]="0:0:755" ["/usr/local/bin/fws-grub-finalize"]="0:0:755"
["/usr/local/bin/fws-keys"]="0:0:755" ["/usr/local/bin/fws-keys"]="0:0:755"
["/usr/local/bin/fws-vr-setup"]="0:0:755"
["/usr/local/bin/fws-hello"]="0:0:755" ["/usr/local/bin/fws-hello"]="0:0:755"
["/usr/local/bin/fws-update"]="0:0:755" ["/usr/local/bin/fws-update"]="0:0:755"
["/usr/local/bin/fws-updates-check"]="0:0:755" ["/usr/local/bin/fws-updates-check"]="0:0:755"
+115
View File
@@ -0,0 +1,115 @@
#!/bin/bash
# ============================================================================
# FWS — installation des drivers/runtimes VR selon le casque.
#
# À lancer depuis un terminal (Super+Shift+V sous i3, ou l'entrée
# « Installation VR (FWS) » du menu d'applications). Réservé aux sessions
# X11 (i3) : SteamVR ne fonctionne PAS sous Wayland/Hyprland.
#
# Réalité du support Linux (résumé honnête) :
# • HTC Vive / Vive Pro / Valve Index (stations lighthouse) → NATIF via
# SteamVR. C'est le chemin le plus fiable.
# • Meta/Oculus Quest 1-3, Pico → PAS de support officiel ; streaming
# Wi-Fi via ALVR (+ SteamVR). ALVR n'est pas dans les dépôts Arch :
# le script installe la base et donne la marche à suivre.
# • Oculus Rift CV1/S (filaire) → pas de support utilisable.
# • Monado : runtime OpenXR libre (déjà proposé par fws-setup-hardware),
# utile pour les applis OpenXR natives sans SteamVR.
# ============================================================================
set -u
say() { printf '\n\033[1;34m==> %s\033[0m\n' "$*"; }
warn() { printf '\033[1;33m ⚠ %s\033[0m\n' "$*"; }
if [ "$(id -u)" -ne 0 ]; then
exec sudo "$0" "$@"
fi
# VM = cul-de-sac VR : pas d'accès direct au GPU ni à l'USB/DisplayPort du
# casque, et Steam (steamwebhelper) est INSTABLE en rendu logiciel (llvmpipe).
# On prévient au lieu de laisser l'utilisateur croire à une panne de FWS.
if systemd-detect-virt --quiet 2>/dev/null; then
warn "Machine VIRTUELLE détectée ($(systemd-detect-virt 2>/dev/null))."
warn "La VR ne fonctionnera PAS ici : casque et GPU inaccessibles depuis une VM."
warn "Steam lui-même peut planter en rendu logiciel (steamwebhelper)."
echo " → Fais cette installation sur la machine RÉELLE avec le casque branché."
read -rp " Continuer quand même (tests uniquement) ? [o/N] " _ok
case "$_ok" in o|O|oui) ;; *) exit 0 ;; esac
fi
# lib32 Vulkan selon le GPU (indispensable à SteamVR, qui est 32/64 bits).
GPU="$(lspci 2>/dev/null | grep -iE 'VGA compatible controller|3D controller|Display controller')"
LIB32="lib32-mesa"
case "$GPU" in
*NVIDIA*|*GeForce*) LIB32="$LIB32 lib32-nvidia-utils" ;;
*AMD*|*ATI*|*Radeon*) LIB32="$LIB32 lib32-vulkan-radeon" ;;
*Intel*) LIB32="$LIB32 lib32-vulkan-intel" ;;
esac
install_pkgs() {
# multilib requis pour Steam/lib32.
grep -qE '^\[multilib\]' /etc/pacman.conf \
|| printf '\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' >> /etc/pacman.conf
pacman -Sy --noconfirm || { warn "synchro pacman échouée (réseau ?)"; return 1; }
local valid="" p
for p in "$@"; do
pacman -Si "$p" >/dev/null 2>&1 && valid="$valid $p" || warn "paquet inconnu ignoré : $p"
done
# shellcheck disable=SC2086
pacman -S --noconfirm --needed $valid
}
steamvr_base() {
say "Installation de la base SteamVR (Steam + Vulkan 32 bits : $LIB32)…"
# ttf-liberation : polices attendues par l'interface Steam (évite des
# rendus cassés/plantages cosmétiques sur install minimale).
# shellcheck disable=SC2086
install_pkgs steam $LIB32 ttf-liberation || return 1
say "Base installée. Étapes suivantes :"
echo " 1. Lance Steam, connecte-toi, puis installe « SteamVR » (Bibliothèque → Outils)."
echo " 2. Branche le casque et les stations, puis lance SteamVR."
echo " 3. Premier lancement : SteamVR peut demander à ajuster les règles udev — accepte."
say "Si Steam PLANTE (fenêtre qui se ferme, souvent steamwebhelper) :"
echo " • Vérifie l'espace disque (SteamVR ≈ 5 Go) : df -h ~"
echo " • GPU faible / VM / rendu logiciel — lance :"
echo " steam -cef-disable-gpu -cef-disable-gpu-compositing"
echo " • Pour voir l'erreur exacte : lance « steam » depuis un terminal,"
echo " ou regarde ~/.steam/steam/logs/ (console_log.txt, bootstrap_log.txt)."
}
case "${1:-menu}" in
menu)
cat <<'MENU'
╔══════════════════════════════════════════════════════════╗
║ FWS — Installation VR (session X11 requise) ║
╠══════════════════════════════════════════════════════════╣
║ 1) HTC Vive / Vive Pro / Valve Index (natif, SteamVR) ║
║ 2) Meta Quest / Pico (streaming ALVR) ║
║ 3) Monado (runtime OpenXR libre, sans SteamVR) ║
║ q) Quitter ║
╚══════════════════════════════════════════════════════════╝
MENU
read -rp " Choix : " choice
exec "$0" "$choice"
;;
1|vive|index)
steamvr_base || exit 1
;;
2|quest|pico)
steamvr_base || exit 1
say "Streaming Quest/Pico : il faut AUSSI ALVR (pas dans les dépôts Arch) :"
echo " 1. Télécharge le .tar.gz « ALVR Launcher » : https://github.com/alvr-org/ALVR/releases"
echo " 2. Sur le casque, installe le client ALVR (App Lab / SideQuest)."
echo " 3. Lance ALVR sur le PC (même Wi-Fi 5 GHz que le casque) — il pilote SteamVR."
;;
3|monado)
say "Installation de Monado (OpenXR) + outils…"
install_pkgs monado || exit 1
say "Monado installé. Les applis OpenXR le trouvent via /usr/share/openxr/."
;;
q|Q) exit 0 ;;
*) warn "choix inconnu : ${1}"; exec "$0" menu ;;
esac
echo
read -rp "Terminé — appuie sur Entrée pour fermer. " _
@@ -1,193 +0,0 @@
# FWS — configuration Hyprland par défaut.
# Le clavier (__KB_LAYOUT__ / __KB_VARIANT__) est injecté à l'installation,
# depuis le choix fait dans Anaconda. Édite ce fichier librement.
#
# Raccourcis : transposition de la config i3/sway FWS (mêmes touches).
# Couleurs : nuances de bleu (palette Catppuccin Mocha).
#
# Shortcuts are declared with « bindd » (bind + description): the description
# feeds the « Keyboard shortcuts » screen (⌨ button of the bar or SUPER+K →
# fws-keys, which reads the binds actually loaded, through hyprctl). The FWS
# descriptions below are keys (binds.*) that fws-keys shows in the language of
# the session. Add your own bindd with a description in plain text: it shows
# up in the list as written.
# ⚠ No comma in descriptions (Hyprland's field separator).
monitor = , preferred, auto, 1
input {
kb_layout = __KB_LAYOUT__
kb_variant = __KB_VARIANT__
kb_options = __KB_OPTIONS__
follow_mouse = 1
numlock_by_default = true
touchpad {
natural_scroll = true
tap-to-click = true
}
}
general {
gaps_in = 4
gaps_out = 8
border_size = 2
# Nuances de bleu : bleu → sapphire en dégradé sur la fenêtre active.
col.active_border = rgb(89b4fa) rgb(74c7ec) 45deg
col.inactive_border = rgb(313244)
layout = dwindle
}
decoration {
rounding = 8
# Flou et ombres COUPÉS : rendu logiciel (llvmpipe) en VM — cf. le
# wrapper fws-hyprland écrit par l'installateur. Sur un vrai GPU tu
# peux les réactiver (enabled = true).
blur {
enabled = false
}
shadow {
enabled = false
}
}
animations {
enabled = true
bezier = fws, 0.22, 1.0, 0.36, 1.0
animation = windows, 1, 3, fws
animation = workspaces, 1, 3, fws
animation = fade, 1, 2, default
}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true # pas de « Thanks xxx! » en bas d'écran
force_default_wallpaper = 0
background_color = 0x1a1a2e # bleu nuit FWS (aucun fond requis)
}
# Démarrage de session : barre d'état, notifications, réseau dans le tray,
# agent d'authentification GUI (indispensable pour les apps qui demandent
# les droits admin : gestionnaire de disques, blueman…).
# Fond d'écran FWS : image EMBARQUÉE dans l'ISO (aucun réseau requis) — swaybg
# la repose à chaque session, Hyprland n'ayant pas de réglage de fond persistant
# hors config. « background_color » ci-dessus reste le repli si swaybg manque.
exec-once = fws-wallpaper --session
exec-once = waybar
exec-once = mako
exec-once = nm-applet
# Applet Bluetooth : seulement si un adaptateur existe (en VM il n'y en a
# pas → blueman afficherait une erreur « Connection to BlueZ failed »).
exec-once = sh -c '[ -n "$(ls -A /sys/class/bluetooth 2>/dev/null)" ] && exec blueman-applet'
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# Fenêtre de bienvenue (1er démarrage seulement — se retire ensuite).
exec-once = fws-hello --autostart
# Mise en route du matériel : ne s'ouvre que si elle n'a pas abouti à
# l'installation (pilotes, son, Bluetooth, VR…).
exec-once = fws-drivers --autostart
$mod = SUPER
# --- Applications ---------------------------------------------------------
bindd = $mod, Return, binds.open_terminal, exec, kitty
bindd = $mod SHIFT, Return, binds.floating_terminal, exec, kitty --class floating-term
bindd = $mod, R, binds.app_menu, exec, wofi --show drun
bindd = $mod, E, binds.file_manager, exec, dolphin
bindd = $mod, B, binds.open_firefox, exec, firefox
bindd = $mod, P, binds.package_manager, exec, PacManager
bindd = $mod, K, binds.show_shortcuts, exec, fws-keys
bindd = $mod, X, binds.power_menu, exec, fws-powermenu
# --- Fenêtres ---------------------------------------------------------------
bindd = $mod, Q, binds.close_window, killactive,
bindd = $mod, V, binds.toggle_floating, togglefloating,
bindd = $mod, F, binds.fullscreen, fullscreen,
bindd = $mod, J, binds.toggle_split, layoutmsg, togglesplit
bindd = $mod, L, binds.lock_screen, exec, hyprlock
bindd = $mod SHIFT, E, binds.exit_session, exit,
bindd = $mod SHIFT, C, binds.reload_config, exec, hyprctl reload
# --- Focus (flèches) ---------------------------------------------------------
bindd = $mod, left, binds.focus_left, movefocus, l
bindd = $mod, right, binds.focus_right, movefocus, r
bindd = $mod, up, binds.focus_up, movefocus, u
bindd = $mod, down, binds.focus_down, movefocus, d
# --- Déplacer la fenêtre (Maj + flèches) ---------------------------------------
bindd = $mod SHIFT, left, binds.move_window_left, movewindow, l
bindd = $mod SHIFT, right, binds.move_window_right, movewindow, r
bindd = $mod SHIFT, up, binds.move_window_up, movewindow, u
bindd = $mod SHIFT, down, binds.move_window_down, movewindow, d
# --- Redimensionner (Ctrl + flèches, maintien possible) ------------------------
binde = $mod CTRL, left, resizeactive, -30 0
binde = $mod CTRL, right, resizeactive, 30 0
binde = $mod CTRL, up, resizeactive, 0 -30
binde = $mod CTRL, down, resizeactive, 0 30
# --- Espaces de travail 1-10 (0 = espace 10, comme i3) --------------------------
bindd = $mod, 1, binds.go_to_workspace, workspace, 1
bindd = $mod, 2, binds.go_to_workspace, workspace, 2
bindd = $mod, 3, binds.go_to_workspace, workspace, 3
bindd = $mod, 4, binds.go_to_workspace, workspace, 4
bindd = $mod, 5, binds.go_to_workspace, workspace, 5
bindd = $mod, 6, binds.go_to_workspace, workspace, 6
bindd = $mod, 7, binds.go_to_workspace, workspace, 7
bindd = $mod, 8, binds.go_to_workspace, workspace, 8
bindd = $mod, 9, binds.go_to_workspace, workspace, 9
bindd = $mod, 0, binds.go_to_workspace, workspace, 10
bindd = $mod SHIFT, 1, binds.send_window_to_workspace, movetoworkspace, 1
bindd = $mod SHIFT, 2, binds.send_window_to_workspace, movetoworkspace, 2
bindd = $mod SHIFT, 3, binds.send_window_to_workspace, movetoworkspace, 3
bindd = $mod SHIFT, 4, binds.send_window_to_workspace, movetoworkspace, 4
bindd = $mod SHIFT, 5, binds.send_window_to_workspace, movetoworkspace, 5
bindd = $mod SHIFT, 6, binds.send_window_to_workspace, movetoworkspace, 6
bindd = $mod SHIFT, 7, binds.send_window_to_workspace, movetoworkspace, 7
bindd = $mod SHIFT, 8, binds.send_window_to_workspace, movetoworkspace, 8
bindd = $mod SHIFT, 9, binds.send_window_to_workspace, movetoworkspace, 9
bindd = $mod SHIFT, 0, binds.send_window_to_workspace, movetoworkspace, 10
# --- Multi-écrans (comme i3 : Super+Ctrl+1/2 = écran gauche/droit) -------------
bindd = $mod CTRL, 1, binds.send_window_to_left_screen, movewindow, mon:l
bindd = $mod CTRL, 2, binds.send_window_to_right_screen, movewindow, mon:r
# --- Molette = changer d'espace de travail --------------------------------------
bindd = $mod, mouse_up, binds.previous_workspace, workspace, e-1
bindd = $mod, mouse_down, binds.next_workspace, workspace, e+1
# --- Scratchpad (espace spécial) -------------------------------------------------
bindd = $mod, S, binds.show_scratchpad, togglespecialworkspace, magic
bindd = $mod SHIFT, S, binds.send_window_to_scratchpad, movetoworkspace, special:magic
# --- Captures d'écran (grim/slurp → presse-papier ou ~/Images) -------------------
bindd = , Print, binds.screenshot_screen_to_clipboard, exec, grim - | wl-copy
bindd = $mod, Print, binds.screenshot_area_to_clipboard, exec, grim -g "$(slurp)" - | wl-copy
bindd = $mod SHIFT, Print, binds.screenshot_area_to_pictures, exec, sh -c 'mkdir -p ~/Images && grim -g "$(slurp)" ~/Images/capture_$(date +%Y-%m-%d_%H-%M-%S).png'
# --- Multimédia (touches XF86 : volume via PipeWire, lecture via playerctl) ------
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPrev, exec, playerctl previous
# --- Luminosité de l'écran (portables : touches Fn) ------------------------------
bindel = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bindel = , XF86MonBrightnessDown, exec, brightnessctl set 5%-
# --- Souris : déplacer / redimensionner les fenêtres -----------------------------
bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow
# --- Règles de fenêtres (comme i3) ------------------------------------------------
# Syntaxe Hyprland ≥ 0.55 : champs « <règle> <valeur> » + cibles « match:… »
# (validé contre le binaire avec --verify-config).
windowrule = float on, match:class ^(floating-term)$
windowrule = size 900 550, match:class ^(floating-term)$
windowrule = float on, match:class ^([Pp]avucontrol|org.pulseaudio.pavucontrol)$
windowrule = float on, match:class ^(.?[Bb]lueman-manager.*)$
windowrule = float on, match:class ^([Ff]ws-hello)$
windowrule = float on, match:class ^([Ff]ws-drivers)$
windowrule = float on, match:class ^([Ff]ws-about)$
windowrule = float on, match:class ^([Ff]ws-bugreport)$
windowrule = float on, match:title ^(Picture-in-Picture)$
@@ -0,0 +1,195 @@
-- FWS — configuration Hyprland par défaut (format Lua, Hyprland ≥ 0.55).
--
-- Depuis Hyprland 0.57 le fichier hyprland.conf (syntaxe « hyprlang ») n'est
-- PLUS lu : seul hyprland.lua est chargé (0.55/0.56 le préfèrent aussi). C'est
-- donc le seul format que FWS livre.
--
-- Le clavier (__KB_LAYOUT__ / __KB_VARIANT__ / __KB_OPTIONS__) est injecté à
-- l'installation, depuis le choix fait dans Anaconda. Édite ce fichier
-- librement.
--
-- Raccourcis : transposition de la config i3/sway FWS (mêmes touches).
-- Couleurs : nuances de bleu (palette Catppuccin Mocha).
--
-- Les raccourcis sont décrits par des clés (binds.*) dans hl.bind() : la
-- description alimente l'écran « Raccourcis clavier » (bouton ⌨ de la barre
-- ou SUPER+K → fws-keys, qui lit les binds RÉELLEMENT chargés via hyprctl).
-- fws-keys affiche ces clés dans la langue de la session ; un texte en clair
-- s'affiche tel quel, sans virgule (séparateur de champs de Hyprland).
hl.monitor({
output = "",
mode = "preferred",
position = "auto",
scale = 1,
})
hl.config({
input = {
kb_layout = "__KB_LAYOUT__",
kb_variant = "__KB_VARIANT__",
kb_options = "__KB_OPTIONS__",
follow_mouse = 1,
numlock_by_default = true,
touchpad = {
natural_scroll = true,
tap_to_click = true,
},
},
general = {
gaps_in = 4,
gaps_out = 8,
border_size = 2,
-- Nuances de bleu : bleu → sapphire en dégradé sur la fenêtre active.
col = {
active_border = {
colors = { "rgba(89b4faff)", "rgba(74c7ecff)" },
angle = 45,
},
inactive_border = "rgba(313244ff)",
},
layout = "dwindle",
},
decoration = {
rounding = 8,
-- Flou et ombres COUPÉS : rendu logiciel (llvmpipe) en VM — cf. le
-- wrapper fws-hyprland écrit par l'installateur. Sur un vrai GPU tu
-- peux les réactiver (enabled = true).
blur = {
enabled = false,
},
shadow = {
enabled = false,
},
},
animations = {
enabled = true,
},
misc = {
disable_hyprland_logo = true,
disable_splash_rendering = true, -- pas de « Thanks xxx! » en bas d'écran
force_default_wallpaper = 0,
background_color = "0x1a1a2e", -- bleu nuit FWS (aucun fond requis)
},
})
hl.curve("fws", { type = "bezier", points = { { 0.22, 1.0 }, { 0.36, 1.0 } } })
hl.animation({ leaf = "windows", enabled = true, speed = 3, bezier = "fws" })
hl.animation({ leaf = "workspaces", enabled = true, speed = 3, bezier = "fws" })
hl.animation({ leaf = "fade", enabled = true, speed = 2, bezier = "default" })
-- Démarrage de session : barre d'état, notifications, réseau dans le tray,
-- agent d'authentification GUI (indispensable pour les apps qui demandent
-- les droits admin : gestionnaire de disques, blueman…).
-- Fond d'écran FWS : image EMBARQUÉE dans l'ISO (aucun réseau requis) — swaybg
-- la repose à chaque session, Hyprland n'ayant pas de réglage de fond persistant
-- hors config. « background_color » ci-dessus reste le repli si swaybg manque.
hl.on("hyprland.start", function()
hl.exec_cmd("fws-wallpaper --session")
hl.exec_cmd("waybar")
hl.exec_cmd("mako")
hl.exec_cmd("nm-applet")
-- Applet Bluetooth : seulement si un adaptateur existe (en VM il n'y en a
-- pas → blueman afficherait une erreur « Connection to BlueZ failed »).
hl.exec_cmd('[ -n "$(ls -A /sys/class/bluetooth 2>/dev/null)" ] && exec blueman-applet')
hl.exec_cmd("/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1")
-- Fenêtre de bienvenue (1er démarrage seulement — se retire ensuite).
hl.exec_cmd("fws-hello --autostart")
-- Mise en route du matériel : ne s'ouvre que si elle n'a pas abouti à
-- l'installation (pilotes, son, Bluetooth, VR…).
hl.exec_cmd("fws-drivers --autostart")
end)
local mod = "SUPER"
-- --- Applications ---------------------------------------------------------
hl.bind(mod .. " + Return", hl.dsp.exec_cmd("kitty"), { description = "binds.open_terminal" })
hl.bind(mod .. " + SHIFT + Return", hl.dsp.exec_cmd("kitty --class floating-term"), { description = "binds.floating_terminal" })
hl.bind(mod .. " + R", hl.dsp.exec_cmd("wofi --show drun"), { description = "binds.app_menu" })
hl.bind(mod .. " + E", hl.dsp.exec_cmd("dolphin"), { description = "binds.file_manager" })
hl.bind(mod .. " + B", hl.dsp.exec_cmd("firefox"), { description = "binds.open_firefox" })
hl.bind(mod .. " + P", hl.dsp.exec_cmd("PacManager"), { description = "binds.package_manager" })
hl.bind(mod .. " + K", hl.dsp.exec_cmd("fws-keys"), { description = "binds.show_shortcuts" })
hl.bind(mod .. " + X", hl.dsp.exec_cmd("fws-powermenu"), { description = "binds.power_menu" })
-- --- Fenêtres ---------------------------------------------------------------
hl.bind(mod .. " + Q", hl.dsp.window.close(), { description = "binds.close_window" })
hl.bind(mod .. " + V", hl.dsp.window.float(), { description = "binds.toggle_floating" })
hl.bind(mod .. " + F", hl.dsp.window.fullscreen(), { description = "binds.fullscreen" })
hl.bind(mod .. " + J", hl.dsp.layout("togglesplit"), { description = "binds.toggle_split" })
hl.bind(mod .. " + L", hl.dsp.exec_cmd("hyprlock"), { description = "binds.lock_screen" })
hl.bind(mod .. " + SHIFT + E", hl.dsp.exit(), { description = "binds.exit_session" })
hl.bind(mod .. " + SHIFT + C", hl.dsp.reload_config(), { description = "binds.reload_config" })
-- --- Focus (flèches) ---------------------------------------------------------
hl.bind(mod .. " + left", hl.dsp.focus({ direction = "left" }), { description = "binds.focus_left" })
hl.bind(mod .. " + right", hl.dsp.focus({ direction = "right" }), { description = "binds.focus_right" })
hl.bind(mod .. " + up", hl.dsp.focus({ direction = "up" }), { description = "binds.focus_up" })
hl.bind(mod .. " + down", hl.dsp.focus({ direction = "down" }), { description = "binds.focus_down" })
-- --- Déplacer la fenêtre (Maj + flèches) ---------------------------------------
hl.bind(mod .. " + SHIFT + left", hl.dsp.window.move({ direction = "left" }), { description = "binds.move_window_left" })
hl.bind(mod .. " + SHIFT + right", hl.dsp.window.move({ direction = "right" }), { description = "binds.move_window_right" })
hl.bind(mod .. " + SHIFT + up", hl.dsp.window.move({ direction = "up" }), { description = "binds.move_window_up" })
hl.bind(mod .. " + SHIFT + down", hl.dsp.window.move({ direction = "down" }), { description = "binds.move_window_down" })
-- --- Redimensionner (Ctrl + flèches, maintien possible) ------------------------
hl.bind(mod .. " + CTRL + left", hl.dsp.window.resize({ x = -30, y = 0, relative = true }), { repeating = true })
hl.bind(mod .. " + CTRL + right", hl.dsp.window.resize({ x = 30, y = 0, relative = true }), { repeating = true })
hl.bind(mod .. " + CTRL + up", hl.dsp.window.resize({ x = 0, y = -30, relative = true }), { repeating = true })
hl.bind(mod .. " + CTRL + down", hl.dsp.window.resize({ x = 0, y = 30, relative = true }), { repeating = true })
-- --- Espaces de travail 1-10 (0 = espace 10, comme i3) --------------------------
for i = 1, 10 do
local key = i % 10 -- 10 s'écrit 0, comme sur le pavé numérique
hl.bind(mod .. " + " .. key, hl.dsp.focus({ workspace = i }), { description = "binds.go_to_workspace" })
hl.bind(mod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i }), { description = "binds.send_window_to_workspace" })
end
-- --- Multi-écrans (comme i3 : Super+Ctrl+1/2 = écran gauche/droit) -------------
hl.bind(mod .. " + CTRL + 1", hl.dsp.window.move({ monitor = "l" }), { description = "binds.send_window_to_left_screen" })
hl.bind(mod .. " + CTRL + 2", hl.dsp.window.move({ monitor = "r" }), { description = "binds.send_window_to_right_screen" })
-- --- Molette = changer d'espace de travail --------------------------------------
hl.bind(mod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }), { description = "binds.previous_workspace" })
hl.bind(mod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }), { description = "binds.next_workspace" })
-- --- Scratchpad (espace spécial) -------------------------------------------------
hl.bind(mod .. " + S", hl.dsp.workspace.toggle_special("magic"), { description = "binds.show_scratchpad" })
hl.bind(mod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }), { description = "binds.send_window_to_scratchpad" })
-- --- Captures d'écran (grim/slurp → presse-papier ou ~/Images) -------------------
hl.bind("Print", hl.dsp.exec_cmd("grim - | wl-copy"), { description = "binds.screenshot_screen_to_clipboard" })
hl.bind(mod .. " + Print", hl.dsp.exec_cmd('grim -g "$(slurp)" - | wl-copy'), { description = "binds.screenshot_area_to_clipboard" })
hl.bind(mod .. " + SHIFT + Print", hl.dsp.exec_cmd('mkdir -p ~/Images && grim -g "$(slurp)" ~/Images/capture_$(date +%Y-%m-%d_%H-%M-%S).png'), { description = "binds.screenshot_area_to_pictures" })
-- --- Multimédia (touches XF86 : volume via PipeWire, lecture via playerctl) ------
hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+"), { locked = true, repeating = true })
hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"), { locked = true, repeating = true })
hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true })
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
-- --- Luminosité de l'écran (portables : touches Fn) ------------------------------
hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl set +5%"), { locked = true, repeating = true })
hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl set 5%-"), { locked = true, repeating = true })
-- --- Souris : déplacer / redimensionner les fenêtres -----------------------------
hl.bind(mod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true })
hl.bind(mod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true })
-- --- Règles de fenêtres (comme i3) ------------------------------------------------
hl.window_rule({ name = "fws-floating-term-float", match = { class = "^(floating-term)$" }, float = true })
hl.window_rule({ name = "fws-floating-term-size", match = { class = "^(floating-term)$" }, size = "900 550" })
hl.window_rule({ name = "fws-pavucontrol", match = { class = "^([Pp]avucontrol|org.pulseaudio.pavucontrol)$" }, float = true })
hl.window_rule({ name = "fws-blueman", match = { class = "^.?[Bb]lueman-manager.*$" }, float = true })
hl.window_rule({ name = "fws-hello", match = { class = "^[Ff]ws-hello$" }, float = true })
hl.window_rule({ name = "fws-drivers", match = { class = "^[Ff]ws-drivers$" }, float = true })
hl.window_rule({ name = "fws-about", match = { class = "^[Ff]ws-about$" }, float = true })
hl.window_rule({ name = "fws-bugreport", match = { class = "^[Ff]ws-bugreport$" }, float = true })
hl.window_rule({ name = "fws-picture-in-picture", match = { title = "^(Picture-in-Picture)$" }, float = true })
@@ -566,6 +566,9 @@ print("XV=" + shlex.quote(",".join(variant for _, variant in pairs)))
print("XO=" + shlex.quote(",".join(options))) print("XO=" + shlex.quote(",".join(options)))
KBPY KBPY
)" )"
# Two layouts without variants give XV="," — XKB then has no usable variant
# list, so "no variant" stays empty.
[ -n "${XV//,/}" ] || XV=""
if [ -n "$XL" ]; then if [ -n "$XL" ]; then
install -d /etc/X11/xorg.conf.d install -d /etc/X11/xorg.conf.d
{ {
@@ -892,16 +895,19 @@ done
# --- Config Hyprland (si choisi) : clavier + apps + waybar ------------------- # --- Config Hyprland (si choisi) : clavier + apps + waybar -------------------
# Hyprland (Wayland) NE lit PAS /etc/X11/xorg.conf.d/00-keyboard.conf : sa # Hyprland (Wayland) NE lit PAS /etc/X11/xorg.conf.d/00-keyboard.conf : sa
# disposition est dans SA config (input { kb_layout }). Sans config il démarre nu # disposition est dans SA config (input { kb_layout }). Sans config il démarre nu
# (QWERTY US, aucune touche utile). On déploie une config FWS (template + # (QWERTY US, aucune touche utile). On déploie la config FWS (template Lua +
# clavier XL/XV injecté) dans /etc/skel ET le home de chaque utilisateur déjà # clavier XL/XV injecté) dans /etc/skel ET le home de chaque utilisateur déjà
# créé par Anaconda (le %post tourne APRÈS la création de l'utilisateur). # créé par Anaconda (le %post tourne APRÈS la création de l'utilisateur).
if [ "$DESK" = "hyprland" ] && [ -f /usr/local/share/fws/hyprland.conf.tmpl ]; then if [ "$DESK" = "hyprland" ]; then
# Hyprland ≥ 0.57 ne lit plus hyprland.conf (syntaxe hyprlang supprimée) :
# seul hyprland.lua est chargé. Le template est rendu avec le clavier
# XL/XV/XO du choix Anaconda, puis posé dans le skel et chaque home.
sed -e "s/__KB_LAYOUT__/${XL:-us}/" -e "s/__KB_VARIANT__/${XV}/" -e "s/__KB_OPTIONS__/${XO}/" \ sed -e "s/__KB_LAYOUT__/${XL:-us}/" -e "s/__KB_VARIANT__/${XV}/" -e "s/__KB_OPTIONS__/${XO}/" \
/usr/local/share/fws/hyprland.conf.tmpl > /tmp/fws-hyprland.conf /usr/local/share/fws/hyprland.lua.tmpl > /tmp/fws-hyprland.lua
install -Dm644 /tmp/fws-hyprland.conf /etc/skel/.config/hypr/hyprland.conf install -Dm644 /tmp/fws-hyprland.lua /etc/skel/.config/hypr/hyprland.lua
# Waybar FWS : barre assortie + bouton « ⌨ Raccourcis » (fws-keys, # Waybar FWS : barre assortie + bouton « ⌨ Raccourcis » (fws-keys,
# aussi sur SUPER+K) qui liste les binds RÉELS chargés par Hyprland # aussi sur SUPER+K) qui liste les binds RÉELS chargés par Hyprland
# (hyprctl binds -j) — les descriptions viennent des bindd de la config. # (hyprctl binds -j) — les descriptions viennent des hl.bind de la config.
install -Dm644 /usr/local/share/fws/waybar-config.json /etc/skel/.config/waybar/config install -Dm644 /usr/local/share/fws/waybar-config.json /etc/skel/.config/waybar/config
install -Dm644 /usr/local/share/fws/waybar-style.css /etc/skel/.config/waybar/style.css install -Dm644 /usr/local/share/fws/waybar-style.css /etc/skel/.config/waybar/style.css
# wofi : style du menu d'applications (Super+R) — le panneau « Raccourcis » # wofi : style du menu d'applications (Super+R) — le panneau « Raccourcis »
@@ -910,7 +916,7 @@ if [ "$DESK" = "hyprland" ] && [ -f /usr/local/share/fws/hyprland.conf.tmpl ]; t
install -Dm644 /usr/local/share/fws/wofi-style.css /etc/skel/.config/wofi/style.css install -Dm644 /usr/local/share/fws/wofi-style.css /etc/skel/.config/wofi/style.css
while IFS=: read -r _u _x _uid _g _gec _home _sh; do while IFS=: read -r _u _x _uid _g _gec _home _sh; do
[ "$_uid" -ge 1000 ] && [ "$_uid" -le 60000 ] && [ -d "$_home" ] || continue [ "$_uid" -ge 1000 ] && [ "$_uid" -le 60000 ] && [ -d "$_home" ] || continue
install -Dm644 /tmp/fws-hyprland.conf "$_home/.config/hypr/hyprland.conf" install -Dm644 /tmp/fws-hyprland.lua "$_home/.config/hypr/hyprland.lua"
install -Dm644 /usr/local/share/fws/waybar-config.json "$_home/.config/waybar/config" install -Dm644 /usr/local/share/fws/waybar-config.json "$_home/.config/waybar/config"
install -Dm644 /usr/local/share/fws/waybar-style.css "$_home/.config/waybar/style.css" install -Dm644 /usr/local/share/fws/waybar-style.css "$_home/.config/waybar/style.css"
install -Dm644 /usr/local/share/fws/wofi-config "$_home/.config/wofi/config" install -Dm644 /usr/local/share/fws/wofi-config "$_home/.config/wofi/config"
@@ -919,7 +925,7 @@ if [ "$DESK" = "hyprland" ] && [ -f /usr/local/share/fws/hyprland.conf.tmpl ]; t
chown -R "$_u": "$_home/.config/hypr" "$_home/.config/waybar" \ chown -R "$_u": "$_home/.config/hypr" "$_home/.config/waybar" \
"$_home/.config/wofi" 2>/dev/null || true "$_home/.config/wofi" 2>/dev/null || true
done < /etc/passwd done < /etc/passwd
rm -f /tmp/fws-hyprland.conf rm -f /tmp/fws-hyprland.lua
fi fi
# --- Config i3 (si choisi) : raccourcis FWS + barre + autostart ------------- # --- Config i3 (si choisi) : raccourcis FWS + barre + autostart -------------
@@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Name=Installation VR (FWS)
Name[en]=VR Setup (FWS)
Comment=Installer les drivers/runtimes pour casque VR (HTC Vive, Index, Quest…)
Exec=kitty -e fws-vr-setup
Icon=fws-vr
Terminal=false
Categories=System;Settings;
Keywords=VR;SteamVR;Vive;Index;Quest;casque;
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- FWS — icône « casque VR » (lanceur fws-vr-setup). Palette FWS/Catppuccin. -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
<!-- sangles -->
<path d="M8 28 C1 29 1 41 8 42" fill="none" stroke="#89b4fa" stroke-width="4" stroke-linecap="round"/>
<path d="M56 28 C63 29 63 41 56 42" fill="none" stroke="#89b4fa" stroke-width="4" stroke-linecap="round"/>
<!-- corps du casque avec encoche du nez -->
<path d="M16 18 h32 a10 10 0 0 1 10 10 v10 a10 10 0 0 1 -10 10 h-7
a9 9 0 0 0 -18 0 h-7 a10 10 0 0 1 -10 -10 v-10 a10 10 0 0 1 10 -10 z"
fill="#1e1e2e" stroke="#89b4fa" stroke-width="3" stroke-linejoin="round"/>
<!-- lentilles -->
<circle cx="23" cy="32" r="5.5" fill="#74c7ec"/>
<circle cx="41" cy="32" r="5.5" fill="#74c7ec"/>
<circle cx="21.5" cy="30.5" r="1.8" fill="#cdd6f4"/>
<circle cx="39.5" cy="30.5" r="1.8" fill="#cdd6f4"/>
</svg>

After

Width:  |  Height:  |  Size: 964 B

@@ -0,0 +1,5 @@
title FWS install medium (%ARCH%, UEFI)
sort-key 01
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% udev.event_timeout=45
@@ -0,0 +1,8 @@
# Mode graphique de secours : SANS KMS (nomodeset). Filet de sécurité
# standard pour les GPU/hyperviseurs dont le pilote KMS pose problème :
# X démarre alors sur le framebuffer VESA/EFI (plus lent mais fiable).
title FWS install medium (%ARCH%, UEFI, safe graphics)
sort-key 01b
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% nomodeset udev.event_timeout=45
@@ -0,0 +1,9 @@
# « Réparer FWS » : boote le live SANS installateur et lance l'assistant de
# réparation en console (fws-recovery, via le hook fws.recovery=1 du
# .zprofile) : réinstaller GRUB, régénérer l'initramfs, réparer pacman,
# shell chroot — le point de restauration FWS.
title FWS - Reparer une installation (recovery)
sort-key 01d
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% udev.event_timeout=45 fws.recovery=1
@@ -0,0 +1,5 @@
title FWS install medium (%ARCH%, UEFI) with speech
sort-key 02
linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% accessibility=on udev.event_timeout=45
@@ -0,0 +1,4 @@
title Memtest86+
sort-key 03
efi /boot/memtest86+/memtest.efi
architecture x64
@@ -0,0 +1,3 @@
timeout 15
default 01-archiso-linux.conf
beep on
+1
View File
@@ -28,6 +28,7 @@ file_permissions=(
["/usr/local/bin/fws-intel-rst"]="0:0:755" ["/usr/local/bin/fws-intel-rst"]="0:0:755"
["/usr/local/bin/fws-grub-finalize"]="0:0:755" ["/usr/local/bin/fws-grub-finalize"]="0:0:755"
["/usr/local/bin/fws-keys"]="0:0:755" ["/usr/local/bin/fws-keys"]="0:0:755"
["/usr/local/bin/fws-vr-setup"]="0:0:755"
["/usr/local/bin/fws-hello"]="0:0:755" ["/usr/local/bin/fws-hello"]="0:0:755"
["/usr/local/bin/fws-update"]="0:0:755" ["/usr/local/bin/fws-update"]="0:0:755"
["/usr/local/bin/fws-updates-check"]="0:0:755" ["/usr/local/bin/fws-updates-check"]="0:0:755"
Executable
+559
View File
@@ -0,0 +1,559 @@
#!/bin/bash
# ============================================================
# FWS — Release officielle d'une nouvelle ligne de version
#
# Déclencheur : le fichier VERSION passe à une NOUVELLE LIGNE mineure
# (0.8.* → 0.9.*, ou un nouveau majeur). Tant que la version reste sur la
# ligne déjà publiée (0.8.1 → 0.8.2), rien n'est publié : ce n'est pas une
# release de ligne. --force passe outre (correctif à republier).
#
# Déroulé :
# 1. Pré-vol : VERSION, tag/commit, tokens, accès aux deux forges.
# Tout est vérifié AVANT le build, qui dure ~20 min.
# 2. Build : ./build-offi.sh (build officiel versionné) →
# out/v<MAJ>/v<MAJ>.<MIN>/fws-<version>-<variante>-<date>.iso
# 3. Publication : release Gitea (FWS/FWS-ISO), puis GitHub
# (fws-linux/ISO), l'ISO jointe en asset aux deux.
#
# Les tokens ne sont jamais versionnés : $GITEA_TOKEN / $GITHUB_TOKEN, sinon
# lus dans ~/nottte.txt (FWS_RELEASE_NOTES_FILE pour un autre chemin).
#
# Rejouable : une release déjà existante est mise à jour et l'asset n'est
# réenvoyé que s'il manque — un échec d'upload se corrige en relançant
# --skip-build, sans reconstruire l'ISO.
# ============================================================
set -eo pipefail
trap 'rc=$?; echo -e "\e[31mÉchec (release.sh) ligne $LINENO, code $rc.\e[0m" >&2; exit $rc' ERR
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m'
BLUE='\033[0;34m'; BOLD='\033[1m'; NC='\033[0m'
info() { echo -e "${BLUE}==>${NC} $1"; }
success() { echo -e "${GREEN}[OK]${NC} $1"; }
warn() { echo -e "${YELLOW}[!!]${NC} $1"; }
die() { echo -e "${RED}[ERR]${NC} $1" >&2; exit 1; }
# ─── Paramètres (surchargables par l'environnement) ──────────────────────────
WORK_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
GITEA_URL="${FWS_GITEA_URL:-https://gitea.nocode-var.tech}"
GITEA_REPO="${FWS_GITEA_REPO:-FWS/FWS-ISO}"
GH_REPO="${FWS_GITHUB_REPO:-fws-linux/ISO}"
GH_API="${FWS_GITHUB_API:-https://api.github.com}"
GH_UPLOAD="${FWS_GITHUB_UPLOAD:-https://uploads.github.com}"
TOKENS_FILE="${FWS_RELEASE_TOKENS_FILE:-$HOME/nottte.txt}"
VARIANT=""
ISO_ARG=""
SKIP_BUILD=0
DRY_RUN=0
FORCE=0
CHECK=0
usage() {
cat <<'EOF'
Usage : ./release.sh [options]
--variant <nom> Variante de l'ISO (cli, kde, gnome…). Demandée si absente.
--skip-build Réutilise l'ISO déjà présente dans out/ (retry d'upload).
--iso <fichier> Publie cette ISO-là au lieu de la chercher dans out/.
Utile quand le build se fait sur une machine et la
publication sur une autre (ou depuis une CI sans
privilèges, cf. workflow release).
--force Publie même sans changement de ligne de version.
--dry-run N'exécute ni le build ni les appels réseau ; montre le plan.
--check Décide seulement s'il faut publier (code retour 0 dans tous
les cas ; 'publish=true|false' écrit dans $GITHUB_OUTPUT).
Mode utilisé par le workflow .gitea/workflows/release.yml.
-h, --help Cette aide.
Environnement :
GITEA_TOKEN / GITHUB_TOKEN Tokens d'API (sinon lus dans ~/nottte.txt).
FWS_RELEASE_TOKENS_FILE Autre fichier de notes.
FWS_GITEA_URL / FWS_GITEA_REPO / FWS_GITHUB_REPO Cibles.
EOF
}
while [ $# -gt 0 ]; do
case "$1" in
--variant) VARIANT="${2:-}"; [ -n "$VARIANT" ] || die "--variant attend un nom."; shift 2 ;;
--variant=*) VARIANT="${1#*=}"; shift ;;
--skip-build) SKIP_BUILD=1; shift ;;
--iso) ISO_ARG="${2:-}"; [ -n "$ISO_ARG" ] || die "--iso attend un chemin."; SKIP_BUILD=1; shift 2 ;;
--iso=*) ISO_ARG="${1#*=}"; SKIP_BUILD=1; shift ;;
--force) FORCE=1; shift ;;
--dry-run) DRY_RUN=1; shift ;;
--check) CHECK=1; shift ;;
-h|--help) usage; exit 0 ;;
*) die "Option inconnue : $1 (voir --help)." ;;
esac
done
# ─── VERSION ─────────────────────────────────────────────────────────────────
[ -f "$WORK_DIR/VERSION" ] || die "Fichier VERSION introuvable dans $WORK_DIR."
VERSION="$(tr -d ' \t\r\n' < "$WORK_DIR/VERSION")"
[[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] \
|| die "VERSION '$VERSION' invalide (attendu major.minor.build, ex. 0.9.0)."
IFS='.' read -r MAJOR MINOR BUILD <<< "$VERSION"
TAG="v$VERSION"
# ─── Nouvelle ligne de version ? ─────────────────────────────────────────────
# Previous released version = highest tag, normalized (repo history has both
# "0.6.0" and "V0.8.1" spellings).
# sed, not grep: under `set -o pipefail` a tag list without a version would
# end the script here, before the "no tag" case below.
PREV_VERSION="$(git -C "$WORK_DIR" tag -l \
| sed -n 's/^[vV]\{0,1\}\([0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\)$/\1/p' \
| sort -V | tail -1)"
if [ -z "$PREV_VERSION" ]; then
MODE="release"
warn "Aucun tag de version dans le dépôt : tout VERSION est traité comme une release."
elif [ "$PREV_VERSION" = "$VERSION" ] && [ "$FORCE" -eq 0 ]; then
# Same version already tagged: a previous run may have failed mid-upload.
MODE="retry"
info "Version $VERSION déjà taguée — reprise (release mise à jour, asset manquant réenvoyé)."
elif [ "${PREV_VERSION%.*}" = "${MAJOR}.${MINOR}" ] && [ "$FORCE" -eq 0 ]; then
# Not an error: the workflow calls --check on every VERSION change and
# must still get an explicit publish=false here.
MODE="skip"
info "VERSION $VERSION reste sur la ligne ${MAJOR}.${MINOR} (dernier tag : $PREV_VERSION)."
echo " Une release n'est publiée qu'au changement de ligne (0.8.* → 0.9.*). --force pour publier quand même."
[ "$CHECK" -eq 1 ] || exit 0
elif [ "${PREV_VERSION%.*}" = "${MAJOR}.${MINOR}" ]; then
MODE="release"
info "Publication forcée sur la ligne ${MAJOR}.${MINOR} (version publiée : $VERSION)."
else
MODE="release"
info "Nouvelle ligne de version : ${PREV_VERSION%.*} → ${MAJOR}.${MINOR} (version publiée : $VERSION)."
fi
# The workflow asks here and nowhere else, so the rule lives in one place.
if [ "$CHECK" -eq 1 ]; then
if [ "$MODE" = "release" ] || [ "$MODE" = "retry" ]; then
PUBLISH=true
else
PUBLISH=false
fi
echo "publish=$PUBLISH"
[ -z "${GITHUB_OUTPUT:-}" ] || echo "publish=$PUBLISH" >> "$GITHUB_OUTPUT"
exit 0
fi
# ─── Contrôles locaux ────────────────────────────────────────────────────────
for cmd in git curl jq; do
command -v "$cmd" >/dev/null 2>&1 \
|| die "$cmd introuvable (Arch : sudo pacman -S --needed git curl jq)."
done
[ -x "$WORK_DIR/build-offi.sh" ] || die "build-offi.sh absent ou non exécutable."
# The release tag is created remotely from target_commitish, so HEAD must
# already exist on the remote: tagging an unpushed commit fails at the API.
# In CI the workflow is triggered by the pushed commit itself, and a shallow
# runner checkout has no usable origin/Main to compare against.
if [ "$DRY_RUN" -eq 0 ] && [ -z "${CI:-}" ] && [ -z "${GITHUB_ACTIONS:-}" ]; then
info "Vérification que HEAD est publié sur origin/Main…"
git -C "$WORK_DIR" fetch -q origin Main 2>/dev/null || warn "git fetch impossible (réseau ?)."
if git -C "$WORK_DIR" rev-parse -q --verify origin/Main >/dev/null; then
git -C "$WORK_DIR" merge-base --is-ancestor HEAD origin/Main \
|| die "HEAD n'est pas sur origin/Main : pousse ton commit (git push) avant de publier."
success "HEAD est bien sur origin/Main."
else
warn "origin/Main inconnu localement — impossible de vérifier le commit publié."
fi
fi
HEAD_SHA="$(git -C "$WORK_DIR" rev-parse HEAD)"
# ─── Tokens ──────────────────────────────────────────────────────────────────
# Never echo a token, not even a prefix: the output of a release ends up in
# CI logs and shells scrollback.
token_from_notes() { # regex → first match, empty when the file is unusable
[ -r "$TOKENS_FILE" ] || return 0
grep -oE "$1" "$TOKENS_FILE" 2>/dev/null | head -1 || true
}
GITEA_TOKEN="${GITEA_TOKEN:-$(token_from_notes '^[0-9a-f]{40}$')}"
# GitHub classic and fine-grained tokens share no prefix, so both are tried.
GITHUB_TOKEN="${GITHUB_TOKEN:-$(token_from_notes 'gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{20,}')}"
# A dry run touches neither forge, so it must stay usable without secrets.
if [ "$DRY_RUN" -eq 1 ]; then
info "[dry-run] jetons non requis."
else
[ -n "$GITEA_TOKEN" ] \
|| die "Token Gitea absent : export GITEA_TOKEN=… ou ajoute-le à $TOKENS_FILE."
[ -n "$GITHUB_TOKEN" ] \
|| die "Token GitHub absent : export GITHUB_TOKEN=… ou ajoute-le à $TOKENS_FILE."
success "Tokens Gitea et GitHub chargés."
fi
# ─── Pré-vol des forges ──────────────────────────────────────────────────────
# --retry-all-errors: an ISO upload can fail on a DNS hiccup halfway through,
# which is not in curl's default "transient" list.
CURL=(curl -sS --connect-timeout 20 --retry 3 --retry-delay 2 --retry-all-errors)
HTTP_CODE=""; HTTP_BODY=""
request() { # <curl args…> → sets HTTP_CODE/HTTP_BODY
local out; out="$(mktemp)"
# curl still prints 000 through -w when it fails, so the "|| echo 000" it
# used to have produced a useless "000000".
HTTP_CODE="$("${CURL[@]}" "$@" -o "$out" -w '%{http_code}' 2>/dev/null)" || HTTP_CODE="000"
[ -n "$HTTP_CODE" ] || HTTP_CODE="000"
HTTP_BODY="$(cat "$out")"
rm -f "$out"
}
# What a failed asset upload actually means: the two forges fail for very
# different reasons, and neither is obvious from the bare status code.
upload_error() { # <forge> <status>
case "$2" in
413) echo "$1 : 413 Request Entity Too Large — c'est le reverse proxy (nginx, client_max_body_size), pas Gitea : monte-le à 2g ou plus puis recharge nginx." ;;
413*) echo "$1 : fichier trop gros pour le proxy (413)." ;;
000) echo "$1 : connexion interrompue (réseau/DNS) pendant l'envoi de l'ISO — relance avec --skip-build." ;;
401|403) echo "$1 : token sans droit d'écrire les assets (HTTP $2)." ;;
*) echo "$1 : envoi de l'ISO refusé (HTTP $2)." ;;
esac
}
preflight_forges() {
local perms
info "Pré-vol Gitea ($GITEA_URL/$GITEA_REPO)…"
request -H "Authorization: token $GITEA_TOKEN" \
"$GITEA_URL/api/v1/repos/$GITEA_REPO"
case "$HTTP_CODE" in
200) ;;
401) die "Gitea : token refusé (401). Vérifie GITEA_TOKEN." ;;
403) die "Gitea : token sans accès au dépôt (403)." ;;
404) die "Gitea : dépôt $GITEA_REPO introuvable ou invisible avec ce token (404)." ;;
*) die "Gitea : réponse HTTP $HTTP_CODE — $(echo "$HTTP_BODY" | head -c 200)" ;;
esac
perms="$(echo "$HTTP_BODY" | jq -r '.permissions.push // empty')"
[ "$perms" = "true" ] || die "Gitea : le token n'a pas le droit d'écrire sur $GITEA_REPO."
success "Gitea accessible en écriture."
info "Pré-vol GitHub ($GH_REPO)…"
request -H "Authorization: Bearer $GITHUB_TOKEN" \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
"$GH_API/repos/$GH_REPO"
case "$HTTP_CODE" in
200) ;;
401) die "GitHub : token refusé (401)." ;;
403) die "GitHub : token sans droits (403) — scope 'repo' ou permission Contents." ;;
404) die "GitHub : dépôt $GH_REPO introuvable ou invisible avec ce token (404)." ;;
*) die "GitHub : réponse HTTP $HTTP_CODE — $(echo "$HTTP_BODY" | head -c 200)" ;;
esac
perms="$(echo "$HTTP_BODY" | jq -r '.permissions.push // empty')"
if [ -n "$perms" ] && [ "$perms" != "true" ]; then
die "GitHub : le token n'a pas le droit d'écrire sur $GH_REPO."
fi
success "GitHub accessible."
# The GitHub repo mirrors releases only: its history is unrelated to this
# one, so the built commit may not exist there. The release API rejects an
# unknown target_commitish, so the tag is left on GitHub's default branch
# when ours is absent (the ISO asset is what users download either way).
request -H "Authorization: Bearer $GITHUB_TOKEN" \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
"$GH_API/repos/$GH_REPO/commits/$HEAD_SHA"
if [ "$HTTP_CODE" = "200" ]; then
GH_TARGET="$HEAD_SHA"
success "GitHub : le commit $HEAD_SHA y est présent, le tag le pointera."
else
GH_TARGET=""
warn "GitHub : commit $HEAD_SHA absent du dépôt — le tag y suivra sa branche par défaut."
fi
}
if [ "$DRY_RUN" -eq 1 ]; then
info "[dry-run] pré-vol des forges sauté."
else
preflight_forges
fi
# ─── Build officiel ──────────────────────────────────────────────────────────
if [ "$SKIP_BUILD" -eq 1 ]; then
info "Build sauté (--skip-build) : réutilisation de l'ISO existante."
else
if [ -z "$VARIANT" ]; then
if [ "$DRY_RUN" -eq 1 ]; then
VARIANT="<variante>"
warn "[dry-run] variante non fournie (--variant)."
else
read -rp "==> Nom de la variante (ex. cli, kde, gnome) : " VARIANT || die "Entrée requise."
VARIANT="$(printf '%s' "$VARIANT" | tr '[:upper:]' '[:lower:]' | tr -cd 'a-z0-9-')"
[ -n "$VARIANT" ] || die "Nom de variante invalide."
fi
fi
info "Build officiel $VERSION ($VARIANT)…"
if [ "$DRY_RUN" -eq 1 ]; then
echo " ./build-offi.sh (FWS_ISO_VERSION=$VERSION FWS_ISO_TAG=$VARIANT)"
else
# build-offi.sh lit ces deux variables et ne les redemande pas : le
# release reste non interactif, y compris à travers sudo -E / podman.
FWS_ISO_VERSION="$VERSION" FWS_ISO_TAG="$VARIANT" "$WORK_DIR/build-offi.sh"
success "Build officiel terminé."
fi
fi
# ─── ISO produite ────────────────────────────────────────────────────────────
ISO_DIR="$WORK_DIR/out/v${MAJOR}/v${MAJOR}.${MINOR}"
ISO_PATH=""
if [ -n "$ISO_ARG" ]; then
# An ISO built elsewhere: resolve it against the caller's cwd before any
# cd, and let the name stay whatever the build produced.
[ -f "$ISO_ARG" ] || die "ISO introuvable : $ISO_ARG"
ISO_PATH="$(cd "$(dirname "$ISO_ARG")" && pwd)/$(basename "$ISO_ARG")"
fi
if [ -z "$ISO_PATH" ] && [ -n "$VARIANT" ]; then
# Newest first: a retry the day after must pick the last build, not an old one.
ISO_PATH="$(ls -1t "$ISO_DIR"/fws-"$VERSION"-"$VARIANT"-*.iso 2>/dev/null | head -1 || true)"
fi
if [ -z "$ISO_PATH" ]; then
ISO_PATH="$(ls -1t "$ISO_DIR"/fws-"$VERSION"-*.iso 2>/dev/null | head -1 || true)"
fi
if [ -z "$ISO_PATH" ] || [ ! -f "$ISO_PATH" ]; then
# A dry run never builds: show where the ISO is expected instead of failing.
[ "$DRY_RUN" -eq 1 ] || die "Aucune ISO $VERSION dans $ISO_DIR (build absent ? lance sans --skip-build)."
ISO_PATH="$ISO_DIR/fws-$VERSION-$VARIANT-<AAAA.MM.JJ>.iso"
ISO_NAME="$(basename "$ISO_PATH")"
ISO_BYTES=0
warn "[dry-run] ISO pas encore construite : $ISO_PATH"
else
ISO_NAME="$(basename "$ISO_PATH")"
ISO_BYTES="$(stat -c %s "$ISO_PATH" 2>/dev/null || echo 0)"
[ "$ISO_BYTES" -gt 0 ] || die "ISO vide : $ISO_PATH"
info "ISO : $ISO_NAME ($(( ISO_BYTES / 1024 / 1024 )) Mio)"
# 2 GiB is GitHub's hard per-asset limit; Gitea's is configurable, so only
# GitHub is checked up front.
GH_LIMIT=2147483648
[ "$ISO_BYTES" -lt "$GH_LIMIT" ] \
|| warn "ISO > 2 Gio : GitHub refusera l'asset (limite 2147483648 octets)."
fi
# ─── Notes de version ────────────────────────────────────────────────────────
# Inline RST literals are the only markup in the changelog; sections become
# "### Added" so the text reads correctly on both forge web UIs.
rst_to_markdown() {
awk '
{ line[NR] = $0 }
END {
for (i = 1; i <= NR; i++) {
cur = line[i]
if (cur ~ /^[=~-]{3,}[[:space:]]*$/) continue
if (i < NR && line[i+1] ~ /^[=~-]{3,}[[:space:]]*$/ && cur ~ /[^[:space:]]/) {
printf "### %s\n\n", cur
continue
}
print cur
}
}' | sed -e 's/``\([^`]*\)``/`\1`/g'
}
if [ -f "$WORK_DIR/changelog/RELEASE-NOTES-$VERSION.md" ]; then
BODY="$(cat "$WORK_DIR/changelog/RELEASE-NOTES-$VERSION.md")"
NOTES_SRC="changelog/RELEASE-NOTES-$VERSION.md"
elif awk -v v="$VERSION" 'index($0, "[" v "]") == 1 { found = 1 } END { exit !found }' \
"$WORK_DIR/CHANGELOG.rst" 2>/dev/null; then
BODY="# FWS $VERSION
$(awk -v v="$VERSION" '
index($0, "[" v "]") == 1 { keep = 1; next }
keep && $0 ~ /^\[[0-9]+\.[0-9]+/ { exit }
keep { print }
' "$WORK_DIR/CHANGELOG.rst" | rst_to_markdown)"
NOTES_SRC="CHANGELOG.rst ($VERSION)"
else
BODY="FWS $VERSION — $(date +%Y-%m-%d)"
NOTES_SRC="(aucune)"
warn "Aucune note de version pour $VERSION (ni RELEASE-NOTES, ni section CHANGELOG)."
fi
info "Notes de version : $NOTES_SRC ($(printf '%s\n' "$BODY" | wc -l) lignes)."
# ─── Publication ─────────────────────────────────────────────────────────────
GITEA_RESULT="échec"
GITHUB_RESULT="échec"
# A failing forge must not abort the script: both are attempted, and the
# summary says what is missing. Hence no `die` inside the publishers.
pub_err() { echo -e "${RED}[ERR]${NC} $1" >&2; }
gitea_api() { # <method> <path> [curl args…]
local method="$1" path="$2"; shift 2
request -X "$method" -H "Authorization: token $GITEA_TOKEN" "$@" \
"$GITEA_URL/api/v1/repos/$GITEA_REPO$path"
}
publish_gitea() {
local api="$GITEA_URL/api/v1/repos/$GITEA_REPO"
local release_id=""
info "Gitea : recherche d'une release $TAG…"
gitea_api GET "/releases/tags/$TAG"
if [ "$HTTP_CODE" = "200" ]; then
release_id="$(echo "$HTTP_BODY" | jq -r '.id // empty')"
info "Gitea : release $TAG existante (id $release_id) — mise à jour."
local payload
payload="$(jq -n --arg name "FWS $VERSION" --arg body "$BODY" \
'{name:$name, body:$body, draft:false, prerelease:false}')"
gitea_api PATCH "/releases/$release_id" \
-H 'Content-Type: application/json' --data-binary "$payload"
[ "$HTTP_CODE" = "200" ] || [ "$HTTP_CODE" = "201" ] \
|| { pub_err "Gitea : mise à jour de la release impossible (HTTP $HTTP_CODE) — $(echo "$HTTP_BODY" | head -c 200)"; return 1; }
else
local payload
# target_commitish pins the remote tag to the exact commit that was
# built, instead of whatever the default branch points at later.
payload="$(jq -n --arg tag "$TAG" --arg target "$HEAD_SHA" \
--arg name "FWS $VERSION" --arg body "$BODY" \
'{tag_name:$tag, target_commitish:$target, name:$name, body:$body, draft:false, prerelease:false}')"
gitea_api POST "/releases" \
-H 'Content-Type: application/json' --data-binary "$payload"
[ "$HTTP_CODE" = "201" ] || [ "$HTTP_CODE" = "200" ] \
|| { pub_err "Gitea : création de la release impossible (HTTP $HTTP_CODE) — $(echo "$HTTP_BODY" | head -c 200)"; return 1; }
release_id="$(echo "$HTTP_BODY" | jq -r '.id // empty')"
success "Gitea : release $TAG créée."
fi
[ -n "$release_id" ] || { pub_err "Gitea : identifiant de release illisible."; return 1; }
local html_url
html_url="$(echo "$HTTP_BODY" | jq -r '.html_url // empty')"
info "Gitea : envoi de $ISO_NAME ($(( ISO_BYTES / 1024 / 1024 )) Mio)…"
gitea_api GET "/releases/$release_id/assets"
if echo "$HTTP_BODY" | jq -e --arg n "$ISO_NAME" 'any(.[]; .name == $n)' >/dev/null 2>&1; then
warn "Gitea : $ISO_NAME déjà joint à la release — envoi sauté."
else
# -F streams the file as multipart; nothing is loaded entirely in RAM.
gitea_api POST "/releases/$release_id/assets?name=$ISO_NAME" \
-F "attachment=@$ISO_PATH"
[ "$HTTP_CODE" = "201" ] || [ "$HTTP_CODE" = "200" ] \
|| { pub_err "$(upload_error Gitea "$HTTP_CODE")"; return 1; }
success "Gitea : ISO jointe."
fi
GITEA_RESULT="ok"
GITEA_URL_SHOWN="${html_url:-$GITEA_URL/$GITEA_REPO/releases/tag/$TAG}"
}
gh_api() { # <method> <path> [curl args…]
local method="$1" path="$2"; shift 2
request -X "$method" -H "Authorization: Bearer $GITHUB_TOKEN" \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' "$@" "$GH_API$path"
}
publish_github() {
local release_id=""
info "GitHub : recherche d'une release $TAG…"
gh_api GET "/repos/$GH_REPO/releases/tags/$TAG"
if [ "$HTTP_CODE" = "200" ]; then
release_id="$(echo "$HTTP_BODY" | jq -r '.id // empty')"
info "GitHub : release $TAG existante (id $release_id) — mise à jour."
local payload
payload="$(jq -n --arg name "FWS $VERSION" --arg body "$BODY" \
'{name:$name, body:$body, draft:false, prerelease:false}')"
gh_api PATCH "/repos/$GH_REPO/releases/$release_id" \
-H 'Content-Type: application/json' --data-binary "$payload"
[ "$HTTP_CODE" = "200" ] \
|| { pub_err "GitHub : mise à jour de la release impossible (HTTP $HTTP_CODE) — $(echo "$HTTP_BODY" | head -c 200)"; return 1; }
else
local payload
payload="$(jq -n --arg tag "$TAG" --arg target "${GH_TARGET:-}" \
--arg name "FWS $VERSION" --arg body "$BODY" \
'{tag_name:$tag, name:$name, body:$body, draft:false, prerelease:false}
+ (if $target != "" then {target_commitish:$target} else {} end)')"
gh_api POST "/repos/$GH_REPO/releases" \
-H 'Content-Type: application/json' --data-binary "$payload"
[ "$HTTP_CODE" = "201" ] || [ "$HTTP_CODE" = "200" ] \
|| { pub_err "GitHub : création de la release impossible (HTTP $HTTP_CODE) — $(echo "$HTTP_BODY" | head -c 200)"; return 1; }
release_id="$(echo "$HTTP_BODY" | jq -r '.id // empty')"
success "GitHub : release $TAG créée."
fi
[ -n "$release_id" ] || { pub_err "GitHub : identifiant de release illisible."; return 1; }
local html_url
html_url="$(echo "$HTTP_BODY" | jq -r '.html_url // empty')"
info "GitHub : envoi de $ISO_NAME ($(( ISO_BYTES / 1024 / 1024 )) Mio)…"
gh_api GET "/repos/$GH_REPO/releases/$release_id/assets"
local existing_id existing_state
existing_id="$(echo "$HTTP_BODY" | jq -r --arg n "$ISO_NAME" '[.[] | select(.name == $n)] | first | .id // empty' 2>/dev/null || true)"
existing_state="$(echo "$HTTP_BODY" | jq -r --arg n "$ISO_NAME" '[.[] | select(.name == $n)] | first | .state // empty' 2>/dev/null || true)"
if [ -n "$existing_id" ] && [ "$existing_state" = "uploaded" ]; then
warn "GitHub : $ISO_NAME déjà joint et complet — envoi sauté."
else
# A "starter" asset is a transfer that never finished: it holds the name
# without holding a usable file, so it has to go before the retry.
if [ -n "$existing_id" ]; then
warn "GitHub : $ISO_NAME présent mais incomplet (état '${existing_state:-?}') — suppression puis renvoi."
gh_api DELETE "/repos/$GH_REPO/releases/assets/$existing_id"
[ "$HTTP_CODE" = "204" ] \
|| { pub_err "GitHub : suppression de l'asset incomplet impossible (HTTP $HTTP_CODE)."; return 1; }
fi
# Assets are served by uploads.github.com, not api.github.com: the
# request goes to that host verbatim. -T streams the file, -X POST
# because GitHub accepts nothing else for an asset upload.
request -X POST -H "Authorization: Bearer $GITHUB_TOKEN" \
-H 'Accept: application/vnd.github+json' \
-H 'X-GitHub-Api-Version: 2022-11-28' \
-H 'Content-Type: application/octet-stream' \
-T "$ISO_PATH" \
"$GH_UPLOAD/repos/$GH_REPO/releases/$release_id/assets?name=$ISO_NAME"
[ "$HTTP_CODE" = "201" ] || [ "$HTTP_CODE" = "200" ] \
|| { pub_err "$(upload_error GitHub "$HTTP_CODE")"; return 1; }
# An accepted request is not a stored file: GitHub keeps a "starter"
# asset when the transfer dies halfway, which is invisible in the UI
# until someone tries to download the ISO.
gh_api GET "/repos/$GH_REPO/releases/$release_id/assets"
if echo "$HTTP_BODY" | jq -e --arg n "$ISO_NAME" \
'any(.[]; .name == $n and .state == "uploaded")' >/dev/null 2>&1; then
success "GitHub : ISO jointe et finalisée."
else
pub_err "GitHub : l'asset $ISO_NAME n'est pas finalisé (état incomplet) — relance avec --skip-build."
return 1
fi
fi
GITHUB_RESULT="ok"
GITHUB_URL_SHOWN="${html_url:-https://github.com/$GH_REPO/releases/tag/$TAG}"
}
if [ "$DRY_RUN" -eq 1 ]; then
echo ""
info "[dry-run] Aucun appel réseau, aucun build. Plan qui serait exécuté :"
echo " mode : $MODE"
echo " version : $VERSION → tag $TAG (commit $HEAD_SHA)"
echo " variante : ${VARIANT:-<demandée>}"
echo " ISO : $ISO_PATH"
echo " notes : $NOTES_SRC"
echo " Gitea : POST $GITEA_URL/api/v1/repos/$GITEA_REPO/releases"
echo " GitHub : POST $GH_API/repos/$GH_REPO/releases (+ $GH_UPLOAD)"
echo ""
info "Aperçu des notes de version :"
printf '%s\n' "$BODY" | head -12
exit 0
fi
# Both forges are attempted even if the first fails: a failed run must still
# deliver what it can, and the summary below says exactly what is missing.
publish_gitea || warn "Gitea : publication échouée (voir ci-dessus)."
publish_github || warn "GitHub : publication échouée (voir ci-dessus)."
# ─── Bilan ───────────────────────────────────────────────────────────────────
echo ""
echo -e "${BOLD}Release $VERSION${NC}"
echo " ISO : $ISO_NAME ($(( ISO_BYTES / 1024 / 1024 )) Mio)"
echo " Gitea : $GITEA_RESULT${GITEA_URL_SHOWN:+ — $GITEA_URL_SHOWN}"
echo " GitHub : $GITHUB_RESULT${GITHUB_URL_SHOWN:+ — $GITHUB_URL_SHOWN}"
if [ "$GITEA_RESULT" != "ok" ] || [ "$GITHUB_RESULT" != "ok" ]; then
die "Release incomplète — relance './release.sh --variant ${VARIANT:-<variante>} --skip-build' après correction."
fi
echo -e "${GREEN}Release $VERSION publiée sur les deux forges.${NC}"
+6 -41
View File
@@ -1,7 +1,10 @@
#!/bin/bash #!/bin/bash
# ============================================================ # ============================================================
# FWS — Build des paquets AUR + PKGBUILD locaux (deps Anaconda, fws-dnd, # FWS — Build des paquets AUR et création du repo pacman local fws-local/.
# fws-pacmanage) et création du repo pacman local fws-local/. #
# Les paquets FWS (anaconda et ses deps, fws-dnd, fws-pacmanage) ne sont plus
# construits ici : ils viennent du dépôt distant [fws] (cf. pacman.conf du
# profil).
# #
# Rejoue-le si tu changes la liste AUR_PACKAGES ou pour # Rejoue-le si tu changes la liste AUR_PACKAGES ou pour
# rafraîchir le repo local. # rafraîchir le repo local.
@@ -14,12 +17,7 @@ trap 'rc=$?; echo -e "\033[0;31m[ERR] Échec (setup-aur.sh) ligne $LINENO, code
# - libxmlrpc, satyr : deps de libreport (deps officielles uniquement) # - libxmlrpc, satyr : deps de libreport (deps officielles uniquement)
# - libreport : tiré par python-meh ; chaîne AUR→AUR → APRÈS satyr+libxmlrpc # - libreport : tiré par python-meh ; chaîne AUR→AUR → APRÈS satyr+libxmlrpc
# - python-* : deps Anaconda présentes dans l'AUR (deps officielles only) # - python-* : deps Anaconda présentes dans l'AUR (deps officielles only)
# python-blivet est packagé en LOCAL (pkgbuilds/, patché sans libselinux).
# gnome-kiosk (WM de la session GUI) est différé au chantier C. # gnome-kiosk (WM de la session GUI) est différé au chantier C.
# NB : python-iso639 RETIRÉ de l'AUR (mauvais projet homonyme, API sans find()) →
# packagé en LOCAL (pkgbuilds/python-iso639, projet PyPI « iso639 » 0.1.4).
# NB : python-langtable RETIRÉ de l'AUR (figé 0.0.51, sans list_common_languages) →
# packagé en LOCAL (pkgbuilds/python-langtable, 0.0.71).
# NB : broadcom-wl-dkms n'est PAS dans packages.x86_64 — il blackliste # NB : broadcom-wl-dkms n'est PAS dans packages.x86_64 — il blackliste
# b43/bcma/ssb pour tout le système. build.sh l'embarque dans l'image et # b43/bcma/ssb pour tout le système. build.sh l'embarque dans l'image et
# fws-setup-hardware ne l'installe que sur une Broadcom réellement muette. # fws-setup-hardware ne l'installe que sur une Broadcom réellement muette.
@@ -404,7 +402,7 @@ is_noinstall() {
# Construit OU saute <name> (source déjà déposée dans $BUILD_DIR/<name>). # Construit OU saute <name> (source déjà déposée dans $BUILD_DIR/<name>).
# Installe le résultat (depuis local-repo si sauté) pour que les paquets # Installe le résultat (depuis local-repo si sauté) pour que les paquets
# dépendants suivants résolvent leurs deps (chaînes AUR→AUR, anaconda…) — # dépendants suivants résolvent leurs deps (chaînes AUR→AUR) —
# sauf pour les NOINSTALL_PACKAGES ci-dessus, qui sont seulement publiés. # sauf pour les NOINSTALL_PACKAGES ci-dessus, qui sont seulement publiés.
build_or_skip() { build_or_skip() {
# NB : référencer "$1" et PAS "$name" ici — dans un `local a=… b=…` à une # NB : référencer "$1" et PAS "$name" ici — dans un `local a=… b=…` à une
@@ -481,39 +479,6 @@ for pkg in "${AUR_PACKAGES[@]}"; do
fi fi
done done
# --- PKGBUILD locaux FWS (ordre explicite, feuilles d'abord, anaconda dernier) ---
LOCAL_PKGBUILDS_DIR="$SCRIPT_DIR/pkgbuilds"
LOCAL_BUILD_ORDER=(
fws-pacmanage
fws-dnd
pykickstart python-productmd python-requests-file python-simpleline
python-iso639 python-langtable python-meh python-blivet
anaconda-widgets anaconda
)
BUILT_LOCAL=()
prepare_and_build_local() {
local name="$1" dir="$LOCAL_PKGBUILDS_DIR/$1"
[ -f "$dir/PKGBUILD" ] || return 1
rm -rf "$BUILD_DIR/$name"
cp -a "$dir" "$BUILD_DIR/$name"
build_or_skip "$name"
}
if [ -d "$LOCAL_PKGBUILDS_DIR" ]; then
# 1) Ordre explicite (deps avant dépendants).
for name in "${LOCAL_BUILD_ORDER[@]}"; do
if prepare_and_build_local "$name"; then BUILT_LOCAL+=("$name"); fi
done
# 2) Repli : tout PKGBUILD présent mais non listé (futur ajout oublié).
for dir in "$LOCAL_PKGBUILDS_DIR"/*/; do
[ -f "$dir/PKGBUILD" ] || continue
name="$(basename "$dir")"
printf '%s\n' "${BUILT_LOCAL[@]}" | grep -qx "$name" && continue
prepare_and_build_local "$name" || true
done
fi
# ============================================================ # ============================================================
step "4/4 — (Re)génération de la base du repo local fws-local" step "4/4 — (Re)génération de la base du repo local fws-local"
# ============================================================ # ============================================================