Garr-Garr / OctoPrint-InternalSlicer

A full-blown GUI-based slicer plugin for OctoPrint
MIT License
10 stars 2 forks source link

Update downloadPrusaSlicer.sh #1

Closed Xentraxx closed 6 months ago

Xentraxx commented 8 months ago

Changed the prusa download to the current version and changed the path to a relative path, so the script also works if the executing user has a different name than pi.

Garr-Garr commented 6 months ago

Thank you for the suggestion!!

I wasn't able to run PrusaSlicer v2.7.1 on OctoPi v0.18.0, but I was able to get it to run properly with the latest OctoPi nightly version... after installing a lot of packages.

But your $HOME idea works really great! https://github.com/Garr-Garr/OctoPrint-InternalSlicer/blob/1740ce9917609275c1176dcfb0cc5ed8c270b989/octoprint_internal_slicer/static/scripts/downloadPrusaSlicer.sh#L10

I just had to make some changes to the Python download script function as well: https://github.com/Garr-Garr/OctoPrint-InternalSlicer/blob/1740ce9917609275c1176dcfb0cc5ed8c270b989/octoprint_internal_slicer/__init__.py#L549