diff --git a/src/ubuntu/install/gimp/custom_startup.sh b/src/ubuntu/install/gimp/custom_startup.sh index 9487ada..cdf4830 100644 --- a/src/ubuntu/install/gimp/custom_startup.sh +++ b/src/ubuntu/install/gimp/custom_startup.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -ex -START_COMMAND="gimp" +START_COMMAND="/opt/gimp-3/squashfs-root/launcher" PGREP="gimp" export MAXIMIZE="true" export MAXIMIZE_NAME="GNU Image Manipulation Program" diff --git a/src/ubuntu/install/gimp/install_gimp.sh b/src/ubuntu/install/gimp/install_gimp.sh index 8e2fbcb..8a6720b 100644 --- a/src/ubuntu/install/gimp/install_gimp.sh +++ b/src/ubuntu/install/gimp/install_gimp.sh @@ -1,19 +1,55 @@ +# #!/usr/bin/env bash +# set -ex + +# # Install GIMP +# apt-get update +# apt-get install -y gimp +# cp /usr/share/applications/gimp.desktop $HOME/Desktop/ +# chmod +x $HOME/Desktop/gimp.desktop + +# # Cleanup for app layer +# chown -R 1000:0 $HOME +# find /usr/share/ -name "icon-theme.cache" -exec rm -f {} \; +# if [ -z ${SKIP_CLEAN+x} ]; then +# apt-get autoclean +# rm -rf \ +# /var/lib/apt/lists/* \ +# /var/tmp/* \ +# /tmp/* +# fi + + + #!/usr/bin/env bash set -ex +ARCH=$(uname -m | sed 's/aarch64/arm64/g' | sed 's/x86_64/amd64/g') +mkdir -p /opt/gimp-3 +cd /opt/gimp-3 -# Install GIMP -apt-get update -apt-get install -y gimp -cp /usr/share/applications/gimp.desktop $HOME/Desktop/ -chmod +x $HOME/Desktop/gimp.desktop -# Cleanup for app layer -chown -R 1000:0 $HOME -find /usr/share/ -name "icon-theme.cache" -exec rm -f {} \; -if [ -z ${SKIP_CLEAN+x} ]; then - apt-get autoclean - rm -rf \ - /var/lib/apt/lists/* \ - /var/tmp/* \ - /tmp/* +if [ "${ARCH}" == "amd64" ]; then + wget -q https://download.gimp.org/gimp/v3.0/linux/GIMP-3.0.4-x86_64.AppImage -O gimp.AppImage +else + wget -q https://download.gimp.org/gimp/v3.0/linux/GIMP-3.0.4-aarch64.AppImage -O gimp.AppImage fi + +chmod +x gimp.AppImage +./gimp.AppImage --appimage-extract +rm gimp.AppImage +chown -R 1000:1000 /opt/gimp-3 + +cat >/opt/gimp-3/squashfs-root/launcher <