From 6a7a058d679235994a5e15a1263c834958daab6b Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 27 Jun 2025 10:53:39 +0100 Subject: [PATCH] feat(pretest): add support for build variants via version suffix When a new build needs to be produced for an existing version of Emacs, the build will have a `-` suffix added to it's version string. This updates the pretest cask to support the optional version suffix. --- Casks/emacs-app-pretest.rb | 2 +- templates/emacs-app-pretest.rb.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/emacs-app-pretest.rb b/Casks/emacs-app-pretest.rb index 850bbb3f..75661764 100644 --- a/Casks/emacs-app-pretest.rb +++ b/Casks/emacs-app-pretest.rb @@ -22,7 +22,7 @@ cask 'emacs-app-pretest' do url 'https://github.com/jimeh/emacs-builds.git' strategy :git do |tags| tags.map do |tag| - m = /^Emacs-(.+-pretest)$/.match(tag) + m = /^Emacs-(.+-pretest(-.+)?)$/.match(tag) next unless m m[1] diff --git a/templates/emacs-app-pretest.rb.tpl b/templates/emacs-app-pretest.rb.tpl index 29b7eaf0..ad2a844a 100644 --- a/templates/emacs-app-pretest.rb.tpl +++ b/templates/emacs-app-pretest.rb.tpl @@ -12,7 +12,7 @@ cask 'emacs-app-pretest' do url 'https://github.com/jimeh/emacs-builds.git' strategy :git do |tags| tags.map do |tag| - m = /^Emacs-(.+-pretest)$/.match(tag) + m = /^Emacs-(.+-pretest(-.+)?)$/.match(tag) next unless m m[1]