Skip to content

Commit

Permalink
build(appimage): upgrade to Python 3.8.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Feb 12, 2024
1 parent fe0b00a commit a07393e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/create-appimage.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
# This file is part of REANA.
# Copyright (C) 2022 CERN.
# Copyright (C) 2022, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -25,14 +25,14 @@ if ! [ -x "$(command -v convert)" ]; then
fi

download_python_appimage () {
wget https://github.com/niess/python-appimage/releases/download/python3.8/python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage
chmod +x python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage
wget https://github.com/niess/python-appimage/releases/download/python3.8/python3.8.18-cp38-cp38-manylinux1_x86_64.AppImage
chmod +x python3.8.18-cp38-cp38-manylinux1_x86_64.AppImage
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
chmod a+x appimagetool-x86_64.AppImage
}

extract_python_appimage () {
./python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract
./python3.8.18-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract
}

install_reana_client_into_python_appimage () {
Expand All @@ -48,7 +48,7 @@ test_modified_python_appimage () {
}

edit_desktop_file () {
mv squashfs-root/usr/share/applications/python3.8.12.desktop squashfs-root/usr/share/applications/reana-client.desktop
mv squashfs-root/usr/share/applications/python3.8.18.desktop squashfs-root/usr/share/applications/reana-client.desktop
sed -i -e 's|^Name=.*|Name=reana-client|g' squashfs-root/usr/share/applications/*.desktop
sed -i -e 's|^Exec=.*|Exec=reana-client|g' squashfs-root/usr/share/applications/*.desktop
sed -i -e 's|^Icon=.*|Icon=reana-client|g' squashfs-root/usr/share/applications/*.desktop
Expand All @@ -75,7 +75,7 @@ test_created_reana_client_appimage () {

clean_after_ourselves () {
rm -rf logo-reana.png squashfs-root
rm -rf appimagetool-x86_64.AppImage python3.8.12-cp38-cp38-manylinux1_x86_64.AppImage
rm -rf appimagetool-x86_64.AppImage python3.8.18-cp38-cp38-manylinux1_x86_64.AppImage
}

download_python_appimage
Expand Down

0 comments on commit a07393e

Please sign in to comment.