quine-linux/installer/anaconda-webui/vendor/browser-ext
Philip Peterson 255042fe8d Vendor anaconda-webui and build it into the installer image
Replaces installing a patched anaconda-webui RPM from the forge's package
registry: installer/anaconda-webui/vendor/ is upstream release 86 verbatim
(see its PROVENANCE.md), and installer/Containerfile builds it with
upstream's own `make install` in a native-platform stage, then copies the
result over stock Fedora anaconda-webui. The produced file set matches
Fedora's anaconda-webui-86-1.fc46 exactly. Edits to the installer UI now
happen in vendor/ and ship on the next `task build-installer-iso`, with no
RPM, registry or CI in between.

Also follows bootc-image-builder's rename of --bootc-installer-payload-ref
to --installer-payload-ref.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 05:56:26 -08:00

40 lines
1.5 KiB
Bash
Executable file

#!/bin/bash
#
# Copyright (C) 2025 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# This should be eventually get shared across projects:
# https://issues.redhat.com/browse/INSTALLER-3755
# Get the default browser for the 'https' protocol
DEFAULT_BROWSER=$(xdg-mime query default x-scheme-handler/https)
URL="${1/extlink/https}"
# If Firefox is the default browser, use the custom profile
if [[ "$DEFAULT_BROWSER" == "org.mozilla.firefox.desktop" ]]; then
# Create a temporary Firefox profile
PROFILE_DIR="/tmp/anaconda-extlink-firefox-profile"
mkdir -p "$PROFILE_DIR"
# Copy the custom user.js for the Firefox settings
cp /usr/share/anaconda/firefox-theme/extlink/user.js "$PROFILE_DIR/"
# Launch Firefox with the custom profile
/usr/bin/firefox --profile "$PROFILE_DIR" --no-remote "$URL"
else
# For any other browser, use xdg-open
xdg-open "$URL"
fi