feat(packaging): add Fedora .rpm and Arch pacman build scripts#620
Merged
Conversation
build-linux-container.sh calls scripts/build_rpm.sh (fedora) and scripts/build_pkg_arch.sh (arch), but the scripts were missing so both package phases failed with exit 127. Add them, modelled on build_deb.sh: stage the same /usr tree and build the package with fpm (rpm / pacman). fpm is installed on demand; on Arch the erb gem is added explicitly (Ruby 3.4 dropped it). Verified in the fedora-42 and archlinux containers.
BenJule
added a commit
that referenced
this pull request
Jul 18, 2026
…CI tools (#621) Follow-up to #620. #620 replaced the repo's native packaging scripts with an fpm-based approach; this restores the original native scripts (rpmbuild + a generated spec for Fedora, makepkg with an unprivileged build user for Arch) and only adds the tool installs the CI images are missing: rpm-build + python3 on Fedora, fakeroot on Arch. Both verified end-to-end in the bambu-fedora:42 and bambu-archlinux:base containers (produce .rpm and .pkg.tar.zst).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Linux container build calls
scripts/build_rpm.sh(Fedora) andscripts/build_pkg_arch.sh(Arch), but those scripts didn't exist, so the Fedora and Arch package phases failed with exit 127.This adds both, modelled on the existing
build_deb.sh: they stage the same/usrtree (binary under/usr/lib/bambustudio/bin, filtered app libs, resources, launcher wrapper, desktop entry, icons) and build the package with fpm. fpm's rpm and pacman targets are used so Arch packaging works as root without makepkg. fpm is installed on demand; on Arch theerbgem is installed explicitly because Ruby 3.4 dropped it from the default gems.Both were verified end-to-end in the
bambu-fedora:42andbambu-archlinux:baseCI containers (produce.rpmand.pkg.tar.zst).