feat(docker): automatically install latest prusa slicer
This commit is contained in:
parent
fa1853a9b4
commit
1881833671
|
|
@ -37,7 +37,8 @@ RUN \
|
||||||
RUN \
|
RUN \
|
||||||
echo "**** install prusaslicer from appimage ****" && \
|
echo "**** install prusaslicer from appimage ****" && \
|
||||||
cd /tmp && \
|
cd /tmp && \
|
||||||
wget "https://github.com/prusa3d/PrusaSlicer/releases/download/version_2.7.1/PrusaSlicer-2.7.1+linux-x64-GTK3-202312121425.AppImage" -O /tmp/prusa.app && \
|
URL=$(curl --silent "https://api.github.com/repos/prusa3d/PrusaSlicer/releases/latest" | grep -i "download_url.*gtk3.*appimage" | sed -E 's/.*"([^"]+)".*/\1/') && \
|
||||||
|
wget $URL -O /tmp/prusa.app && \
|
||||||
chmod +x /tmp/prusa.app && \
|
chmod +x /tmp/prusa.app && \
|
||||||
./prusa.app --appimage-extract && \
|
./prusa.app --appimage-extract && \
|
||||||
mv squashfs-root /opt/prusaslicer && \
|
mv squashfs-root /opt/prusaslicer && \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue