diff --git a/.github/replace-uutils-with-gnu-coreutils-ubuntu26.sh b/.github/replace-uutils-with-gnu-coreutils-ubuntu26.sh new file mode 100644 index 00000000..54fd51cc --- /dev/null +++ b/.github/replace-uutils-with-gnu-coreutils-ubuntu26.sh @@ -0,0 +1,217 @@ +#!/usr/bin/env bash +# Building embedded images is broken under stock Ubuntu 26, +# because the rust coreutils version is severely broken, and doesnt react to bugreports. +# UEFI files get corrupted e.g. +# https://computingforgeeks.com/ubuntu-2604-rust-coreutils-guide/ is quite ok, but not fully. +# +# Replace Ubuntu 26's uutils selector with GNU coreutils while keeping +# build-essential dependent on the implementation-neutral coreutils package. +# Tested in a fresh Ubuntu-26.04 container + +set -Eeuo pipefail +export DEBIAN_FRONTEND=${DEBIAN_FRONTEND:-noninteractive} + +usage() { + cat <<'EOF' +Usage: sudo ./replace-uutils-with-gnu-coreutils-ubuntu26.sh [options] + +Options: + --build-only Build the corrected build-essential package; do not install it. + --output-dir DIR Keep the corrected package in DIR (default: /var/tmp). + -h, --help Show this help. +EOF +} + +build_only=false +output_dir=/var/tmp + +while (($#)); do + case "$1" in + --build-only) + build_only=true + shift + ;; + --output-dir) + (($# >= 2)) || { printf 'error: --output-dir requires a directory\n' >&2; exit 2; } + output_dir=$2 + shift 2 + ;; + -h|--help) + usage + exit 0 + ;; + *) + printf 'error: unknown option: %s\n' "$1" >&2 + usage >&2 + exit 2 + ;; + esac +done + +if [[ ! -r /etc/os-release ]]; then + printf 'error: /etc/os-release is unavailable\n' >&2 + exit 1 +fi +# shellcheck disable=SC1091 +. /etc/os-release +if [[ ${ID:-} != ubuntu || ${VERSION_ID:-} != 26.* ]]; then + printf 'error: this recipe is only for Ubuntu 26.x; found %s %s\n' \ + "${ID:-unknown}" "${VERSION_ID:-unknown}" >&2 + exit 1 +fi + +if ! $build_only && ((EUID != 0)); then + printf 'error: run the installation with sudo (or use --build-only)\n' >&2 + exit 1 +fi + +for command in apt-cache apt-get awk dpkg dpkg-deb dpkg-query mktemp; do + command -v "$command" >/dev/null || { + printf 'error: required command not found: %s\n' "$command" >&2 + exit 1 + } +done + +is_installed() { + [[ $(dpkg-query -W -f='${db:Status-Abbrev}' "$1" 2>/dev/null || true) == ii* ]] +} + +installed_build_essential_depends=$(dpkg-query -W -f='${Depends}' build-essential 2>/dev/null || true) +if ! $build_only \ + && [[ $installed_build_essential_depends == *coreutils* ]] \ + && [[ $installed_build_essential_depends != *coreutils-from-uutils* ]] \ + && is_installed coreutils-from-gnu; then + printf 'Already configured: build-essential uses coreutils and coreutils-from-gnu is installed.\n' + exit 0 +fi + +if ! $build_only; then + apt-get update +fi + +archive_version=$(apt-cache madison build-essential | awk 'NR == 1 { print $3 }') +if [[ -z $archive_version ]]; then + printf 'error: no archive version of build-essential is available\n' >&2 + exit 1 +fi +local_version="${archive_version}+coreutilsgnu1" +architecture=$(dpkg --print-architecture) + +work_dir=$(mktemp -d "${TMPDIR:-/tmp}/build-essential-coreutils-gnu.XXXXXXXX") +cleanup() { + rm -rf "$work_dir" +} +trap cleanup EXIT +chmod 0755 "$work_dir" +download_dir=$work_dir/download +mkdir "$download_dir" +if ((EUID == 0)) && id -u _apt >/dev/null 2>&1; then + chown _apt:root "$download_dir" +fi + +( + cd "$download_dir" + apt-get download "build-essential=$archive_version" +) + +shopt -s nullglob +downloaded_packages=("$download_dir"/build-essential_*.deb) +shopt -u nullglob +if ((${#downloaded_packages[@]} != 1)); then + printf 'error: expected one downloaded build-essential package, found %d\n' \ + "${#downloaded_packages[@]}" >&2 + exit 1 +fi + +package_root=$work_dir/package +dpkg-deb --raw-extract "${downloaded_packages[0]}" "$package_root" +control_file=$package_root/DEBIAN/control +original_depends=$(dpkg-deb -f "${downloaded_packages[0]}" Depends) +if [[ $original_depends != *coreutils-from-uutils* ]]; then + printf 'error: archive build-essential no longer depends on coreutils-from-uutils; refusing to rewrite unexpected metadata\n' >&2 + exit 1 +fi + +awk -v version="$local_version" ' + /^Version: / { + print "Version: " version + next + } + /^Maintainer: / { + print "Maintainer: Local Administrator " + next + } + /^Depends: / { + if (sub(/coreutils-from-uutils([[:space:]]*\([^)]*\))?/, "coreutils") != 1) { + exit 42 + } + print + next + } + { print } +' "$control_file" >"$control_file.new" || { + status=$? + printf 'error: failed to rewrite build-essential control metadata (status %d)\n' "$status" >&2 + exit "$status" +} +mv "$control_file.new" "$control_file" + +mkdir -p "$output_dir" +output_dir=$(cd "$output_dir" && pwd -P) +version_for_filename=${local_version//:/%3a} +output_package=$output_dir/build-essential_${version_for_filename}_${architecture}.deb +dpkg-deb --root-owner-group --build "$package_root" "$output_package" + +rebuilt_depends=$(dpkg-deb -f "$output_package" Depends) +rebuilt_version=$(dpkg-deb -f "$output_package" Version) +if [[ $rebuilt_version != "$local_version" \ + || $rebuilt_depends == *coreutils-from-uutils* \ + || $rebuilt_depends != *coreutils* ]]; then + printf 'error: rebuilt package failed metadata validation\n' >&2 + exit 1 +fi + +printf 'Built corrected package: %s\n' "$output_package" +printf 'Depends: %s\n' "$rebuilt_depends" + +if $build_only; then + exit 0 +fi + +# Unpack first so this also works on minimal images where build-essential's +# compiler dependencies are not installed yet. Resolve those dependencies while +# uutils still satisfies coreutils' selector pre-dependency. +dpkg --unpack "$output_package" +apt-get --fix-broken install -y + +# These selector packages conflict through their shared coreutils-from virtual +# package. Name the removal explicitly so APT can solve the handoff. Ubuntu marks +# the uutils selector Protected, so noninteractive replacement requires +# --allow-remove-essential; coreutils-from-gnu is installed in the same APT +# transaction and performs the supported diversion handoff. +apt-get install -y --allow-remove-essential \ + coreutils-from-gnu coreutils-from-uutils- +apt-get check + +if ! is_installed build-essential \ + || ! is_installed coreutils-from-gnu \ + || is_installed coreutils-from-uutils; then + printf 'error: package transition did not complete\n' >&2 + exit 1 +fi +installed_build_essential_depends=$(dpkg-query -W -f='${Depends}' build-essential) +if [[ $installed_build_essential_depends == *coreutils-from-uutils* \ + || $installed_build_essential_depends != *coreutils* ]]; then + printf 'error: installed build-essential has unexpected dependencies: %s\n' \ + "$installed_build_essential_depends" >&2 + exit 1 +fi +if ! /usr/bin/ls --version 2>/dev/null | awk 'NR == 1 { found = /GNU coreutils/ } END { exit !found }'; then + printf 'error: /usr/bin/ls is not provided by GNU coreutils after the transition\n' >&2 + exit 1 +fi + +printf 'Transition complete.\n' +printf ' build-essential: %s\n' "$(dpkg-query -W -f='${Version}' build-essential)" +printf ' selector: coreutils-from-gnu %s\n' "$(dpkg-query -W -f='${Version}' coreutils-from-gnu)" +printf ' active ls: %s\n' "$(readlink -f /usr/bin/ls)" diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 00000000..78bd93de --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,155 @@ +name: Run tests + +on: + workflow_call: +env: + APPIMAGE_BUILDER_REMOTE_REPO_OWNER: ${{ github.repository_owner }} + +jobs: + pytest-ubuntu-container: + name: Run tests on Ubuntu 26.04 (Docker) + runs-on: ubuntu-26.04 + container: ubuntu:26.04 + steps: + - name: Install dependencies + run: | + apt-get -y update + apt-get install -y fakeroot lsb-release binutils patchelf git python3-dev python3-pip python3-venv libffi-dev + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Set up a virtualenv + run: | + python3 -m venv .venv + - name: Install appimage-builder and run tests + run: | + git config --global --add safe.directory $PWD + . .venv/bin/activate + pip install pytest + pip install -e .[dev] + pytest tests + + pytest-archlinux: + name: Run tests on ArchLinux (Docker) + runs-on: ubuntu-26.04 + container: archlinux + steps: + - name: Install dependencies + run: pacman -Syu --noconfirm binutils fakeroot lsb-release strace patchelf git python-pip gcc + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Set up a virtualenv + run: | + python3 -m venv .venv + - name: Install appimage-builder and run tests + run: | + git config --global --add safe.directory $PWD + . .venv/bin/activate + pip install pytest + pip install -e .[dev] + pytest tests + + pytest-ubuntu-runner: + name: Run tests on Ubuntu 26.04 with python 3.14. + runs-on: ubuntu-26.04 + steps: + - name: Install dependencies + run: | + sudo apt-get -y update + sudo apt-get install -y fakeroot lsb-release binutils patchelf git libffi-dev + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Clear Python cache + run: | + sudo rm -rf /__t/Python + - name: Install python + uses: actions/setup-python@v7 + with: + python-version: '3.14' + cache: 'pip' + - name: Install appimage-builder and run tests + run: | + pip install pytest + pip install -e .[dev] + python3 -m pytest tests + + build-pack-bash: + runs-on: ubuntu-26.04 + needs: [ pytest-ubuntu-container, pytest-ubuntu-runner, pytest-archlinux ] + steps: + - name: Checkout + uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: Install dependencies + run: | + sudo apt-get update + chmod +x .github/replace-uutils-with-gnu-coreutils-ubuntu26.sh + sudo ./.github/replace-uutils-with-gnu-coreutils-ubuntu26.sh + sudo apt-get install -y gnu-coreutils coreutils-from-gnu coreutils-from-uutils- rust-coreutils- coreutils patchelf desktop-file-utils libgdk-pixbuf-2.0-dev fakeroot strace git lsb-release python3-build python3-setuptools adwaita-icon-theme libffi-dev + + sudo wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool + sudo chmod +x /usr/local/bin/appimagetool + - name: Build Python Wheel + run: | + cd ${{ github.workspace }} + python3 -m build + - name: Install appimage-builder + run: | + pip install --ignore-installed --user --break-system-packages . + - name: Build AppImage + run: | + cd ${{ github.workspace }}/recipes/appimage-builder + export APPIMAGE_BUILDER_VERSION=$(appimage-builder --version | head -1 | cut -f 2 -d" ") + echo "APPIMAGE_BUILDER_VERSION=${APPIMAGE_BUILDER_VERSION}" >> $GITHUB_ENV + appimage-builder --skip-test + - name: Pack bash + run: | + # build bash + BUILDER_PATH=$(find $PWD -name appimage-builder-*.AppImage) + chmod +x "$BUILDER_PATH" + cd ${{ github.workspace }}/recipes/bash/ + "$BUILDER_PATH" --skip-test + - name: Test bash + run: | + cd ${{ github.workspace }}/recipes/bash/ + ./bash*.AppImage --appimage-extract-and-run -c "echo Hello World" + - name: Build AppImage (DEBUG runtime) + run: | + cd ${{ github.workspace }}/recipes/appimage-builder + appimage-builder --skip-test --recipe ./AppImageBuilder-debug.yml + - name: Compress Assets + run: | + cd ${{ github.workspace }}/recipes/appimage-builder + tar -cvf appimage-builder_x86_64-AppImage.tar -C ${{ github.workspace }}/recipes/appimage-builder/ *x86_64.AppImage* + tar -cvf appimage-builder_x86_64-AppImage-DEBUG.tar -C ${{ github.workspace }}/recipes/appimage-builder/ *-DEBUG.AppImage* + tar -cvf ${{ github.workspace }}/appimage-builder_python-dist.tar -C ${{ github.workspace }}/dist . + - name: Upload AppImageBuilder AppImage + uses: actions/upload-artifact@v7 + with: + name: appimage-builder.AppImage + path: '${{ github.workspace }}/recipes/appimage-builder/appimage-builder_x86_64-AppImage.tar' + retention-days: 7 + - name: Upload AppImageBuilder Debug AppImage + uses: actions/upload-artifact@v7 + with: + name: appimage-builder-DEBUG.AppImage + path: '${{ github.workspace }}/recipes/appimage-builder/appimage-builder_x86_64-AppImage-DEBUG.tar' + retention-days: 7 + - name: Upload AppImageBuilder Python dist + uses: actions/upload-artifact@v7 + with: + name: appimage-builder-pydist + path: '${{ github.workspace }}/appimage-builder_python-dist.tar' + retention-days: 7 + - name: Upload Bash AppImage + uses: actions/upload-artifact@v7 + with: + name: bash.AppImage + path: '${{ github.workspace }}/recipes/bash/*.AppImage*' + retention-days: 7 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..981a46f4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,14 @@ +name: "CI Build" + +on: + pull_request: + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-test: + name: "Build and test" + uses: ./.github/workflows/build-test.yml \ No newline at end of file diff --git a/.github/workflows/continuous-builds.yml b/.github/workflows/continuous-builds.yml deleted file mode 100644 index a13c927e..00000000 --- a/.github/workflows/continuous-builds.yml +++ /dev/null @@ -1,112 +0,0 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Continuous Builds - -on: - push: - branches: - - '**' - tags: - - '!**' - -jobs: - pytest-ubuntu-focal: - runs-on: ubuntu-latest - container: ubuntu:22.04 - steps: - - name: Install dependencies - run: | - apt-get update - apt-get install -y python3.11 python3-pip python3-pytest fakeroot binutils patchelf git - - uses: actions/checkout@v3 - - name: Install appimage-builder - run: | - git config --global --add safe.directory $PWD - git fetch --prune --unshallow - python3 -m pip install -e .[dev] - - name: Run pytest - run: python3 -m unittest - - pytest-archlinux: - runs-on: ubuntu-latest - container: archlinux - steps: - - name: Install dependencies - run: pacman -Syu --noconfirm python-pip python-pytest python-setuptools binutils patchelf fakeroot strace patchelf git - - uses: actions/checkout@v3 - - name: Install appimage-builder - run: | - git config --global --add safe.directory $PWD - git fetch --prune --unshallow - python3 -m pip install -e .[dev] - - name: Run pytest - run: python3 -m unittest - - build: - runs-on: ubuntu-latest - needs: [ pytest-ubuntu-focal, pytest-archlinux ] - steps: - - name: Install dependencies - run: | - sudo apt install -y python3.11-minimal python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace git - sudo wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool - sudo chmod +x /usr/local/bin/appimagetool - - uses: actions/checkout@v3 - - name: Install appimage-builder - run: | - git config --global --add safe.directory $PWD - git fetch --prune --unshallow - sudo python3.11 -m pip install . - - name: Build AppImage - run: | - cd recipes/appimage-builder - export APPIMAGE_BUILDER_VERSION=$(appimage-builder --version | head -1 | cut -f 2 -d" ") - appimage-builder --skip-test - - name: Upload Artifacts - uses: actions/upload-artifact@v2.1.4 - with: - name: appimage-builder - path: 'recipes/appimage-builder/appimage-builder*.AppImage*' - test-pack-bash: - runs-on: ubuntu-latest - needs: build - steps: - - uses: actions/checkout@v3 - - name: Download AppImage from build job - uses: actions/download-artifact@v2 - with: - name: appimage-builder - - name: Install dependencies - run: | - sudo apt install -y adwaita-icon-theme - - name: Pack bash - run: | - # build bash - BUILDER_PATH=$(find $PWD -name appimage-builder-*.AppImage) - chmod +x "$BUILDER_PATH" - cd recipes/bash/ - "$BUILDER_PATH" --skip-test - - name: Test bash - run: | - recipes/bash/*.AppImage --appimage-extract-and-run -c "echo Hello World" - - name: Upload Artifacts - uses: actions/upload-artifact@v2.1.4 - with: - name: bash - path: 'recipes/bash/*.AppImage*' - publish: - runs-on: ubuntu-latest - needs: test-pack-bash - if: github.ref == 'refs/heads/main' - steps: - - name: Download AppImage from build job - uses: actions/download-artifact@v2 - with: - name: appimage-builder - - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: true - automatic_release_tag: Continuous - files: 'appimage-builder*.AppImage*' diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 00000000..d6204a5d --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,36 @@ +name: "Pre-release" + +on: + push: + branches: + - "main" + workflow_dispatch: + +jobs: + build: + name: "Run Build and Test Matrix" + uses: ./.github/workflows/build-test.yml + + publish: + name: "Publish Pre-release" + runs-on: ubuntu-latest + needs: build + steps: + - name: Download all build artifacts from build job + uses: actions/download-artifact@v7 + with: + pattern: "appimage-builder*" + path: "${{ github.workspace }}/release-assets" + merge-multiple: true + - name: Look at downloaded assets + run: | + ls -l "${{ github.workspace }}/" + ls -l "${{ github.workspace }}/release-assets/" + - name: Create 'continuous' Pre-release + uses: softprops/action-gh-release@v3 + with: + files: "${{ github.workspace }}/release-assets/*" + tag_name: "continuous" + name: "Continuous Build (Pre-release)" + body: "This is a continuous build which may be unstable." + prerelease: true diff --git a/.github/workflows/stable-releases.yml b/.github/workflows/stable-releases.yml index be135c07..73206d15 100644 --- a/.github/workflows/stable-releases.yml +++ b/.github/workflows/stable-releases.yml @@ -1,95 +1,37 @@ -# This workflows will upload a Python Package using Twine when a release is created -# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries - -name: Release builds +name: "Tagged Release" on: push: tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 + - "v*" + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest - steps: - - name: Install dependencies - run: | - sudo apt install -y python3.8-minimal python3-pip python3-setuptools patchelf desktop-file-utils libgdk-pixbuf2.0-dev fakeroot strace git - sudo wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool - sudo chmod +x /usr/local/bin/appimagetool - - uses: actions/checkout@v3 - - name: Install appimage-builder - run: | - git config --global --add safe.directory $PWD - git fetch --prune --unshallow - sudo python3.8 -m pip install . - - name: Build AppImage - run: | - cd recipes/appimage-builder - export APPIMAGE_BUILDER_VERSION=$(appimage-builder --version | head -1 | cut -f 2 -d" ") - appimage-builder --skip-test - - name: Upload Artifacts - uses: actions/upload-artifact@v2.1.4 - with: - name: appimage-builder - path: 'recipes/appimage-builder/appimage-builder*.AppImage*' - test: + name: "Run Build and Test Matrix" + uses: ./.github/workflows/build-test.yml + + publish: + name: "Publish Tagged Release" runs-on: ubuntu-latest needs: build steps: - - uses: actions/checkout@v3 - - name: Download AppImage from build job - uses: actions/download-artifact@v2 + - name: Download all build artifacts from build job + uses: actions/download-artifact@v7 with: - name: appimage-builder - - name: Install dependencies - run: | - sudo apt install -y adwaita-icon-theme - - name: Pack bash - run: | - # build bash - BUILDER_PATH=$(find $PWD -name appimage-builder-*.AppImage) - chmod +x "$BUILDER_PATH" - cd recipes/bash/ - "$BUILDER_PATH" --skip-test - - name: Test bash - run: | - recipes/bash/*.AppImage --appimage-extract-and-run -c "echo Hello World" - - name: Upload Artifacts - uses: actions/upload-artifact@v2.1.4 - with: - name: bash - path: 'recipes/bash/*.AppImage*' - publish-appimage: - runs-on: ubuntu-20.04 - needs: test - steps: - - name: Download AppImage from build job - uses: actions/download-artifact@v2 - with: - name: appimage-builder - - uses: "marvinpinto/action-automatic-releases@latest" + pattern: "appimage-builder*-pydist" + path: release-assets + merge-multiple: true + + - name: Create GitHub Release + uses: softprops/action-gh-release@v3 with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" + files: release-assets/* prerelease: false - files: 'appimage-builder*.AppImage*' - publish-python-wheel: - runs-on: ubuntu-latest - needs: test - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v1 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish + - name: Publish wheel env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - python setup.py sdist bdist_wheel - twine upload dist/* + sudo apt-get -y install python3-twine + twine upload release-assets/* diff --git a/.gitignore b/.gitignore index 3df3c4e1..5e848864 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ # Example builds /recipes/*/AppDir +squashfs-root /recipes/*/appimage-build /recipes/*/appimage-builder-cache /AppDir diff --git a/Dockerfile b/Dockerfile index 2d37abd1..5ceb643e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:20.04 +FROM ubuntu:26.04 ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && \ @@ -11,10 +11,11 @@ RUN apt-get update && \ git \ gnupg2 \ gtk-update-icon-cache \ - libgdk-pixbuf2.0-dev \ + libgdk-pixbuf-2.0-dev \ libglib2.0-bin \ librsvg2-dev \ libyaml-dev \ + patchelf \ python3 \ python3-pip \ python3-setuptools \ @@ -24,12 +25,12 @@ RUN apt-get update && \ zsync && \ apt-get -yq autoclean -WORKDIR /tmp -RUN wget https://github.com/NixOS/patchelf/releases/download/0.12/patchelf-0.12.tar.bz2; \ - tar -xvf patchelf-0.12.tar.bz2; \ - cd patchelf-0.12.20200827.8d3a16e; \ - ./configure && make && make install; \ - rm -rf patchelf-* +# WORKDIR /tmp +# RUN wget https://github.com/NixOS/patchelf/releases/download/0.19.2/patchelf-0.19.2.tar.bz2; \ +# tar -xvf patchelf-0.19.2.tar.bz2; \ +# cd patchelf-0.19.2; \ +# ./configure && make && make install; \ +# rm -rf patchelf-* ADD . /opt/appimage-builder RUN python3 -m pip install /opt/appimage-builder diff --git a/appimagebuilder/__main__.py b/appimagebuilder/__main__.py index 48cc8390..42b763d6 100755 --- a/appimagebuilder/__main__.py +++ b/appimagebuilder/__main__.py @@ -19,6 +19,8 @@ from appimagebuilder.modules.generate.command_generate import CommandGenerate from appimagebuilder.invoker import Invoker from appimagebuilder.orchestrator import Orchestrator +from os import environ +from sys import version_info def __main__(): @@ -37,6 +39,8 @@ def __main__(): exit(0) recipe_loader = recipe.Loader() + environ["APPIMAGE_BUILDER_PY_VERSION"] = rf"{version_info.major}.{version_info.minor}" + environ["APPIMAGE_BUILDER_REMOTE_REPO_OWNER"] = environ.get("APPIMAGE_BUILDER_REMOTE_REPO_OWNER","AppImageCrafters").lower() raw_recipe_data = recipe_loader.load(args.recipe) recipe_roamer = recipe.Roamer(raw_recipe_data) diff --git a/appimagebuilder/commands/setup_runtime.py b/appimagebuilder/commands/setup_runtime.py index 7e78253e..38e9a66d 100644 --- a/appimagebuilder/commands/setup_runtime.py +++ b/appimagebuilder/commands/setup_runtime.py @@ -28,12 +28,15 @@ def id(self): def __call__(self, *args, **kwargs): apprun_version = self.context.recipe.AppDir.runtime.version() or "v2.0.0" - apprun_version = version.parse(apprun_version) + if apprun_version != "continuous": + apprun_version = version.parse(apprun_version) runtime_setup = None - if version.parse("v2.0.0") <= apprun_version < version.parse("v3.0.0"): + if (apprun_version != "continuous" and + version.parse("v2.0.0") <= apprun_version < version.parse("v3.0.0") + ) or apprun_version == "continuous": runtime_setup = AppRunV2Setup(self.context, self._finder) - if not runtime_setup and version.parse("v3.0.0") <= apprun_version < version.parse("v4.0.0"): + if not runtime_setup and apprun_version != "continuous" and version.parse("v3.0.0-devel") <= apprun_version < version.parse("v4.0.0"): runtime_setup = AppRunV3Setup(self.context) if not runtime_setup: diff --git a/appimagebuilder/modules/deploy/apt/venv.py b/appimagebuilder/modules/deploy/apt/venv.py index 89bcf547..83bd016b 100644 --- a/appimagebuilder/modules/deploy/apt/venv.py +++ b/appimagebuilder/modules/deploy/apt/venv.py @@ -23,7 +23,7 @@ from appimagebuilder.utils import shell from .package import Package -DEPENDS_ON = ["dpkg-deb", "apt-get", "apt-key", "fakeroot", "apt-cache"] +DEPENDS_ON = ["dpkg-deb", "apt-get", "fakeroot", "apt-cache"] class Venv: diff --git a/appimagebuilder/modules/deploy/pacman/venv.py b/appimagebuilder/modules/deploy/pacman/venv.py index f247d860..62bf0041 100644 --- a/appimagebuilder/modules/deploy/pacman/venv.py +++ b/appimagebuilder/modules/deploy/pacman/venv.py @@ -159,6 +159,7 @@ def _generate_config(self): f.write("DBPath = %s\n" % self._db_path) f.write("CacheDir = %s\n" % self._cache_dir) f.write("GPGDir = %s\n" % self._gpg_dir) + f.write("SigLevel = Required DatabaseOptional\n") if not self._repositories: f.write("Include = /etc/pacman.conf\n") @@ -224,7 +225,7 @@ def _run_command( # need to split the command into args _proc = subprocess.Popen( - shlex.split(command), stdout=stdout, stdin=sys.stdin, stderr=sys.stderr + shlex.split(command), stdout=stdout, stdin=subprocess.PIPE, stderr=sys.stderr ) if wait_for_completion: diff --git a/appimagebuilder/modules/generate/recipe_generator.py b/appimagebuilder/modules/generate/recipe_generator.py index 5bece795..dc95eebc 100644 --- a/appimagebuilder/modules/generate/recipe_generator.py +++ b/appimagebuilder/modules/generate/recipe_generator.py @@ -100,7 +100,7 @@ def _generate_v1_recipe(self, bundle_info, sections): }, "AppImage": { "arch": bundle_info.runtime_arch, - "comp": bundle_info.compression, + "comp": bundle_info.compression or "None", "update-information": bundle_info.update_string }, } diff --git a/appimagebuilder/modules/generate/recipe_sections/test_section_generator.py b/appimagebuilder/modules/generate/recipe_sections/test_section_generator.py index 139295bf..07a459a7 100644 --- a/appimagebuilder/modules/generate/recipe_sections/test_section_generator.py +++ b/appimagebuilder/modules/generate/recipe_sections/test_section_generator.py @@ -9,16 +9,17 @@ # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. - +from os import environ class TestSectionGenerator: def __init__(self): + remote_repo = environ["APPIMAGE_BUILDER_REMOTE_REPO_OWNER"] self.docker_images = [ - "appimagecrafters/tests-env:fedora-30", - "appimagecrafters/tests-env:debian-stable", - "appimagecrafters/tests-env:archlinux-latest", - "appimagecrafters/tests-env:centos-7", - "appimagecrafters/tests-env:ubuntu-xenial", + f"{remote_repo}/tests-env:fedora-44", + f"{remote_repo}/tests-env:debian-trixie", + f"{remote_repo}/tests-env:archlinux-latest", + f"{remote_repo}/tests-env:centos-10", + f"{remote_repo}/tests-env:ubuntu-resolute", ] def generate(self): diff --git a/appimagebuilder/modules/prime/appimage_primer.py b/appimagebuilder/modules/prime/appimage_primer.py index 683c1b04..f3af11f4 100644 --- a/appimagebuilder/modules/prime/appimage_primer.py +++ b/appimagebuilder/modules/prime/appimage_primer.py @@ -87,11 +87,11 @@ def _make_squashfs(self, appdir: pathlib.Path): # I think this is better than hardcoding the supported compressions # If the team behind AppImageKit adds a new compression # we wouldn't need to update the code and release a new version just for a new compression method - comp = self.config.comp() or "xz" + comp = self.config.comp() or "None" if comp != "None": - command += [ "-comp", comp] + command += [ "-comp", self.config.comp()] else: - command += ["-noDataCompression"] + command += ["-noI","-noD","-noF","-noX"] self.logger.info("Creating squashfs from AppDir") self.logger.debug(" ".join(command)) diff --git a/appimagebuilder/modules/setup/apprun_2/apprun2.py b/appimagebuilder/modules/setup/apprun_2/apprun2.py index ffcee5dc..7e0645c9 100644 --- a/appimagebuilder/modules/setup/apprun_2/apprun2.py +++ b/appimagebuilder/modules/setup/apprun_2/apprun2.py @@ -59,6 +59,7 @@ class AppRunV2SetupError(RuntimeError): class AppRunV2Setup: def __init__(self, context: Context, finder: Finder): self.context = context + self.logger = logging.getLogger("AppRunV2") recipe = context.recipe self.appdir_path = self.context.app_dir @@ -81,7 +82,8 @@ def __init__(self, context: Context, finder: Finder): self.path_mappings_env: Final = "APPDIR_PATH_MAPPINGS" - parsed_version = version.parse(self.apprun_version) + if self.apprun_version != "continuous": + parsed_version = version.parse(self.apprun_version) if self.apprun_version != "continuous" and ( parsed_version < version.parse("v2.0.0") or parsed_version > version.parse("v3.0.0") @@ -93,6 +95,30 @@ def __init__(self, context: Context, finder: Finder): def setup(self): self.move_glibc_to_compat_runtime() + ubuntu_compat_linker_folder = self.compat_runtime_path / "lib64" + + if ubuntu_compat_linker_folder.exists(): + logging.info( + "Linker expected under %s for Ubuntu; path should be a symlink..." + % ubuntu_compat_linker_folder.__str__() + ) + if ubuntu_compat_linker_folder.is_file(): + logging.info("Unlinking file at %s" % ubuntu_compat_linker_folder.__str__()) + ubuntu_compat_linker_folder.unlink() + elif not ubuntu_compat_linker_folder.is_symlink() and ubuntu_compat_linker_folder.is_dir(): + logging.info("Removing directory at %s" % ubuntu_compat_linker_folder.__str__()) + shutil.rmtree(ubuntu_compat_linker_folder) + linker_folder = self.finder.find_one( + "*/x86_64-linux-gnu/ld-linux*.so*", [Finder.is_file, Finder.is_elf_shared_lib] + ).parent + logging.info(f"Found linker at: {linker_folder.__str__()}") + logging.info( + "Creating symlink to %s at %s" + % (linker_folder.relative_to(self.appdir_path), ubuntu_compat_linker_folder.__str__()) + ) + symlink_dest = linker_folder.relative_to(ubuntu_compat_linker_folder.parent) + ubuntu_compat_linker_folder.symlink_to(symlink_dest) + runtime_env = self._configure_runtime_environment() scanner = ExecutablesScanner(self.appdir_path, self.finder) @@ -129,11 +155,15 @@ def _setup_path_mappings(self, runtime_env): def _patch_executables(self, executables, patcher: ExecutablesPatcher): preserve_files = self._get_preserve_files() for executable in executables: + logmsg = f"Executable: {executable.__str__()}" if Finder.list_does_not_contain_file(preserve_files, executable.path): if isinstance(executable, InterpretedExecutable): + logmsg += "... will handle as an InterpretedExecutable." patcher.patch_interpreted_executable(executable.path) else: + logmsg += "... will handle as a BinaryExecutable." patcher.patch_binary_executable(executable.path) + self.logger.debug(logmsg) def _find_embed_archs(self, executables): embed_archs = set() @@ -226,6 +256,7 @@ def _write_appdir_env(self, global_environment): "APPIMAGE_UUID": None, "APPDIR_EXEC_PATH": "$APPDIR/" + self.main_exec, "APPDIR_EXEC_ARGS": self.main_exec_args, + "_PYTHON_SUBPROCESS_USE_POSIX_SPAWN": "0", } ) diff --git a/appimagebuilder/modules/setup/apprun_2/executables_scanner.py b/appimagebuilder/modules/setup/apprun_2/executables_scanner.py index 8955a250..23c1fecf 100644 --- a/appimagebuilder/modules/setup/apprun_2/executables_scanner.py +++ b/appimagebuilder/modules/setup/apprun_2/executables_scanner.py @@ -59,7 +59,7 @@ def scan_file(self, path) -> [Executable]: ) break else: - if elf.has_magic_bytes(path) and elf.has_start_symbol(path): + if elf.has_magic_bytes(path) and elf.has_interp_section(path): arch = elf.get_arch(path) executable = BinaryExecutable(path, arch) binary_found = True diff --git a/appimagebuilder/modules/setup/apprun_binaries_resolver.py b/appimagebuilder/modules/setup/apprun_binaries_resolver.py index 6a33bedd..731d9937 100644 --- a/appimagebuilder/modules/setup/apprun_binaries_resolver.py +++ b/appimagebuilder/modules/setup/apprun_binaries_resolver.py @@ -26,6 +26,7 @@ import tarfile from pathlib import Path from urllib import request +from os import environ from appimagebuilder.modules.setup import apprun_utils @@ -90,8 +91,8 @@ def resolve_check_glibstdcpp_binary(self, arch): def _download_release_asset(self, asset, path): path.parent.mkdir(parents=True, exist_ok=True) - - url = "https://github.com/AppImageCrafters/AppRun/releases/download/%s/%s" % ( + url = "https://github.com/%s/AppRun/releases/download/%s/%s" % ( + environ.get("APPIMAGE_BUILDER_REMOTE_REPO_OWNER", "AppImageCrafters"), self.apprun_version, asset, ) diff --git a/appimagebuilder/orchestrator.py b/appimagebuilder/orchestrator.py index 50aaf4f8..a41ce89c 100644 --- a/appimagebuilder/orchestrator.py +++ b/appimagebuilder/orchestrator.py @@ -178,8 +178,7 @@ def _extract_v1_recipe_context(self, args, recipe): app_info=app_info, update_string=recipe.AppImage["update-information"]() or "guess", runtime_arch=recipe.AppImage.arch(), - compression=recipe.AppImage.comp() or "xz", - sign_key=recipe.AppImage["sign-key"]() or None, + compression=recipe.AppImage.comp() or "zstd", file_name=recipe.AppImage["file_name"] or None, ) return Context( diff --git a/appimagebuilder/recipe/loader.py b/appimagebuilder/recipe/loader.py index 4263ab7f..d75ebbbb 100644 --- a/appimagebuilder/recipe/loader.py +++ b/appimagebuilder/recipe/loader.py @@ -43,7 +43,7 @@ def __init__(self): self._tag = "!ENV" # pattern for global vars: look for ${word} - pattern = re.compile(".*?\${(\w+)}.*?") + pattern = re.compile(r".*?\${(\w+)}.*?") self._loader.add_implicit_resolver(self._tag, pattern, None) diff --git a/appimagebuilder/utils/elf.py b/appimagebuilder/utils/elf.py index 7d2b4de3..1af18bec 100644 --- a/appimagebuilder/utils/elf.py +++ b/appimagebuilder/utils/elf.py @@ -9,11 +9,7 @@ # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. -import shutil -import subprocess - -from appimagebuilder.utils import shell - +import lief def has_magic_bytes(path): with open(path, "rb") as f: @@ -30,41 +26,37 @@ def has_soname(path): Elf must have a SONAME tag in the dynamic section """ - readelf_path = shell.require_executable("readelf") - # note: don't use `shell=True` as it forces the usage of the system shell which cases a failure if readelf is embed. - _proc = subprocess.run( - [readelf_path, "-d", path], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, + try: + binary = lief.parse(str(path)) + except Exception: + return False + + if binary is None: + return False + + return any( + entry.tag == lief.ELF.DynamicEntry.TAG.SONAME + for entry in binary.dynamic_entries ) - has_soname_tag = False - if _proc.returncode == 0: - output = _proc.stdout.decode("utf-8") - has_soname_tag = "SONAME" in output - return has_soname_tag - -def has_start_symbol(path): +def has_interp_section(path): """ Determine if an elf is executable - The `_start` symbol must be present in every runnable elf file. - http://www.dbp-consulting.com/tutorials/debugging/linuxProgramStartup.html + Linux executables often lack a `_start_` if they've been stripped. The kernel usually starts from a memory address instead. What we care about is patching the dynamic linker reference, so let's look for that instead. + + https://unix.stackexchange.com/questions/454726/where-is-start-symbol-in-cat-executable """ - readelf_path = shell.require_executable("readelf") - # note: don't use `shell=True` as it forces the usage of the system shell which cases a failure if readelf is embed. - _proc = subprocess.run( - [readelf_path, "-s", path], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE, - ) + try: + binary = lief.parse(str(path)) + except Exception: + return False + if binary is None: + return False + return binary.has(lief.ELF.Segment.TYPE.INTERP) and not has_soname(path) + - has_main_method = False - if _proc.returncode == 0: - output = _proc.stdout.decode("utf-8") - has_main_method = "_start" in output - return has_main_method def get_arch(path): diff --git a/appimagebuilder/utils/finder.py b/appimagebuilder/utils/finder.py index a46d4397..97c92a70 100644 --- a/appimagebuilder/utils/finder.py +++ b/appimagebuilder/utils/finder.py @@ -69,7 +69,7 @@ def is_elf_shared_lib(path: pathlib.Path): @staticmethod def is_dynamically_linked_executable(path: pathlib.Path): try: - return appimagebuilder.utils.elf.has_start_symbol(path) + return appimagebuilder.utils.elf.has_interp_section(path) except shell.CommandNotFoundError: raise except: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..079f98d7 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,44 @@ +[build-system] +requires = ["setuptools>=64", "setuptools-scm>=8"] +build-backend = "setuptools.build_meta" + +[project] +name = "appimage-builder" +dynamic = ["version"] +description = "Recipe based AppImage creation meta-tool" +readme = "README.md" +license = "MIT" +requires-python = ">=3.6" +authors = [ + { name = "Alexis Lopez Zubieta", email = "contact@azubieta.net" }, +] +dependencies = [ + "docker", + "emrichen", + "libconf", + "lief", + "packaging", + "pydpkg", + "python-gnupg", + "pyyaml>=5", + "questionary", + "requests", + "roam", + "ruamel.yaml", + "schema", + "urllib3", +] + +[project.scripts] +appimage-builder = "appimagebuilder.__main__:__main__" + +[project.urls] +"Bug Tracker" = "https://github.com/AppImageCrafters/appimage-builder/issues" +Documentation = "https://appimage-builder.readthedocs.io" +Homepage = "https://github.com/AppImageCrafters/appimage-builder" +"Source Code" = "https://github.com/AppImageCrafters/appimage-builder" + +[tool.setuptools_scm] + +[tool.setuptools] +packages = ["appimagebuilder", "tests"] \ No newline at end of file diff --git a/recipes/appimage-builder/AppImageBuilder-debug.yml b/recipes/appimage-builder/AppImageBuilder-debug.yml new file mode 100644 index 00000000..d2546374 --- /dev/null +++ b/recipes/appimage-builder/AppImageBuilder-debug.yml @@ -0,0 +1,95 @@ +version: 1 +script: + # Remove any previous build + - rm -rf $TARGET_APPDIR || true + - mkdir -p $TARGET_APPDIR/usr/share/icons/hicolor/scalable/apps $TARGET_APPDIR/usr/bin $TARGET_APPDIR/opt "$BUILD_DIR" + - cp ../../resources/appimage-builder.svg $TARGET_APPDIR/usr/share/icons/hicolor/scalable/apps + - cp ../../resources/application-vnd.appimage.svg $TARGET_APPDIR/usr/share/icons/hicolor/scalable/apps + +AppDir: + app_info: + id: org.appimage-crafters.appimage-builder + name: appimage-builder + icon: appimage-builder + version: 'latest' + # Set the python executable as entry point + exec: usr/bin/python{{APPIMAGE_BUILDER_PY_VERSION}} + # Set the application main script path as argument. Use '$@' to forward CLI parameters + exec_args: "$APPDIR/usr/local/bin/appimage-builder $@" + + apt: + arch: amd64 + sources: + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' + + include: + - bash + - coreutils + - gnu-coreutils + - coreutils-from-gnu + - binutils + - util-linux + - file + - desktop-file-utils + - fakeroot + - libgdk-pixbuf-2.0-dev + - patchelf + - python{{APPIMAGE_BUILDER_PY_VERSION}}-minimal + - squashfs-tools + - strace + - zsync + exclude: + - coreutils-from-uutils + - rust-coreutils + + after_bundle: | + # configure tools + mkdir -p $TARGET_APPDIR/bin + pushd $TARGET_APPDIR/usr/bin/ + ln -sr ./fakeroot-sysv fakeroot + ln -sr ./bash sh + ln -sr ./sh $TARGET_APPDIR/bin/sh + + # install appimage-builder + popd + python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" ../../ + python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" certifi + + runtime: + debug: true + version: "continuous" + env: + # Set python home + # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME + PYTHONHOME: '${APPDIR}/usr' + # Path to the site-packages dir or other modules dirs + # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH + PYTHONPATH: '${APPDIR}/usr/lib/python{{APPIMAGE_BUILDER_PY_VERSION}}/site-packages' + # SSL Certificates are placed in a different location for every system therefore we ship our own copy + SSL_CERT_FILE: '${APPDIR}/usr/lib/python{{APPIMAGE_BUILDER_PY_VERSION}}/site-packages/certifi/cacert.pem' + + test: + fedora: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 + command: ./AppRun --help + debian: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie + command: ./AppRun --help + arch: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest + command: ./AppRun --help + centos: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 + command: ./AppRun --help + ubuntu: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute + command: ./AppRun --help + +AppImage: + file_name: "appimage-builder-{{APPIMAGE_BUILDER_VERSION}}-x86_64-DEBUG.AppImage" + update-information: 'gh-releases-zsync|AppImageCrafters|appimage-builder|latest|-*x86_64.AppImage.zsync' + sign-key: None + arch: x86_64 + comp: zstd diff --git a/recipes/appimage-builder/AppImageBuilder.yml b/recipes/appimage-builder/AppImageBuilder.yml index be24d4fd..316c969f 100644 --- a/recipes/appimage-builder/AppImageBuilder.yml +++ b/recipes/appimage-builder/AppImageBuilder.yml @@ -17,69 +17,77 @@ AppDir: icon: appimage-builder version: 'latest' # Set the python executable as entry point - exec: usr/bin/python3 + exec: usr/bin/python{{APPIMAGE_BUILDER_PY_VERSION}} # Set the application main script path as argument. Use '$@' to forward CLI parameters exec_args: "$APPDIR/usr/local/bin/appimage-builder $@" apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse' - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920D1991BC93C' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - bash - coreutils + - gnu-coreutils + - coreutils-from-gnu - binutils - util-linux - file - desktop-file-utils - fakeroot - - libgdk-pixbuf2.0-dev + - libgdk-pixbuf-2.0-dev - patchelf - - python3.10 + - python{{APPIMAGE_BUILDER_PY_VERSION}}-minimal - squashfs-tools - strace - zsync - exclude: [] + exclude: + - coreutils-from-uutils + - rust-coreutils after_bundle: | - # configure tools - ln -s fakeroot-sysv $TARGET_APPDIR/usr/bin/fakeroot - ln -s bash $TARGET_APPDIR/bin/sh + # configure tools + mkdir -p $TARGET_APPDIR/bin + pushd $TARGET_APPDIR/usr/bin/ + ln -sr ./fakeroot-sysv fakeroot + ln -sr ./bash sh + ln -sr ./sh $TARGET_APPDIR/bin/sh # install appimage-builder - python3.10 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install ../../ - python3.10 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" install certifi + popd + python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" ../../ + python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" certifi runtime: - version: "v2.0.0" + version: "continuous" env: # Set python home # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME PYTHONHOME: '${APPDIR}/usr' # Path to the site-packages dir or other modules dirs # See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONPATH - PYTHONPATH: '${APPDIR}/usr/lib/python3.10/site-packages' + PYTHONPATH: '${APPDIR}/usr/lib/python{{APPIMAGE_BUILDER_PY_VERSION}}/site-packages' # SSL Certificates are placed in a different location for every system therefore we ship our own copy - SSL_CERT_FILE: '${APPDIR}/usr/lib/python3.10/site-packages/certifi/cacert.pem' + SSL_CERT_FILE: '${APPDIR}/usr/lib/python{{APPIMAGE_BUILDER_PY_VERSION}}/site-packages/certifi/cacert.pem' test: fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun --help debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun --help arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: ./AppRun --help centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun --help ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun --help AppImage: @@ -87,4 +95,4 @@ AppImage: update-information: 'gh-releases-zsync|AppImageCrafters|appimage-builder|latest|-*x86_64.AppImage.zsync' sign-key: None arch: x86_64 - comp: gzip + comp: zstd diff --git a/recipes/bash-files/AppImageBuilder.yml b/recipes/bash-files/AppImageBuilder.yml index e6ba1637..08489f93 100644 --- a/recipes/bash-files/AppImageBuilder.yml +++ b/recipes/bash-files/AppImageBuilder.yml @@ -25,27 +25,26 @@ AppDir: runtime: arch: [ x86_64, i386 ] - + version: continuous test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie before_command: "pwd" command: "./AppRun --version" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun --version" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun --version" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun --version" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun --version" AppImage: arch: x86_64 - comp: gzip diff --git a/recipes/bash-pacman/AppImageBuilder.yml b/recipes/bash-pacman/AppImageBuilder.yml index effad926..b34e8cc9 100644 --- a/recipes/bash-pacman/AppImageBuilder.yml +++ b/recipes/bash-pacman/AppImageBuilder.yml @@ -15,7 +15,7 @@ AppDir: Architecture: aarch64 repositories: core: - - http://mirror.archlinuxarm.org/$arch/$repo + - https://mirror.archlinuxarm.org/$arch/$repo include: - bash exclude: @@ -34,24 +34,23 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun --version" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun --version" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun --version" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun --version" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun --version" AppImage: update-information: None sign-key: None - arch: x86_64 - comp: gzip \ No newline at end of file + arch: x86_64 \ No newline at end of file diff --git a/recipes/bash/AppImageBuilder.yml b/recipes/bash/AppImageBuilder.yml index 5c2ca863..e8ffea7f 100644 --- a/recipes/bash/AppImageBuilder.yml +++ b/recipes/bash/AppImageBuilder.yml @@ -1,34 +1,43 @@ version: 1 script: - echo $PWD - - rm -rf $TARGET_APPDIR | true - mkdir -p $TARGET_APPDIR/bin - cp run_tests.sh $TARGET_APPDIR - cp -r tests $TARGET_APPDIR - - ln -s ../usr/bin/env $TARGET_APPDIR/tests/test_internal_binary_env - - ln -s /usr/bin/env $TARGET_APPDIR/tests/test_external_binary_env - - ln -s bash $TARGET_APPDIR/bin/nubash AppDir: app_info: id: org.gnu.bash - version: 4.4.20 + name: bash + version: 5.2.21 exec: bin/bash + exec_args: "$@" apt: arch: [ amd64, i386 ] allow_unauthenticated: true sources: - - sourceline: 'deb http://archive.ubuntu.com/ubuntu bionic main' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb https://archive.ubuntu.com/ubuntu resolute main' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - bash - - coreutils + - gnu-coreutils + - coreutils-from-gnu - libc6 - libc6:i386 exclude: - libpcre3 + - coreutils-from-uutils + - rust-coreutils + + after_bundle: | + cd $TARGET_APPDIR + ln -sr usr/bin/env tests/test_internal_binary_env + ln -sr /usr/bin/env tests/test_external_binary_env + mkdir -p bin + ln -sr usr/bin/bash bin/bash + ln -sr bin/bash bin/nubash files: exclude: @@ -44,27 +53,26 @@ AppDir: runtime: arch: [ x86_64, i386 ] - + version: continuous test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie before_command: "pwd" command: "./AppRun ./run_tests.sh" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun ./run_tests.sh" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun ./run_tests.sh" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun ./run_tests.sh" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun ./run_tests.sh" - AppImage: + comp: zstd arch: x86_64 - comp: gzip diff --git a/recipes/bash/bash-apprun-v3.yml b/recipes/bash/bash-apprun-v3.yml index bc758ab4..fa62e3b7 100644 --- a/recipes/bash/bash-apprun-v3.yml +++ b/recipes/bash/bash-apprun-v3.yml @@ -1,33 +1,42 @@ version: 1 script: - echo $PWD - - rm -rf $TARGET_APPDIR | true - mkdir -p $TARGET_APPDIR/bin - cp run_tests.sh $TARGET_APPDIR - cp -r tests $TARGET_APPDIR - - ln -s ../usr/bin/env $TARGET_APPDIR/tests/test_internal_binary_env - - ln -s /usr/bin/env $TARGET_APPDIR/tests/test_external_binary_env - - ln -s bash $TARGET_APPDIR/bin/nubash AppDir: app_info: id: org.gnu.bash - version: 4.4.20 + name: bash + version: 5.2.21 exec: bin/bash apt: arch: [ amd64, i386 ] allow_unauthenticated: true sources: - - sourceline: 'deb http://archive.ubuntu.com/ubuntu bionic main' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb https://archive.ubuntu.com/ubuntu resolute main' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - bash - - coreutils + - gnu-coreutils + - coreutils-from-gnu - libc6 - libc6:i386 + exclude: - libpcre3 + - coreutils-from-uutils + - rust-coreutils + + after_bundle: | + cd $TARGET_APPDIR + ln -sr usr/bin/env tests/test_internal_binary_env + ln -sr /usr/bin/env tests/test_external_binary_env + mkdir -p bin + ln -sr usr/bin/bash bin/bash + ln -sr bin/bash bin/nubash files: exclude: @@ -48,22 +57,23 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie before_command: "pwd" command: "./AppRun ./run_tests.sh" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun ./run_tests.sh" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun ./run_tests.sh" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun ./run_tests.sh" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun ./run_tests.sh" AppImage: + comp: zstd arch: x86_64 diff --git a/recipes/gimp/AppImageBuilder.yml b/recipes/gimp/AppImageBuilder.yml index 783a07a2..6041a1af 100644 --- a/recipes/gimp/AppImageBuilder.yml +++ b/recipes/gimp/AppImageBuilder.yml @@ -13,12 +13,13 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - - coreutils + - gnu-coreutils + - coreutils-from-gnu - gimp - libgtk2.0-0 - librsvg2-common @@ -74,6 +75,8 @@ AppDir: exclude: - adwaita-icon-theme - humanity-icon-theme + - coreutils-from-uutils + - rust-coreutils files: exclude: @@ -85,7 +88,7 @@ AppDir: - usr/share/doc/*/TODO.* - usr/include runtime: - + version: continuous path_mappings: - /etc/gimp:$APPDIR/etc/gimp - /usr/lib/gimp:$APPDIR/usr/lib/gimp @@ -103,18 +106,17 @@ AppDir: GEGL_PATH: $APPDIR/usr/lib/x86_64-linux-gnu/gegl-0.4 test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" AppImage: arch: x86_64 - comp: gzip diff --git a/recipes/gnome-calculator/AppImageBuilder.yml b/recipes/gnome-calculator/AppImageBuilder.yml index c790a235..07c50b44 100644 --- a/recipes/gnome-calculator/AppImageBuilder.yml +++ b/recipes/gnome-calculator/AppImageBuilder.yml @@ -13,8 +13,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - gnome-calculator @@ -27,6 +27,9 @@ AppDir: - ubuntu-mono - fonts-*-core + runtime: + version: "continuous" + files: exclude: - usr/lib/x86_64-linux-gnu/gconv @@ -38,19 +41,19 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" @@ -58,4 +61,3 @@ AppImage: update-information: None sign-key: None arch: x86_64 - comp: gzip diff --git a/recipes/hello-world-gtk/AppImageBuilder.yml b/recipes/hello-world-gtk/AppImageBuilder.yml index 80f1e810..dec1cb16 100644 --- a/recipes/hello-world-gtk/AppImageBuilder.yml +++ b/recipes/hello-world-gtk/AppImageBuilder.yml @@ -17,8 +17,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - libgtk-3-0 @@ -31,6 +31,9 @@ AppDir: - ubuntu-mono - fonts-*-core + runtime: + version: "continuous" + files: exclude: - usr/lib/x86_64-linux-gnu/gconv @@ -42,21 +45,21 @@ AppDir: test: ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" env: LD_DEBUG: libs debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" @@ -64,4 +67,3 @@ AppImage: update-information: None sign-key: None arch: x86_64 - comp: gzip diff --git a/recipes/hello-world-qt5/AppImageBuilder.yml b/recipes/hello-world-qt5/AppImageBuilder.yml index a7b983f3..78284c1e 100644 --- a/recipes/hello-world-qt5/AppImageBuilder.yml +++ b/recipes/hello-world-qt5/AppImageBuilder.yml @@ -19,10 +19,10 @@ AppDir: - amd64 allow_unauthenticated: true sources: - - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse - - sourceline: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse - - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse - - sourceline: deb http://archive.neon.kde.org/user focal main + - sourceline: deb https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse + - sourceline: deb https://security.ubuntu.com/ubuntu/ resolute-security main restricted universe multiverse + - sourceline: deb https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse + - sourceline: deb https://archive.neon.kde.org/user resolute main include: - libbz2-1.0 - libcom-err2 @@ -47,22 +47,21 @@ AppDir: - usr/share/doc/*/NEWS.* - usr/share/doc/*/TODO.* test: - fedora-30: - image: appimagecrafters/tests-env:fedora-30 + fedora-44: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun - debian-stable: - image: appimagecrafters/tests-env:debian-stable + debian-trixie: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun archlinux-latest: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: ./AppRun - centos-7: - image: appimagecrafters/tests-env:centos-7 + centos-10: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun - ubuntu-xenial: - image: appimagecrafters/tests-env:ubuntu-xenial + ubuntu-resolute: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun AppImage: arch: x86_64 update-information: guess - comp: gzip diff --git a/recipes/hello-world-qt5/recipe-with-apprun-v3.yml b/recipes/hello-world-qt5/recipe-with-apprun-v3.yml index 06315d7d..78fa073f 100644 --- a/recipes/hello-world-qt5/recipe-with-apprun-v3.yml +++ b/recipes/hello-world-qt5/recipe-with-apprun-v3.yml @@ -19,10 +19,10 @@ AppDir: - amd64 allow_unauthenticated: true sources: - - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse - - sourceline: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse - - sourceline: deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse - - sourceline: deb http://archive.neon.kde.org/user focal main + - sourceline: deb https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse + - sourceline: deb https://security.ubuntu.com/ubuntu/ resolute-security main restricted universe multiverse + - sourceline: deb https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse + - sourceline: deb https://archive.neon.kde.org/user resolute main include: - libbz2-1.0 - libcom-err2 @@ -53,20 +53,20 @@ AppDir: version: v3.0.0-devel-1 debug: true test: - fedora-30: - image: appimagecrafters/tests-env:fedora-30 + fedora-44: + image: Lord-Kamina/tests-env:fedora-44 command: ./AppRun - debian-stable: - image: appimagecrafters/tests-env:debian-stable + debian-trixie: + image: Lord-Kamina/tests-env:debian-trixie command: ./AppRun archlinux-latest: - image: appimagecrafters/tests-env:archlinux-latest + image: Lord-Kamina/tests-env:archlinux-latest command: ./AppRun - centos-7: - image: appimagecrafters/tests-env:centos-7 + centos-10: + image: Lord-Kamina/tests-env:centos-10 command: ./AppRun - ubuntu-xenial: - image: appimagecrafters/tests-env:ubuntu-xenial + ubuntu-resolute: + image: Lord-Kamina/tests-env:ubuntu-resolute command: ./AppRun AppImage: arch: x86_64 diff --git a/recipes/hello-world-qt6/AppImageBuilder.yml b/recipes/hello-world-qt6/AppImageBuilder.yml index 28565018..137ba77c 100644 --- a/recipes/hello-world-qt6/AppImageBuilder.yml +++ b/recipes/hello-world-qt6/AppImageBuilder.yml @@ -20,10 +20,10 @@ AppDir: - amd64 allow_unauthenticated: true sources: - - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse - - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse - - sourceline: deb http://mx.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse - - sourceline: deb http://security.ubuntu.com/ubuntu jammy-security main restricted universe multiverse + - sourceline: deb https://mx.archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse + - sourceline: deb https://mx.archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse + - sourceline: deb https://mx.archive.ubuntu.com/ubuntu/ resolute-backports main restricted universe multiverse + - sourceline: deb https://security.ubuntu.com/ubuntu/ resolute-security main restricted universe multiverse include: - libcap2:amd64 - libcom-err2:amd64 @@ -87,24 +87,23 @@ AppDir: # and the bundle may not work in such systems - strip --remove-section=.note.ABI-tag $TARGET_APPDIR/usr/lib/x86_64-linux-gnu/libQt6Core.so.6 test: - centos-7: - image: appimagecrafters/tests-env:centos-7 + centos-10: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun - fedora-30: - image: appimagecrafters/tests-env:fedora-30 + fedora-44: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun - ubuntu-xenial: - image: appimagecrafters/tests-env:ubuntu-bionic + ubuntu-resolute: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun - debian-stable: - image: appimagecrafters/tests-env:debian-stable + debian-trixie: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun archlinux-latest: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: ./AppRun AppImage: arch: x86_64 update-information: guess - comp: gzip diff --git a/recipes/kcalc-files/AppImageBuilder.yml b/recipes/kcalc-files/AppImageBuilder.yml index a5a55c27..7d594c5e 100644 --- a/recipes/kcalc-files/AppImageBuilder.yml +++ b/recipes/kcalc-files/AppImageBuilder.yml @@ -158,24 +158,24 @@ AppDir: - usr/share/doc/*/changelog.* - usr/share/doc/*/NEWS.* - usr/share/doc/*/TODO.* - runtime: {} + runtime: + version: v2.0.0-alpha test: - fedora-30: - image: appimagecrafters/tests-env:fedora-30 + fedora-44: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun - debian-stable: - image: appimagecrafters/tests-env:debian-stable + debian-trixie: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun archlinux-latest: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: ./AppRun - centos-7: - image: appimagecrafters/tests-env:centos-7 + centos-10: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun - ubuntu-xenial: - image: appimagecrafters/tests-env:ubuntu-xenial + ubuntu-resolute: + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun AppImage: arch: x86_64 update-information: guess - comp: gzip diff --git a/recipes/kcalc-nbc/AppImageBuilder.yml b/recipes/kcalc-nbc/AppImageBuilder.yml index 46e747f3..454934ac 100644 --- a/recipes/kcalc-nbc/AppImageBuilder.yml +++ b/recipes/kcalc-nbc/AppImageBuilder.yml @@ -14,8 +14,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - kcalc @@ -37,21 +37,24 @@ AppDir: # exclude glibc for a smaller but non backward compatible bundles - opt/libc + runtime: + version: "continuous" + test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" @@ -59,4 +62,3 @@ AppImage: update-information: None sign-key: None arch: x86_64 - comp: gzip diff --git a/recipes/kcalc/AppImageBuilder.yml b/recipes/kcalc/AppImageBuilder.yml index 9adf8cdb..35913e1b 100644 --- a/recipes/kcalc/AppImageBuilder.yml +++ b/recipes/kcalc/AppImageBuilder.yml @@ -16,10 +16,10 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse' - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-backports main restricted universe multiverse' include: - kcalc @@ -41,22 +41,24 @@ AppDir: - usr/share/doc/*/NEWS.* - usr/share/doc/*/TODO.* - usr/share/metainfo/org.kde.kcalc.appdata.xml + runtime: + version: "continuous" test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" @@ -64,4 +66,3 @@ AppImage: update-information: None sign-key: None arch: x86_64 - comp: gzip diff --git a/recipes/parole/AppImageBuilder.yml b/recipes/parole/AppImageBuilder.yml index a9be502f..24506aee 100644 --- a/recipes/parole/AppImageBuilder.yml +++ b/recipes/parole/AppImageBuilder.yml @@ -13,8 +13,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - parole @@ -25,7 +25,8 @@ AppDir: - gstreamer1.0-plugins-bad - gstreamer1.0-plugins-ugly - gstreamer1.0-pulseaudio - - coreutils + - gnu-coreutils + - coreutils-from-gnu - dash - dbus - libdbus-1-3 @@ -40,23 +41,25 @@ AppDir: - usr/share/doc/*/NEWS.* - usr/share/doc/*/TODO.* - usr/share/metainfo/org.kde.kcalc.appdata.xml + - coreutils-from-uutils + - rust-coreutils + test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "dbus-launch ./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "dbus-launch ./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "dbus-launch ./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "dbus-launch ./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "dbus-launch ./AppRun" AppImage: arch: x86_64 - comp: gzip diff --git a/recipes/pyqt5/AppImageBuilder.yml b/recipes/pyqt5/AppImageBuilder.yml index 4694f882..ef1a9df3 100644 --- a/recipes/pyqt5/AppImageBuilder.yml +++ b/recipes/pyqt5/AppImageBuilder.yml @@ -24,8 +24,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - python3 @@ -36,6 +36,7 @@ AppDir: exclude: [] runtime: + version: "continuous" env: PATH: '${APPDIR}/usr/bin:${PATH}' # Set python home @@ -47,23 +48,22 @@ AppDir: test: fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: ./AppRun centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun AppImage: update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync' sign-key: None - arch: x86_64 - comp: gzip \ No newline at end of file + arch: x86_64 \ No newline at end of file diff --git a/recipes/python/AppImageBuilder.yml b/recipes/python/AppImageBuilder.yml index b9afcd5d..20a907e7 100644 --- a/recipes/python/AppImageBuilder.yml +++ b/recipes/python/AppImageBuilder.yml @@ -20,39 +20,41 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - python3 - - coreutils - exclude: [ ] + - gnu-coreutils + - coreutils-from-gnu + exclude: + - coreutils-from-uutils + - rust-coreutils runtime: + version: "continuous" env: EXPORTED_BINARIES: "$APPDIR/usr/bin/env" test: fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" AppImage: update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync' sign-key: None - arch: x86_64 - comp: gzip - \ No newline at end of file + arch: x86_64 \ No newline at end of file diff --git a/recipes/qmlscene/AppImageBuilder.yml b/recipes/qmlscene/AppImageBuilder.yml index 5bcbfab5..5eebaaef 100644 --- a/recipes/qmlscene/AppImageBuilder.yml +++ b/recipes/qmlscene/AppImageBuilder.yml @@ -16,11 +16,11 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://mx.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' - - sourceline: 'deb [arch=amd64] http://mx.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' - - sourceline: 'deb http://archive.neon.kde.org/user bionic main' - key_url: 'http://archive.neon.kde.org/public.key' + - sourceline: 'deb [arch=amd64] https://mx.archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://mx.archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' + - sourceline: 'deb https://archive.neon.kde.org/user resolute main' + key_url: 'https://archive.neon.kde.org/public.key' include: - qmlscene @@ -65,24 +65,22 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" AppImage: update-information: None sign-key: None - arch: x86_64 - comp: gzip - \ No newline at end of file + arch: x86_64 \ No newline at end of file diff --git a/recipes/tkinter/AppImageBuilder.yml b/recipes/tkinter/AppImageBuilder.yml index 37021e3f..3d50c4a8 100644 --- a/recipes/tkinter/AppImageBuilder.yml +++ b/recipes/tkinter/AppImageBuilder.yml @@ -24,8 +24,8 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - libpng16-16 @@ -48,27 +48,25 @@ AppDir: APPDIR_LIBRARY_PATH: '${APPDIR}/usr/lib:${APPDIR}/usr/lib/x86_64-linux-gnu:${APPDIR}/lib/x86_64-linux-gnu' TCL_LIBRARY: '${APPDIR}/usr/share/tcltk/tcl8.6' TK_LIBRARY: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6' - TKPATH: '{APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6' + TKPATH: '${APPDIR}/usr/lib/tcltk/x86_64-linux-gnu/tk8.6' test: arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "LD_DEBUG=libs ./AppRun 2>&1 | grep 'init: '" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: ./AppRun debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: ./AppRun centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: ./AppRun ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: ./AppRun AppImage: update-information: 'gh-releases-zsync|AppImageCrafters|python-appimage-example|latest|python-appimage-*x86_64.AppImage.zsync' sign-key: None - arch: x86_64 - comp: gzip - \ No newline at end of file + arch: x86_64 \ No newline at end of file diff --git a/recipes/vlc/AppImageBuilder.yml b/recipes/vlc/AppImageBuilder.yml index e723752e..51a12343 100644 --- a/recipes/vlc/AppImageBuilder.yml +++ b/recipes/vlc/AppImageBuilder.yml @@ -14,32 +14,31 @@ AppDir: apt: arch: amd64 sources: - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' - - sourceline: 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' + - sourceline: 'deb [arch=amd64] https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' include: - vlc test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun" AppImage: arch: x86_64 update-information: None sign-key: None - comp: gzip diff --git a/recipes/wget/AppImageBuilder.yml b/recipes/wget/AppImageBuilder.yml index 401bcd8e..92f2045f 100644 --- a/recipes/wget/AppImageBuilder.yml +++ b/recipes/wget/AppImageBuilder.yml @@ -13,8 +13,8 @@ AppDir: apt: arch: !ENV ${TARGET_ARCH} sources: - - sourceline: !ENV 'deb [arch=${TARGET_ARCH}] http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' + - sourceline: !ENV 'deb [arch=${TARGET_ARCH}] https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' include: - wget @@ -37,19 +37,19 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun --version" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun --version" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun --version" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun --version" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun --version" AppImage: @@ -57,4 +57,3 @@ AppImage: update-information: None sign-key: None file_name: !ENV 'wget-${APP_VERSION}-${TARGET_ARCH}.AppImage' - comp: gzip diff --git a/recipes/wine/AppImageBuilder.yml b/recipes/wine/AppImageBuilder.yml index 4bfe0503..042fba0c 100644 --- a/recipes/wine/AppImageBuilder.yml +++ b/recipes/wine/AppImageBuilder.yml @@ -11,11 +11,11 @@ AppDir: apt: arch: [amd64, i386] sources: - - sourceline: 'deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse' - - sourceline: 'deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse' - - sourceline: 'deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse' - key_url: 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32' - - sourceline: 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main' + - sourceline: 'deb https://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse' + - sourceline: 'deb https://archive.ubuntu.com/ubuntu/ resolute-updates main restricted universe multiverse' + - sourceline: 'deb https://archive.ubuntu.com/ubuntu/ resolute-backports main restricted universe multiverse' + key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c' + - sourceline: 'deb https://dl.winehq.org/wine-builds/ubuntu/ resolute main' key_url: 'https://dl.winehq.org/wine-builds/winehq.key' include: @@ -38,24 +38,23 @@ AppDir: test: debian: - image: appimagecrafters/tests-env:debian-stable + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:debian-trixie command: "./AppRun --version" centos: - image: appimagecrafters/tests-env:centos-7 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:centos-10 command: "./AppRun --version" arch: - image: appimagecrafters/tests-env:archlinux-latest + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:archlinux-latest command: "./AppRun --version" fedora: - image: appimagecrafters/tests-env:fedora-30 + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:fedora-44 command: "./AppRun --version" ubuntu: - image: appimagecrafters/tests-env:ubuntu-xenial + image: ${APPIMAGE_BUILDER_REMOTE_REPO_OWNER}/tests-env:ubuntu-resolute command: "./AppRun --version" AppImage: update-information: None sign-key: None arch: x86_64 - comp: gzip diff --git a/requirements.txt b/requirements.txt index e75871e1..07a8d063 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,42 +1,42 @@ -arpy==2.3.0 -certifi==2023.7.22 -cffi==1.16.0 -charset-normalizer==3.3.0 -configparser==6.0.0 -contextlib2==21.6.0 -cryptography==42.0.4 -decorator==5.1.1 -distlib==0.3.7 -docker==6.1.3 +arpy==2.4.0 +certifi==2026.10.23 +cffi==2.1.1 +charset-normalizer==3.5.2 +#configparser==latest +#contextlib2==21.6.0 +cryptography==50.0.2 +decorator==5.3.1 +distlib==0.4.4 +docker==7.2.0 emrichen==0.4.0 -filelock==3.12.4 -idna==3.7 +filelock==4.2.4 +idna==3.20 jsonpath-rw==1.4.0 libconf==2.0.1 -lief==0.12.2 -packaging==23.2 +lief==1.0.0 +packaging==26.3 PGPy==0.6.0 -pipenv==2023.10.3 -platformdirs==3.11.0 +pipenv==2026.10.2 +platformdirs==4.13.5 ply==3.11 -prompt-toolkit==3.0.36 -pyaml==21.10.1 -pyasn1==0.5.0 -pycparser==2.21 -pydpkg==1.9.2 -PyMySQL==1.1.0 -python-gnupg==0.4.9 -PyYAML==6.0.1 -questionary==2.0.1 -requests==2.31.0 +prompt_toolkit==3.0.53 +pyaml==26.7.0 +pyasn1==0.6.4 +pycparser==3.12 +pydpkg==1.9.5 +PyMySQL==1.2.3 +python-gnupg==0.5.7 +PyYAML==6.0.3 +questionary==2.1.1 +requests==2.34.2 roam==0.3.1 -ruamel.yaml==0.17.35 -ruamel.yaml.clib==0.2.8 -schema==0.7.5 +ruamel.yaml==0.19.1 +schema==0.7.8 +setuptools==84.2.1 shutils==0.1.0 -six==1.16.0 -urllib3==1.26.18 -virtualenv==20.24.5 -wcwidth==0.2.8 -websocket-client==1.6.4 -zstandard==0.19.0 +six==1.17.0 +urllib3==2.8.0 +virtualenv==21.14.13 +wcwidth==0.9.3 +websocket-client==1.9.2 +zstandard==0.25.0 \ No newline at end of file diff --git a/setup.py b/setup.py deleted file mode 100644 index 0fa180d2..00000000 --- a/setup.py +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- -# Copyright 2020 Alexis Lopez Zubieta -# -# Permission is hereby granted, free of charge, to any person obtaining a -# copy of this software and associated documentation files (the "Software"), -# to deal in the Software without restriction, including without limitation the -# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -# sell copies of the Software, and to permit persons to whom the Software is -# furnished to do so, subject to the following conditions: -# -# The above copyright notice and this permission notice shall be included in -# all copies or substantial portions of the Software. - -import setuptools - -with open("README.md", "r", encoding="utf-8") as fh: - long_description = fh.read() - -setuptools.setup( - name="appimage_builder", - use_scm_version=True, - setup_requires=["setuptools_scm"], - author="Alexis Lopez Zubieta", - author_email="contact@azubieta.net", - description="Recipe based AppImage creation meta-tool", - long_description=long_description, - long_description_content_type="text/markdown", - entry_points={ - "console_scripts": [ - "appimage-builder = appimagebuilder.__main__:__main__", - ] - }, - url="https://github.com/AppImageCrafters/appimage-builder", - project_urls={ - "Bug Tracker": "https://github.com/AppImageCrafters/appimage-builder/issues", - "Documentation": "https://appimage-builder.readthedocs.io", - "Source Code": "https://github.com/AppImageCrafters/appimage-builder", - }, - packages=setuptools.find_packages(), - classifiers=[ - "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", - ], - license="MIT", - install_requires=[ - "pyyaml>=5", - "docker", - "requests", - "schema", - "packaging", - "questionary", - "emrichen", - "ruamel.yaml", - "roam", - "urllib3", - "lief", - "python-gnupg", - "libconf", - "pydpkg", - ], - python_requires=">=3.6", - package_data={"": []}, - include_package_data=True, -) diff --git a/tests/modules/deploy/apt/test_deploy.py b/tests/modules/deploy/apt/test_deploy.py index 8efbe00a..e804f3fe 100644 --- a/tests/modules/deploy/apt/test_deploy.py +++ b/tests/modules/deploy/apt/test_deploy.py @@ -29,8 +29,8 @@ def setUpClass(cls): cls.appdir_path = Path("/tmp/AppDir") cls.apt_venv = Venv( cls.venv_path, - ["deb [arch=amd64] http://deb.debian.org/debian/ bullseye main"], - ["https://ftp-master.debian.org/keys/archive-key-10.asc"], + ["deb [arch=amd64] http://deb.debian.org/debian/ trixie main"], + ["https://ftp-master.debian.org/keys/archive-key-13.asc"], ["amd64"], ) diff --git a/tests/modules/deploy/apt/test_venv.py b/tests/modules/deploy/apt/test_venv.py index e1784baa..81e88aea 100644 --- a/tests/modules/deploy/apt/test_venv.py +++ b/tests/modules/deploy/apt/test_venv.py @@ -25,8 +25,8 @@ def setUpClass(cls): cls.venv_path = "/tmp/apt-venv" cls.apt_venv = Venv( cls.venv_path, - ["deb http://deb.debian.org/debian/ bullseye main"], - ["https://ftp-master.debian.org/keys/archive-key-10.asc"], + ["deb http://deb.debian.org/debian/ trixie main"], + ["https://ftp-master.debian.org/keys/archive-key-13.asc"], ["amd64"], ) cls.apt_venv.update() diff --git a/tests/modules/deploy/pacman/test_venv.py b/tests/modules/deploy/pacman/test_venv.py index afad9d53..aa1d52d2 100644 --- a/tests/modules/deploy/pacman/test_venv.py +++ b/tests/modules/deploy/pacman/test_venv.py @@ -41,7 +41,7 @@ def setUpClass(cls): cls.pacman_venv = Venv( cls.venv_path, repositories={ - "core": ["https://mirror.rackspace.com/archlinux/$repo/os/$arch"] + "core": ["https://fastly.mirror.pkgbuild.com/$repo/os/$arch"] }, architecture="auto", ) diff --git a/tests/modules/generate/fake_package_repository_resolver.py b/tests/modules/generate/fake_package_repository_resolver.py index 8d199b44..1d5ae53c 100644 --- a/tests/modules/generate/fake_package_repository_resolver.py +++ b/tests/modules/generate/fake_package_repository_resolver.py @@ -17,5 +17,5 @@ class FakePackageRepositoryResolver(PackageRepositoryResolver): def resolve_source_lines(self, packages) -> []: return [ - "deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" + "deb http://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse" ] diff --git a/tests/modules/generate/test_apt_section_generator.py b/tests/modules/generate/test_apt_section_generator.py index e0c0e889..b4e48b0f 100644 --- a/tests/modules/generate/test_apt_section_generator.py +++ b/tests/modules/generate/test_apt_section_generator.py @@ -54,7 +54,7 @@ def test_generate(self): "allow_unauthenticated": True, "sources": [ { - "sourceline": "deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse" + "sourceline": "deb http://archive.ubuntu.com/ubuntu/ resolute main restricted universe multiverse" } ], "include": ["libc6:amd64"], diff --git a/tests/recipe/test_validator.py b/tests/recipe/test_validator.py index fe9bcee6..d4d67381 100644 --- a/tests/recipe/test_validator.py +++ b/tests/recipe/test_validator.py @@ -92,8 +92,8 @@ def test_validate_apt(self): "arch": "i386", "sources": [ { - "sourceline": "deb [arch=i386] http://mx.archive.ubuntu.com/ubuntu/ bionic main", - "key_url": "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3b4fe6acc0b21f32", + "sourceline": "deb [arch=i386] http://mx.archive.ubuntu.com/ubuntu/ resolute main", + "key_url": "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x871920d1991bc93c", } ], "include": ["qmlscene"],