Fix Bambu Studio packaging and track upstream releases
This commit is contained in:
1 parent
29c9561a3f
commit
e2d1f4f387
5 files changed
+51
-70
No files matched your search
@@ -1,5 +1,17 @@
|
|||||||
{
|
{
|
||||||
"source": "aur",
|
"source": "local",
|
||||||
"release_ring": "fast",
|
"release_ring": "fast",
|
||||||
"upstream_commit": "b962c12d14873f94669e0e256a444f957b1843cd"
|
"origin": {
|
||||||
|
"aur": "bambustudio-bin",
|
||||||
|
"commit": "b962c12d14873f94669e0e256a444f957b1843cd"
|
||||||
|
},
|
||||||
|
"upstream": {
|
||||||
|
"watch": {
|
||||||
|
"regex": "https://api.github.com/repos/bambulab/BambuStudio/releases/latest",
|
||||||
|
"pattern": "\"name\"\\s*:\\s*\"BambuStudio_ubuntu24\\.04-v(?P<version>[0-9]+(?:\\.[0-9]+)*)-(?P<build>[0-9]+)\\.AppImage\"",
|
||||||
|
"variables": {
|
||||||
|
"_build": "{build}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
--- a/PKGBUILD
|
|
||||||
+++ b/PKGBUILD
|
|
||||||
@@ -10,6 +10,7 @@
|
|
||||||
conflicts=('bambustudio' 'bambustudio-git' 'squashfuse')
|
|
||||||
depends=('mesa' 'glu' 'cairo' 'gtk3' 'libsoup3' 'gstreamer' 'openvdb' 'wayland' 'wayland-protocols' 'libxkbcommon' 'gst-libav' 'webkit2gtk-4.1')
|
|
||||||
makedepends=('fuse2' 'patchelf')
|
|
||||||
+options=('!strip')
|
|
||||||
# Thanks so much for generating random image names Bambu, much appreciated, keeps you on your toes or something I guess...
|
|
||||||
source=("bambustudio-${pkgver}.AppImage::https://github.com/bambulab/BambuStudio/releases/download/v${pkgver}/BambuStudio_ubuntu24.04-v${pkgver/%/-20260814171356}.AppImage"
|
|
||||||
"BambuStudio.desktop"
|
|
||||||
@@ -21,4 +22,6 @@
|
|
||||||
package() {
|
|
||||||
cd "$srcdir"
|
|
||||||
chmod +x ./bambustudio-${pkgver}.AppImage
|
|
||||||
+ # AppImage ELF interpreter can fail in build containers; clear the magic byte.
|
|
||||||
+ printf '\x00' | dd of="./bambustudio-${pkgver}.AppImage" bs=1 seek=8 conv=notrunc status=none
|
|
||||||
./bambustudio-${pkgver}.AppImage --appimage-extract
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
--- a/BambuStudio.desktop
|
|
||||||
+++ b/BambuStudio.desktop
|
|
||||||
@@ -1,7 +1,12 @@
|
|
||||||
[Desktop Entry]
|
|
||||||
-Name=BambuStudio
|
|
||||||
+Name=Bambu Studio
|
|
||||||
+GenericName=3D Printing Software
|
|
||||||
+Comment=Slicer for Bambu Lab and other 3D printers
|
|
||||||
Exec=/usr/bin/bambu-studio %U
|
|
||||||
Icon=BambuStudio
|
|
||||||
+Terminal=false
|
|
||||||
Type=Application
|
|
||||||
-Categories=Utility;
|
|
||||||
+Categories=Graphics;3DGraphics;Engineering;
|
|
||||||
MimeType=x-scheme-handler/bambustudio;model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
|
|
||||||
+Keywords=3D;Printing;Slicer;gcode;stl;3mf
|
|
||||||
+StartupWMClass=bambu-studio
|
|
||||||
@@ -7,6 +7,6 @@ Icon=BambuStudio
|
|||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Graphics;3DGraphics;Engineering;
|
Categories=Graphics;3DGraphics;Engineering;
|
||||||
MimeType=x-scheme-handler/bambustudio;model/stl;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
|
MimeType=x-scheme-handler/bambustudio;x-scheme-handler/bambustudioopen;model/stl;model/3mf;application/vnd.ms-3mfdocument;application/prs.wavefront-obj;application/x-amf;
|
||||||
Keywords=3D;Printing;Slicer;gcode;stl;3mf
|
Keywords=3D;Printing;Slicer;gcode;stl;3mf;
|
||||||
StartupWMClass=bambu-studio
|
StartupWMClass=bambu-studio
|
||||||
@@ -1,45 +1,48 @@
|
|||||||
# Maintainer: goll <adrian.goll+aur[at]gmail>
|
# Maintainer: goll <adrian.goll+aur[at]gmail>
|
||||||
# Contributor: George Woodall <georgewoodall82@gmail.com>
|
# Contributor: George Woodall <georgewoodall82@gmail.com>
|
||||||
pkgname=bambustudio-bin
|
pkgname=bambustudio-bin
|
||||||
pkgver=02.08.02.60
|
pkgver=02.08.02.61
|
||||||
pkgrel=1.1
|
pkgrel=1
|
||||||
pkgdesc="PC Software for BambuLab's 3D printers"
|
pkgdesc="PC Software for BambuLab's 3D printers"
|
||||||
arch=("x86_64")
|
arch=("x86_64")
|
||||||
url="https://github.com/bambulab/BambuStudio"
|
url="https://github.com/bambulab/BambuStudio"
|
||||||
license=('AGPL3')
|
license=('AGPL-3.0-only')
|
||||||
conflicts=('bambustudio' 'bambustudio-git' 'squashfuse')
|
conflicts=('bambustudio' 'bambustudio-git')
|
||||||
depends=('mesa' 'glu' 'cairo' 'gtk3' 'libsoup3' 'gstreamer' 'openvdb' 'wayland' 'wayland-protocols' 'libxkbcommon' 'gst-libav' 'webkit2gtk-4.1')
|
depends=('cairo' 'dbus' 'fontconfig' 'gcc-libs' 'glib2' 'glibc'
|
||||||
makedepends=('fuse2' 'patchelf')
|
'gst-libav' 'gst-plugins-base-libs' 'gstreamer' 'gtk3' 'libglvnd'
|
||||||
options=('!strip')
|
'libx11' 'mesa' 'pango' 'wayland' 'webkit2gtk-4.1')
|
||||||
# Thanks so much for generating random image names Bambu, much appreciated, keeps you on your toes or something I guess...
|
makedepends=('7zip')
|
||||||
source=("bambustudio-${pkgver}.AppImage::https://github.com/bambulab/BambuStudio/releases/download/v${pkgver}/BambuStudio_ubuntu24.04-v${pkgver/%/-20260814171356}.AppImage"
|
options=('!strip' '!debug')
|
||||||
|
# The upstream watch updates the timestamp together with pkgver.
|
||||||
|
_build=20260820225108
|
||||||
|
source=("bambustudio-${pkgver}.AppImage::https://github.com/bambulab/BambuStudio/releases/download/v${pkgver}/BambuStudio_ubuntu24.04-v${pkgver}-${_build}.AppImage"
|
||||||
"BambuStudio.desktop"
|
"BambuStudio.desktop"
|
||||||
"bambu-studio")
|
"bambu-studio")
|
||||||
sha256sums=('b78d2527a20ee9fbcf70ee82138c3b3ca707aa9c6625881629db29627252acc3'
|
noextract=("bambustudio-${pkgver}.AppImage")
|
||||||
'SKIP'
|
sha256sums=(
|
||||||
'SKIP')
|
'd501b103fac5424513ec0e8d6bc145fb30719de2c7d94d7320d723740c81a7fd'
|
||||||
|
'f10718a8b201cad64800746fe8167ccc032c545d05f7ad8caa99eb5fb975f2a1'
|
||||||
|
'a3a5c8f6a8b287e42b93957e9602621923c766e0b6a3f10c14eca10b023b15f2'
|
||||||
|
)
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
# Read the embedded SquashFS without executing or modifying the AppImage.
|
||||||
|
rm -rf "$srcdir/squashfs-root"
|
||||||
|
7z x "$srcdir/bambustudio-${pkgver}.AppImage" -o"$srcdir/squashfs-root" >/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir/squashfs-root"
|
||||||
chmod +x ./bambustudio-${pkgver}.AppImage
|
install -Dm755 AppRun "$pkgdir/opt/$pkgname/AppRun"
|
||||||
# AppImage ELF interpreter can fail in build containers; clear the magic byte.
|
cp -a bin resources "$pkgdir/opt/$pkgname/"
|
||||||
printf '\x00' | dd of="./bambustudio-${pkgver}.AppImage" bs=1 seek=8 conv=notrunc status=none
|
|
||||||
./bambustudio-${pkgver}.AppImage --appimage-extract
|
|
||||||
|
|
||||||
cd squashfs-root
|
local icon size
|
||||||
mkdir -p $pkgdir/opt/bambustudio-bin
|
for icon in usr/share/icons/hicolor/*/apps/BambuStudio.png; do
|
||||||
cp -r ./usr "$pkgdir/"
|
size="${icon#usr/share/icons/hicolor/}"
|
||||||
cp -r ./* "$pkgdir/opt/bambustudio-bin/"
|
install -Dm644 "$icon" "$pkgdir/usr/share/icons/hicolor/$size"
|
||||||
patchelf --remove-needed libOSMesa.so.8 "$pkgdir/opt/bambustudio-bin/bin/bambu-studio"
|
done
|
||||||
patchelf --replace-needed libwebkit2gtk-4.0.so.37 libwebkit2gtk-4.1.so.0 "$pkgdir/opt/bambustudio-bin/bin/bambu-studio"
|
|
||||||
patchelf --replace-needed libjavascriptcoregtk-4.0.so.18 libjavascriptcoregtk-4.1.so.0 "$pkgdir/opt/bambustudio-bin/bin/bambu-studio"
|
|
||||||
patchelf --replace-needed libsoup-2.4.so.1 libsoup-3.0.so.0 "$pkgdir/opt/bambustudio-bin/bin/bambu-studio"
|
|
||||||
|
|
||||||
cd "$srcdir"
|
install -Dm755 "$srcdir/bambu-studio" "$pkgdir/usr/bin/bambu-studio"
|
||||||
mkdir "$pkgdir/usr/bin/"
|
install -Dm644 "$srcdir/BambuStudio.desktop" \
|
||||||
chmod +x ./bambu-studio
|
"$pkgdir/usr/share/applications/BambuStudio.desktop"
|
||||||
cp ./bambu-studio "$pkgdir/usr/bin/"
|
|
||||||
|
|
||||||
mkdir "$pkgdir/usr/share/applications/"
|
|
||||||
cp ./BambuStudio.desktop "$pkgdir/usr/share/applications/BambuStudio.desktop"
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user