flatpak release script fixes

This commit is contained in:
zadam 2022-09-12 23:14:00 +02:00
parent 78238381a7
commit 7233f58767

View File

@ -13,6 +13,9 @@ then
exit 1
fi
VERSION_DATE=$(git log -1 --format=%aI "v${VERSION}" | cut -c -10)
VERSION_COMMIT=$(git rev-list -n 1 "v${VERSION}")
# expecting the directory at a specific path
cd ~/trilium-flathub
@ -21,7 +24,7 @@ if ! git diff-index --quiet HEAD --; then
exit 1
fi
if [[ $VERSION == *"beta"* ]]; then
if [[ "$VERSION" == *"beta"* ]]; then
git switch beta
else
git switch master
@ -29,9 +32,6 @@ fi
git pull
VERSION_DATE=$(git log -1 --format=%aI v${VERSION} | cut -c -10)
VERSION_COMMIT=$(git rev-list -n 1 v${VERSION})
echo "Updating files with version ${VERSION}, date ${VERSION_DATE} and commit ${VERSION_COMMIT}"
flatpak-node-generator npm ../trilium/package-lock.json