Package Bambu Studio
..although it does not seem to work well with Sommelier under Sway. We either need to figure this out or there needs to be a way to disable Sommelier only for specific containers.
This commit is contained in:
parent
74b7b732c4
commit
fd55053f38
24
apps/bambu-studio/Containerfile
Normal file
24
apps/bambu-studio/Containerfile
Normal file
|
@ -0,0 +1,24 @@
|
|||
FROM dobu/deps-base-ubuntu-jammy:latest
|
||||
|
||||
ARG UPSTREAM_VERSION
|
||||
|
||||
RUN apt-get update && apt-get -y install libgtk-3-0 libgstreamer1.0-0 \
|
||||
gstreamer1.0-plugins-base libwebkit2gtk-4.0-37 curl locales
|
||||
|
||||
RUN echo "en_GB.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
|
||||
|
||||
RUN sh -c "curl -o /tmp/BambuStudio.AppImage -L \
|
||||
https://github.com/bambulab/BambuStudio/releases/download/${UPSTREAM_VERSION}/Bambu_Studio_linux_ubuntu_\"$(echo ${UPSTREAM_VERSION} | sed 's/^v//')\".AppImage"
|
||||
|
||||
RUN chmod +x /tmp/BambuStudio.AppImage && /tmp/BambuStudio.AppImage --appimage-extract \
|
||||
&& mv ./squashfs-root / && rm -rf /tmp/BambuStudio.AppImage \
|
||||
&& mkdir -p /usr/share/icons/hicolor/192x192/apps \
|
||||
&& cp -r /squashfs-root/usr/share/icons/hicolor/192x192/apps/BambuStudio.png /usr/share/icons/hicolor/192x192/apps
|
||||
|
||||
USER user
|
||||
|
||||
ENV GDK_BACKEND=wayland
|
||||
|
||||
LABEL net.typeblog.dobu.desktop_file_path=/squashfs-root/BambuStudio.desktop
|
||||
|
||||
ENTRYPOINT [ "/squashfs-root/AppRun" ]
|
1
apps/bambu-studio/control
Normal file
1
apps/bambu-studio/control
Normal file
|
@ -0,0 +1 @@
|
|||
INVALIDATE_CACHE_UPSTREAM_GITHUB="bambulab/BambuStudio"
|
|
@ -53,6 +53,11 @@ if [ ! -d "$home_path" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Some containers want these default XDG directories to exist; make sure they do
|
||||
mkdir -p "$home_path/.config"
|
||||
mkdir -p "$home_path/.cache"
|
||||
mkdir -p "$home_path/.local/share"
|
||||
|
||||
extra_args=""
|
||||
|
||||
# Check if we should allow /dev/input access
|
||||
|
|
Loading…
Reference in a new issue