mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
flatpak release script fixes
This commit is contained in:
parent
78238381a7
commit
7233f58767
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user