mirror of https://github.com/WerWolv/ImHex
git: Fix naming and uploading of snap artifacts
This commit is contained in:
parent
c65015fcc7
commit
0e14ff5a3d
|
|
@ -1118,16 +1118,16 @@ jobs:
|
|||
export IMHEX_VERSION=$(cat VERSION)
|
||||
|
||||
if [[ "$IMHEX_VERSION" == *.WIP ]]; then
|
||||
echo "IMHEX_VERSION=$IMHEX_VERSION-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
||||
echo "IMHEX_VERSION_STRING=$IMHEX_VERSION-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
|
||||
else
|
||||
echo "IMHEX_VERSION=$IMHEX_VERSION" >> $GITHUB_ENV
|
||||
echo "IMHEX_VERSION_STRING=$IMHEX_VERSION" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "CCACHE=ccache" >> $GITHUB_ENV
|
||||
|
||||
- name: 📜 Move snap directory to root
|
||||
run: |
|
||||
mkdir -p ./snap
|
||||
envsubst '${IMHEX_VERSION},${CCACHE}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
|
||||
envsubst '${IMHEX_VERSION_STRING},${CCACHE}' < ./dist/snap/snapcraft.yaml > ./snap/snapcraft.yaml
|
||||
|
||||
- name: 📜 Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
|
|
@ -1140,6 +1140,10 @@ jobs:
|
|||
run: |
|
||||
sudo snapcraft --destructive-mode
|
||||
|
||||
- name: 🟩 Rename Snap
|
||||
run: |
|
||||
mv *.snap imhex-${{ env.IMHEX_VERSION }}-${{ matrix.architecture }}.snap
|
||||
|
||||
- name: 🗝️ Generate build provenance attestations
|
||||
uses: actions/attest-build-provenance@v2
|
||||
if: ${{ github.event.repository.fork == false && github.event_name != 'pull_request' }}
|
||||
|
|
|
|||
|
|
@ -63,8 +63,6 @@ jobs:
|
|||
mv "Windows Portable arm64.zip" imhex-${{ env.IMHEX_VERSION }}-Windows-Portable-arm64.zip
|
||||
mv "Windows Portable NoGPU x86_64.zip" imhex-${{ env.IMHEX_VERSION }}-Windows-Portable-NoGPU-x86_64.zip
|
||||
mv "ImHex Web.zip" imhex-${{ env.IMHEX_VERSION }}-Web.zip
|
||||
mv ./*_amd64.snap $(echo ./*_amd64.snap | sed 's/_amd64\.snap$/-x86_64.snap/' | sed 's/_/-/1')
|
||||
mv ./*_arm64.snap $(echo ./*_arm64.snap | sed 's/_arm64\.snap$/-arm64.snap/' | sed 's/_/-/1')
|
||||
rm artifact.tar || true
|
||||
|
||||
- name: 📖 Generate Release Notes
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
name: imhex
|
||||
title: ImHex
|
||||
base: core24
|
||||
version: ${IMHEX_VERSION}
|
||||
version: ${IMHEX_VERSION_STRING}
|
||||
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: stable
|
||||
|
|
|
|||
Loading…
Reference in New Issue