diff --git a/jiup/rules/rules.go b/jiup/rules/rules.go index 7828b0a9..e902e12f 100644 --- a/jiup/rules/rules.go +++ b/jiup/rules/rules.go @@ -1199,15 +1199,14 @@ func init() { ), ) Rule("paint.net", - v.HTML( - "https://www.getpaint.net/download.html", - "#table8", - "innerText", + v.GitHubRelease( + "paintdotnet/release", h.Re("([0-9.]+)"), ), - d.Template( - "https://www.dotpdn.com/files/paint.net.{{.Version}}.install.zip", - "", + d.GitHubRelease( + "paintdotnet/release", + h.Re("paint.net.([0-9.]+).install.x86.zip"), + h.Re("paint.net.([0-9.]+).install.x64.zip"), ), ) Rule("perl",