# XXX: these commands are temporarily, there's an upcoming fix in the upstream Docker image # that we work on top of, from `freedesktopsdk`, that will make these two lines go away eventually
mkdir -p /root /tmp /var/tmp
mkdir -p "$ARTIFACTS_DIR" rm -rf "$SOURCE_DEST" && mkdir -p "$SOURCE_DEST"
# XXX ensure we have a clean slate in the local flatpak repo rm -rf ~/.local/share/flatpak/
# Use list of locales to fetch L10N XPIs
$CURL -o "${WORKSPACE}/l10n_changesets.json""$L10N_CHANGESETS"
locales=$(python3 "$SCRIPT_DIRECTORY/extract_locales_from_l10n_json.py""${WORKSPACE}/l10n_changesets.json")
DISTRIBUTION_DIR="$SOURCE_DEST/distribution" if [[ "$PRODUCT" == "firefox" ]]; then # Get Flatpak configuration
PARTNER_CONFIG_DIR="$WORKSPACE/partner_config"
git clone https://github.com/mozilla-partners/flatpak.git"$PARTNER_CONFIG_DIR"
mv "$PARTNER_CONFIG_DIR/desktop/flatpak/distribution""$DISTRIBUTION_DIR" else
mkdir -p "$DISTRIBUTION_DIR" fi
mkdir -p "$DISTRIBUTION_DIR/extensions" for locale in $locales; do
$CURL -o "$DISTRIBUTION_DIR/extensions/langpack-${locale}@firefox.mozilla.org.xpi"\ "$CANDIDATES_DIR/${VERSION}-candidates/build${BUILD_NUMBER}/linux-x86_64/xpi/${locale}.xpi" done
# XXX: this command is temporarily, there's an upcoming fix in the upstream Docker image # that we work on top of, from `freedesktopsdk`, that will make these two lines go away eventually
mkdir -p build cp -r ~/.local/share/flatpak/app/org.mozilla.firefox.BaseApp/current/active/files build/files
# XXX: we used to `install -D` before which automatically created the components # of target, now we need to manually do this since we're symlinking
mkdir -p "${appdir}/lib/firefox/distribution/extensions" # XXX: we put the langpacks in /app/share/locale/$LANG_CODE and symlink that # directory to where Firefox looks them up; this way only subset configured # on user system is downloaded vs all locales for locale in $locales; do
install -D -m644 -t "${appdir}/share/runtime/langpack/${locale%%-*}/""${DISTRIBUTION_DIR}/extensions/langpack-${locale}@firefox.mozilla.org.xpi"
ln -sf "/app/share/runtime/langpack/${locale%%-*}/langpack-${locale}@firefox.mozilla.org.xpi""${appdir}/lib/firefox/distribution/extensions/langpack-${locale}@firefox.mozilla.org.xpi" done
install -D -m644 -t "${appdir}/lib/firefox/distribution""$DISTRIBUTION_DIR/distribution.ini"
install -D -m755 launch-script.sh "${appdir}/bin/firefox"
# We use features=devel to enable ptrace, which we need for the crash # reporter. The application is still confined in a pid namespace, so # that won't let us escape the flatpak sandbox. See bug 1653852.
# XXX: if we ever wanted to go back to building flatpak bundles, we can revert this command; useful for testing individual artifacts, not publishable # flatpak build-bundle "$WORKSPACE"/repo org.mozilla.firefox.flatpak org.mozilla.firefox # TARGET_FULL_PATH="$ARTIFACTS_DIR/target.flatpak" # mv -- *.flatpak "$TARGET_FULL_PATH"
Messung V0.5
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.