From cd6ee9887d1df5c79a7623776f6c0ea01c7483c3 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Sun, 29 Oct 2023 17:28:05 -0400 Subject: [PATCH] feat: Ensure PKGBUILD targets a known stable release Prevents issues when the PKGBUILD doesn't build on master. --- README.md | 2 +- tests/release.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01ffae6..9bb3f2d 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Alternatively, use `nix run nixpkgs#hyprdim` to start hyprdim without installing I don't use Arch Linux anymore, but I wrote a PKGBUILD for the `pacman` enjoyers out there. Feel free to add it to the AUR. ```fish -git clone https://github.com/donovanglover/hyprdim && cd hyprdim && makepkg -si +git clone https://github.com/donovanglover/hyprdim -b 2.2.1 && cd hyprdim && makepkg -si ``` ### Other distributions diff --git a/tests/release.rs b/tests/release.rs index a1ad904..5aeb49e 100644 --- a/tests/release.rs +++ b/tests/release.rs @@ -98,5 +98,10 @@ fn current_version_is_used() { assert!( readme.contains(&("--tag ".to_owned() + cargo_version.as_str())), "should have the correct tag version in the README" + ); + + assert!( + readme.contains(&("-b ".to_owned() + cargo_version.as_str())), + "should have the correct branch version in the README" ) }