chore(jdk): add auto update
This commit is contained in:
parent
6b371a276a
commit
580c201355
6
liberica-jdk-21-lite-bin/update.sh
Executable file
6
liberica-jdk-21-lite-bin/update.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
source ../.util.sh
|
||||
|
||||
ver=$(curl -Ls https://api.bell-sw.com/v1/liberica/releases/ | jq -r '.[] | select(.latestLTS == true and .os == "linux" and .packageType == "tar.gz" and .architecture == "x86" and .bundleType == "jdk-lite" and .bitness == 64 and .latestInFeatureVersion == true) | .version')
|
||||
echo "${ver}" | grep -Eq "^(\w|\+|\.)+$" && sed -i "s/pkgver=.*/pkgver=${ver}/" PKGBUILD
|
Loading…
Reference in New Issue
Block a user