From 3a0347561a1e34d913a6dba0a6f2c8253360ac80 Mon Sep 17 00:00:00 2001 From: alextrical <35117191+alextrical@users.noreply.github.com> Date: Thu, 7 Dec 2023 21:04:12 +0000 Subject: [PATCH] Download appimage to /usr/share/appimages --- config/scripts/nextcloud.sh | 36 ++++++++++++++--------------- config/scripts/openbuildscontrol.sh | 6 +++-- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/config/scripts/nextcloud.sh b/config/scripts/nextcloud.sh index fb6b52155e..d8e959cde3 100644 --- a/config/scripts/nextcloud.sh +++ b/config/scripts/nextcloud.sh @@ -5,32 +5,32 @@ # builds actually ran successfully without any errors! set -oue pipefail -mkdir /tmp/Nextcloud +mkdir -p /usr/share/appimages #Nextcloud Desktop curl -s https://api.github.com/repos/nextcloud-releases/desktop/releases/latest \ | grep "browser_download_url.*AppImage\"" \ | cut -d : -f 2,3 \ | tr -d \" \ -| wget -nc -O /tmp/Nextcloud/Nextcloud-x86_64.AppImage -qi - +| wget -nc -O /usr/share/appimages/Nextcloud/Nextcloud-x86_64.AppImage -qi - #Make executable -chmod +x /tmp/Nextcloud/Nextcloud-x86_64.AppImage +chmod +x /usr/share/appimages/Nextcloud/Nextcloud-x86_64.AppImage -#Extract and move to Usr folder -(cd /tmp/Nextcloud && /tmp/Nextcloud/Nextcloud-x86_64.AppImage --appimage-extract) +# #Extract and move to Usr folder +# (cd /tmp/Nextcloud && /tmp/Nextcloud/Nextcloud-x86_64.AppImage --appimage-extract) -mv /tmp/Nextcloud/squashfs-root/usr/bin/nextcloud /usr/bin/nextcloud -mv /tmp/Nextcloud/squashfs-root/usr/bin/nextcloudcmd /usr/bin/nextcloudcmd -echo "Copy to /usr/lib" -cp -rf /tmp/Nextcloud/squashfs-root/usr/lib/* /usr/lib -# yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/libexec/* /usr/libexec -# mkdir -p /usr/plugins -# yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/plugins/* /usr/plugins -# mkdir -p /usr/resources -# yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/resources/* /usr/resources -# yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/share/* /usr/share +# mv /tmp/Nextcloud/squashfs-root/usr/bin/nextcloud /usr/bin/nextcloud +# mv /tmp/Nextcloud/squashfs-root/usr/bin/nextcloudcmd /usr/bin/nextcloudcmd +# echo "Copy to /usr/lib" +# cp -rf /tmp/Nextcloud/squashfs-root/usr/lib/* /usr/lib +# # yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/libexec/* /usr/libexec +# # mkdir -p /usr/plugins +# # yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/plugins/* /usr/plugins +# # mkdir -p /usr/resources +# # yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/resources/* /usr/resources +# # yes | cp -rf /tmp/Nextcloud/squashfs-root/usr/share/* /usr/share -#Setup Desktop file -mv /tmp/Nextcloud/squashfs-root/com.nextcloud.desktopclient.nextcloud.desktop /usr/share/applications/Nextcloud.desktop -sed -i 's@Exec=nextcloud@Exec=/usr/bin/nextcloud@g' /usr/share/applications/Nextcloud.desktop +# #Setup Desktop file +# mv /tmp/Nextcloud/squashfs-root/com.nextcloud.desktopclient.nextcloud.desktop /usr/share/applications/Nextcloud.desktop +# sed -i 's@Exec=nextcloud@Exec=/usr/bin/nextcloud@g' /usr/share/applications/Nextcloud.desktop diff --git a/config/scripts/openbuildscontrol.sh b/config/scripts/openbuildscontrol.sh index ac1b11151f..e7453ea67d 100644 --- a/config/scripts/openbuildscontrol.sh +++ b/config/scripts/openbuildscontrol.sh @@ -5,12 +5,14 @@ # builds actually ran successfully without any errors! set -oue pipefail +mkdir -p /usr/share/appimages + #OpenBuilds-CONTROL curl -s https://api.github.com/repos/OpenBuilds/OpenBuilds-CONTROL/releases/latest \ | grep "browser_download_url.*AppImage" \ | cut -d : -f 2,3 \ | tr -d \" \ -| wget -nc -O /tmp/OpenBuilds-CONTROL.AppImage -qi - +| wget -nc -O /usr/share/appimages/OpenBuilds-CONTROL.AppImage -qi - #Make executable -chmod +x /tmp/OpenBuilds-CONTROL.AppImage +chmod +x /usr/share/appimages/OpenBuilds-CONTROL.AppImage