From 8166168b110fc5f4ae7474e84de5ba1d27237e04 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 27 Jun 2025 10:53:14 +0100 Subject: [PATCH] feat(stable): 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 stable cask to support the optional version suffix. --- Casks/emacs-app.rb | 2 +- templates/emacs-app.rb.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Casks/emacs-app.rb b/Casks/emacs-app.rb index 4ac82cbd..4b7a4877 100644 --- a/Casks/emacs-app.rb +++ b/Casks/emacs-app.rb @@ -22,7 +22,7 @@ cask 'emacs-app' do url 'https://github.com/jimeh/emacs-builds.git' strategy :git do |tags| tags.map do |tag| - m = /^Emacs-(\d+\.\d+[a-z]*)$/.match(tag) + m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag) next unless m m[1] diff --git a/templates/emacs-app.rb.tpl b/templates/emacs-app.rb.tpl index b83f070f..a801c3d6 100644 --- a/templates/emacs-app.rb.tpl +++ b/templates/emacs-app.rb.tpl @@ -12,7 +12,7 @@ cask 'emacs-app' do url 'https://github.com/jimeh/emacs-builds.git' strategy :git do |tags| tags.map do |tag| - m = /^Emacs-(\d+\.\d+[a-z]*)$/.match(tag) + m = /^Emacs-(\d+\.\d+[a-z]*(-.+)?)$/.match(tag) next unless m m[1]