mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
git: Fix naming and uploading of snap artifacts
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -1118,16 +1118,16 @@ jobs:
|
|||||||
export IMHEX_VERSION=$(cat VERSION)
|
export IMHEX_VERSION=$(cat VERSION)
|
||||||
|
|
||||||
if [[ "$IMHEX_VERSION" == *.WIP ]]; then
|
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
|
else
|
||||||
echo "IMHEX_VERSION=$IMHEX_VERSION" >> $GITHUB_ENV
|
echo "IMHEX_VERSION_STRING=$IMHEX_VERSION" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
echo "CCACHE=ccache" >> $GITHUB_ENV
|
echo "CCACHE=ccache" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: 📜 Move snap directory to root
|
- name: 📜 Move snap directory to root
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./snap
|
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
|
- name: 📜 Setup ccache
|
||||||
uses: hendrikmuhs/ccache-action@v1
|
uses: hendrikmuhs/ccache-action@v1
|
||||||
@@ -1140,6 +1140,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo snapcraft --destructive-mode
|
sudo snapcraft --destructive-mode
|
||||||
|
|
||||||
|
- name: 🟩 Rename Snap
|
||||||
|
run: |
|
||||||
|
mv *.snap imhex-${{ env.IMHEX_VERSION }}-${{ matrix.architecture }}.snap
|
||||||
|
|
||||||
- name: 🗝️ Generate build provenance attestations
|
- name: 🗝️ Generate build provenance attestations
|
||||||
uses: actions/attest-build-provenance@v2
|
uses: actions/attest-build-provenance@v2
|
||||||
if: ${{ github.event.repository.fork == false && github.event_name != 'pull_request' }}
|
if: ${{ github.event.repository.fork == false && github.event_name != 'pull_request' }}
|
||||||
|
|||||||
2
.github/workflows/nightly_release.yml
vendored
2
.github/workflows/nightly_release.yml
vendored
@@ -63,8 +63,6 @@ jobs:
|
|||||||
mv "Windows Portable arm64.zip" imhex-${{ env.IMHEX_VERSION }}-Windows-Portable-arm64.zip
|
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 "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 "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
|
rm artifact.tar || true
|
||||||
|
|
||||||
- name: 📖 Generate Release Notes
|
- name: 📖 Generate Release Notes
|
||||||
|
|||||||
2
dist/snap/snapcraft.yaml
vendored
2
dist/snap/snapcraft.yaml
vendored
@@ -1,7 +1,7 @@
|
|||||||
name: imhex
|
name: imhex
|
||||||
title: ImHex
|
title: ImHex
|
||||||
base: core24
|
base: core24
|
||||||
version: ${IMHEX_VERSION}
|
version: ${IMHEX_VERSION_STRING}
|
||||||
summary: Hex editor for reverse engineering
|
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.
|
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
|
grade: stable
|
||||||
|
|||||||
Reference in New Issue
Block a user