From ac939f7ff853de12e14d01c5ed3ee2c5eeaab31d Mon Sep 17 00:00:00 2001 From: Klaus Hipp Date: Sat, 14 Sep 2024 13:39:59 +0200 Subject: [PATCH] font-chenyuluoyan: fix url --- Casks/font/font-c/font-chenyuluoyan.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Casks/font/font-c/font-chenyuluoyan.rb b/Casks/font/font-c/font-chenyuluoyan.rb index 1425a60ac0f6..c0294fbebfc8 100644 --- a/Casks/font/font-c/font-chenyuluoyan.rb +++ b/Casks/font/font-c/font-chenyuluoyan.rb @@ -1,12 +1,17 @@ cask "font-chenyuluoyan" do - version "1.0-motospaced" + version "1.0" sha256 "d8ecd0598634c92f0b29f90aabef8f7916f17aef19b0350883ca7b46979a5373" - url "https://github.com/Chenyu-otf/chenyuluoyan_thin/releases/download/v#{version}/ChenYuluoyan-Thin-Monospaced.ttf" + url "https://github.com/Chenyu-otf/chenyuluoyan_thin/releases/download/v#{version}-monospaced/ChenYuluoyan-Thin-Monospaced.ttf" name "Chenyuluoyan" name "辰宇落雁體" homepage "https://github.com/Chenyu-otf/chenyuluoyan_thin" + livecheck do + url :url + regex(/^v?(\d+(?:\.\d+)+)[._-]monospaced$/i) + end + font "ChenYuluoyan-Thin-Monospaced.ttf" # No zap stanza required