diff --git a/apps/Cura/install-32 b/apps/Cura/install-32 index 6a28775..b1e36d6 100755 --- a/apps/Cura/install-32 +++ b/apps/Cura/install-32 @@ -7,15 +7,21 @@ function error { exit 1 } -wget -O ~/Cura.AppImage https://github.com/smartavionics/Cura/releases/download/20210522/Cura-mb-master-armhf-20210522.AppImage || error "Failed to download!" +wget -O ~/Cura.AppImage https://github.com/smartavionics/Cura/releases/download/20210608/Cura-mb-master-armhf-20210608.AppImage || error "Failed to download!" chmod +x ~/Cura.AppImage +#get stl-thumb package +rm -f ~/stl-thumb_0.4.0_armhf.deb +wget https://github.com/unlimitedbacon/stl-thumb/releases/download/v0.4.0/stl-thumb_0.4.0_armhf.deb +"${DIRECTORY}/pkg-install" "$HOME/stl-thumb_0.4.0_armhf.deb" "$(dirname "$0")" || exit 1 +rm -f ~/stl-thumb_0.4.0_armhf.deb + echo "[Desktop Entry] Name=Ultimaker Cura GenericName=3D Printing Software Comment=Cura converts 3D models into paths for a 3D printer. It prepares your print for maximum accuracy, minimum printing time and good reliability with many extra features that make your print come out great. -Exec=bash -c 'sudo modprobe fuse; ~/Cura.AppImage' +Exec=bash -c 'sudo modprobe fuse; ~/Cura.AppImage '"'\ "%f"'" Icon=$(dirname $0)/icon-64.png Terminal=false Type=Application diff --git a/apps/Cura/install-64 b/apps/Cura/install-64 index 0c3e17e..ee89cf3 100755 --- a/apps/Cura/install-64 +++ b/apps/Cura/install-64 @@ -7,10 +7,16 @@ function error { exit 1 } -wget -O ~/Cura.AppImage https://github.com/smartavionics/Cura/releases/download/20210522/Cura-mb-master-aarch64-20210522.AppImage || error "Failed to download!" +wget -O ~/Cura.AppImage https://github.com/smartavionics/Cura/releases/download/20210608/Cura-mb-master-aarch64-20210608.AppImage || error "Failed to download!" chmod +x ~/Cura.AppImage +#get stl-thumb package +rm -f ~/stl-thumb_0.4.0_armhf.deb +wget https://github.com/unlimitedbacon/stl-thumb/releases/download/v0.4.0/stl-thumb_0.4.0_armhf.deb +"${DIRECTORY}/pkg-install" "$HOME/stl-thumb_0.4.0_armhf.deb" "$(dirname "$0")" || exit 1 +rm -f ~/stl-thumb_0.4.0_armhf.deb + echo "[Desktop Entry] Name=Ultimaker Cura GenericName=3D Printing Software diff --git a/apps/Cura/uninstall b/apps/Cura/uninstall index d713495..f0ca6e5 100755 --- a/apps/Cura/uninstall +++ b/apps/Cura/uninstall @@ -6,7 +6,9 @@ function error { echo -e "\\e[91m$1\\e[39m" exit 1 } + +"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 + rm -f ~/.local/share/applications/cura.desktop rm -f ~/Cura-mb-master-armhf-20200902.AppImage rm -rf ~/.cache/cura -#gio trash ~/.config/cura