mirror of
https://github.com/miracle-wm-org/miracle-wm.git
synced 2024-11-25 18:57:00 +03:00
ee5dc57467
- Created an SRPM and spec file for the Fedora package
2.3 KiB
2.3 KiB
Releasing
Step 1: Create a Release on Github
- Navigate to https://github.com/mattkae/miracle-wm/releases
- Draft a new release
- Name the tag
v.X.Y.Z
- Title the release
v.X.Y.Z
- Target a branch, most likely
master
- Describe the release (You may generate release notes, but please make sure that they make sense before doing so)
Step 2: Snap Release
- Check out the commit that you just released in Step 1
- Bump the version number in
snap/snapcraft.yaml
to theX.Y.Z
- Commit this buumped version
- Next (this part is silly), comment out the
override-pull
of themiracle-wm
part - Run
snapcraft
- Finally, run
snapcraft upload --release=stable ./miracle-wm_*.snap
TODO: Implement https://github.com/mattkae/miracle-wm/issues/59 to fix the weirdness of this process
Step 3: Deb Release
- Clone the repo (make sure that the folder is called
miracle-wm
) - Update
debian/changelog
with:- Version
X.Y.Z-distro
(wheredistro
is "jammy", "noble", or "mantic") - The same content as you in the Github release
- A correct current timestamp
jammy
as the release (repeat withmantic
andnoble
)
- Version
- Next:
cd miracle-wm
./tools/publish-ppa.sh <X.Y.Z> <DISTRO>
- Navigate to https://launchpad.net/~matthew-kosarek/+archive/ubuntu/miracle-wm
- Wait for the CI to finish, and the package should be ready
Note that you should rebuild for mantic
and noble
. Follow the instructions to make sure that it uploads.
Step 4: RPM Release
Before following these steps, make sure that you've at least followed this tutorial.
- Open up
rpm/miracle-wm.spec
- Update the version to
X.Y.Z
- Updated
BuildRequires
orRequires
if need be - Add a new entry to the changelog with the same data that is in the Github release, your user name, and a correct timestamp
- Move to a directory above
miracle-wm
and run:tar --create --file miracle-wm-X.Y.Z.tar.gz miracle-wm
mv miracle-wm-X.Y.Z.tar.gz ~/rpmbuild/SOURCES
cp miracle-wm/specs/miracle-wm.spec ~/rpmbuild/SPECS/
rpmbuild -bb ~/rpmbuild/SPECS/miracle-wm.spec
- After the build, you should be able to install your rpm:
sudo dnf install ~/rpmbuild/RPMS/<ARCH_TRIPLET>/miracle-wm-X.Y.Z-<REVISION>.<HASH>.<ARCH_TRIPLET>.rpm