Extern tag matcher with digit and dot patterns
This commit is contained in:
22
src/Main.hs
22
src/Main.hs
@ -45,7 +45,7 @@ autoUpdatable =
|
||||
$ Package.StaticPlaceholder "https://github.com/universal-ctags/ctags/archive/"
|
||||
:| templateTail
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub ghArguments "(v)\\."
|
||||
, getVersion = reuploadWithTemplate template []
|
||||
, is64 = False
|
||||
}
|
||||
@ -77,7 +77,7 @@ autoUpdatable =
|
||||
:| Package.VersionPlaceholder
|
||||
: [Package.StaticPlaceholder "/jitsi-meet-x86_64.AppImage"]
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments $ Text.stripPrefix "v"
|
||||
{ detectLatest = latestGitHub ghArguments "(v)*"
|
||||
, getVersion = downloadWithTemplate template
|
||||
, is64 = True
|
||||
}
|
||||
@ -90,16 +90,12 @@ autoUpdatable =
|
||||
{ owner = "php"
|
||||
, name = "php-src"
|
||||
}
|
||||
checkVersion x
|
||||
| not $ Text.isInfixOf "RC" x
|
||||
, Text.isPrefixOf "php-8.2." x = Text.stripPrefix "php-" x
|
||||
| otherwise = Nothing
|
||||
template = Package.DownloadTemplate
|
||||
$ Package.StaticPlaceholder "https://www.php.net/distributions/php-"
|
||||
:| Package.VersionPlaceholder
|
||||
: [Package.StaticPlaceholder ".tar.xz"]
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments checkVersion
|
||||
{ detectLatest = latestGitHub ghArguments "(php-)8.2.\\d"
|
||||
, getVersion = downloadWithTemplate template
|
||||
, is64 = False
|
||||
}
|
||||
@ -122,7 +118,7 @@ autoUpdatable =
|
||||
:| Package.VersionPlaceholder
|
||||
: templateTail
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub ghArguments "(v)\\."
|
||||
, getVersion = reuploadWithTemplate template [RawCommand "go" ["mod", "vendor"]]
|
||||
, is64 = False
|
||||
}
|
||||
@ -142,7 +138,7 @@ autoUpdatable =
|
||||
: Package.VersionPlaceholder
|
||||
: [Package.StaticPlaceholder ".tar.gz"]
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub ghArguments "(v)\\."
|
||||
, getVersion = reuploadWithTemplate template []
|
||||
, is64 = False
|
||||
}
|
||||
@ -183,7 +179,7 @@ autoUpdatable =
|
||||
: Package.VersionPlaceholder
|
||||
: [Package.StaticPlaceholder ".tar.gz"]
|
||||
in Package.Updater
|
||||
{ detectLatest = latestGitHub ghArguments $ Text.stripPrefix "v"
|
||||
{ detectLatest = latestGitHub ghArguments "(v)\\."
|
||||
, getVersion = reuploadWithTemplate template []
|
||||
, is64 = True
|
||||
}
|
||||
@ -230,18 +226,18 @@ autoUpdatable =
|
||||
dscannerArguments = PackageOwner{ owner = "dlang-community", name = "D-Scanner" }
|
||||
dcdArguments = PackageOwner{ owner = "dlang-community", name = "DCD" }
|
||||
latestDub = Package.Updater
|
||||
{ detectLatest = latestGitHub dubArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub dubArguments "(v)\\."
|
||||
, getVersion = downloadWithTemplate dubTemplate
|
||||
, is64 = False
|
||||
}
|
||||
latestDscanner = Package.Updater
|
||||
{ detectLatest = latestGitHub dscannerArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub dscannerArguments "(v)\\."
|
||||
, getVersion = cloneFromGit dscannerURI "v"
|
||||
, is64 = False
|
||||
}
|
||||
dcdURI = [uri|https://github.com/dlang-community/DCD.git|]
|
||||
latestDcd = Package.Updater
|
||||
{ detectLatest = latestGitHub dcdArguments stableTagTransform
|
||||
{ detectLatest = latestGitHub dcdArguments "(v)\\."
|
||||
, getVersion = cloneFromGit dcdURI "v"
|
||||
, is64 = False
|
||||
}
|
||||
|
Reference in New Issue
Block a user