build: Always set snap grade to stable

This commit is contained in:
WerWolv
2025-08-20 18:14:25 +02:00
parent a8be74ebb7
commit b83f3d6cbf
2 changed files with 3 additions and 12 deletions

View File

@@ -1114,17 +1114,12 @@ jobs:
run: |
export IMHEX_VERSION=$(cat VERSION)
echo "IMHEX_VERSION=$IMHEX_VERSION" >> $GITHUB_ENV
if echo $IMHEX_VERSION | grep -q "WIP"; then
echo "SNAP_GRADE=devel" >> $GITHUB_ENV
else
echo "SNAP_GRADE=stable" >> $GITHUB_ENV
fi
echo "CCACHE=ccache" >> $GITHUB_ENV
- name: 📜 Move snap directory to root
run: |
mkdir -p ./snap
envsubst '${IMHEX_VERSION},${SNAP_GRADE},${CCACHE}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
envsubst '${IMHEX_VERSION},${CCACHE}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
- name: 📜 Setup ccache
uses: hendrikmuhs/ccache-action@v1

View File

@@ -3,12 +3,8 @@ title: ImHex
base: core24
version: ${IMHEX_VERSION}
summary: Hex editor for reverse engineering
description: |
ImHex is a hex editor for reverse engineering, reverse engineering, and
analyzing binary files. It provides a powerful and flexible interface for
working with binary data, including features like pattern matching, scripting,
and a customizable user interface.
grade: ${SNAP_GRADE}
description: ImHex is a hex editor for reverse engineering, reverse engineering, and analyzing binary files. It provides a powerful and flexible interface for working with binary data, including features like pattern matching, scripting, and a customizable user interface.
grade: stable
confinement: classic
contact: https://github.com/WerWolv/ImHex/discussions
issues: https://github.com/WerWolv/ImHex/issues