Skip to content

Commit

Permalink
[build] Use Python 3.12 for AppImage
Browse files Browse the repository at this point in the history
  • Loading branch information
mxmlnkn committed Dec 26, 2023
1 parent e2dcf44 commit 0f67a53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/appimage-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
env:
APP_PYTHON_VERSION: "3.11"
APP_PYTHON_VERSION: "3.12"
steps:
- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64
env:
APP_PYTHON_VERSION: "3.11"
APP_PYTHON_VERSION: "3.12"
steps:
- uses: actions/checkout@v3

Expand Down
8 changes: 4 additions & 4 deletions AppImage/build-ratarmount-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function installSystemRequirements()
export PATH="/opt/python/cp39-cp39/bin:$PATH"
python3 -m pip install python-appimage
yum -y install epel-release
yum install -y fuse fakeroot patchelf fuse-libs libsqlite3x strace desktop-file-utils
yum install -y fuse fakeroot patchelf fuse-libs libsqlite3x strace desktop-file-utils libzstd-devel
}

function installAppImageTools()
Expand Down Expand Up @@ -178,12 +178,12 @@ fi
APP_BASE="ratarmount-$APPIMAGE_PLATFORM"
APP_DIR="$APP_BASE.AppDir"
if [[ -z $APP_PYTHON_VERSION ]]; then
APP_PYTHON_VERSION=3.11
APP_PYTHON_VERSION=3.12
fi
APP_PYTHON_BIN="$APP_DIR/opt/python$APP_PYTHON_VERSION/bin/python$APP_PYTHON_VERSION"

echo "Install System Build Tools"
if [[ -n $AUDITWHEEL_ARCH ]]; then
echo "Install System Build Tools"
# If manylinux container is implied as the current host system, install requirements.
installSystemRequirements
fi
Expand All @@ -197,7 +197,7 @@ python3 -m python_appimage build app -l "$APPIMAGE_PLATFORM" -p "$APP_PYTHON_VER
exit 1

echo "Extract AppImage to AppDir for Further Modification"
./"ratarmount-$APPIMAGE_ARCH.AppImage" --appimage-extract
./"ratarmount-$APPIMAGE_ARCH.AppImage" --appimage-extract > /dev/null
'rm' -rf "$APP_DIR" ./"ratarmount-$APPIMAGE_ARCH.AppImage"
mv squashfs-root/ "$APP_DIR"

Expand Down

0 comments on commit 0f67a53

Please sign in to comment.