mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-25 10:08:29 +02:00
Simplify CI: metainfo releases only accumulate in Flathub repo
- Remove metainfo update from update-manifest.sh - Remove CI step that committed metainfo back to app repo - Revert permissions back to read-only - CI now inserts release entry directly into Flathub repo's metainfo
This commit is contained in:
@@ -8,14 +8,12 @@
|
||||
# This script:
|
||||
# 1. Updates the git tag and commit in the manifest
|
||||
# 2. Regenerates cargo-sources.json and node-sources.json from the tagged lockfiles
|
||||
# 3. Adds a new <release> entry to the metainfo
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||
MANIFEST="$SCRIPT_DIR/app.yaak.Yaak.yml"
|
||||
METAINFO="$SCRIPT_DIR/app.yaak.Yaak.metainfo.xml"
|
||||
|
||||
if [ $# -lt 1 ]; then
|
||||
echo "Usage: $0 <version-tag>"
|
||||
@@ -76,14 +74,8 @@ node -e "
|
||||
flatpak-node-generator --no-requests-cache \
|
||||
-o "$SCRIPT_DIR/node-sources.json" npm "$TMPDIR/package-lock.json"
|
||||
|
||||
# Update metainfo with new release
|
||||
TODAY=$(date +%Y-%m-%d)
|
||||
sed -i "s| <releases>| <releases>\n <release version=\"$VERSION\" date=\"$TODAY\" />|" "$METAINFO"
|
||||
echo "Updated metainfo with release $VERSION."
|
||||
|
||||
echo ""
|
||||
echo "Done! Review the changes:"
|
||||
echo " $MANIFEST"
|
||||
echo " $METAINFO"
|
||||
echo " $SCRIPT_DIR/cargo-sources.json"
|
||||
echo " $SCRIPT_DIR/node-sources.json"
|
||||
|
||||
Reference in New Issue
Block a user