mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-17 17:44:02 -05:00
Embed version into flatpaks. Export them as stable branch from CI (#696)
This commit is contained in:
parent
833fc0ab24
commit
9c139423be
5 changed files with 41 additions and 24 deletions
|
|
@ -225,22 +225,15 @@ else
|
|||
echo "✅ Local build completed: $DEB_FILE"
|
||||
fi
|
||||
|
||||
# Calculate SHA256 hash of the .deb file
|
||||
echo "🔢 Calculating SHA256 hash..."
|
||||
read -r DEB_SHA256 _ < <(sha256sum "$DEB_FILE")
|
||||
echo " Hash: $DEB_SHA256"
|
||||
|
||||
echo "📝 Creating manifest with local .deb..."
|
||||
|
||||
# Modify the manifest to use the local file
|
||||
jq --arg deb_path "file://$DEB_FILE" --arg deb_hash "$DEB_SHA256" '
|
||||
.modules[0].sources = [
|
||||
{
|
||||
"type": "file",
|
||||
"url": $deb_path,
|
||||
"sha256": $deb_hash
|
||||
}
|
||||
]
|
||||
jq --arg deb_path "$DEB_FILE" --arg PWD "$PWD" '
|
||||
.modules[0].sources[0] = {
|
||||
"type": "file",
|
||||
"path": $deb_path
|
||||
} |
|
||||
.modules[0].sources[1].path = $PWD + "/" + .modules[0].sources[1].path
|
||||
' "$MANIFEST_FILE" > "$TEMP_MANIFEST"
|
||||
|
||||
MANIFEST_FILE="$TEMP_MANIFEST"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue