From 700e9fd912bd22b86d251be0a4cd0465f362ce2f Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 26 Aug 2022 23:52:09 +0200 Subject: [PATCH] fix release-flatpack.sh --- bin/release-flatpack.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bin/release-flatpack.sh b/bin/release-flatpack.sh index 69288d78a..9edc56749 100755 --- a/bin/release-flatpack.sh +++ b/bin/release-flatpack.sh @@ -26,9 +26,15 @@ if ! git diff-index --quiet HEAD --; then exit 1 fi -xmlstarlet ed --inplace --update "/component/releases/release/@version" --value "${VERSION}" --update "/component/releases/release/@date" --value "${VERSION_DATE}" ./trilium-flathub/com.github.zadam.trilium.metainfo.xml +flatpak-node-generator npm ../trilium/package-lock.json -yq --inplace "(.modules[0].sources[0].tag = \"v${VERSION}\") | (.modules[0].sources[0].commit = \"${VERSION_COMMIT}\")" ./trilium-flathub/com.github.zadam.trilium.yml +xmlstarlet ed --inplace --update "/component/releases/release/@version" --value "${VERSION}" --update "/component/releases/release/@date" --value "${VERSION_DATE}" ./com.github.zadam.trilium.metainfo.xml + +yq --inplace "(.modules[0].sources[0].tag = \"v${VERSION}\") | (.modules[0].sources[0].commit = \"${VERSION_COMMIT}\")" ./com.github.zadam.trilium.yml + +git add ./generated-sources.json +git add ./com.github.zadam.trilium.metainfo.xml +git add ./com.github.zadam.trilium.yml git commit -m "release $VERSION" git push