Skip to content

Commit

Permalink
Download appimage to /usr/share/appimages
Browse files Browse the repository at this point in the history
  • Loading branch information
alextrical committed Dec 7, 2023
1 parent 853e848 commit 3a03475
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
36 changes: 18 additions & 18 deletions config/scripts/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

6 changes: 4 additions & 2 deletions config/scripts/openbuildscontrol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3a03475

Please sign in to comment.