diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e40a8f19..43539176c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,6 +81,8 @@ jobs: .. mingw32-make -j4 install cpack + mv imhex-*.msi ../imhex-${{env.IMHEX_VERSION}}-Windows-x86_64.msi + echo "ImHex checks for the existence of this file to determine if it is running in portable mode. You should not delete this file" > $PWD/install/PORTABLE #- name: 🗝️ Sign Windows Installer @@ -97,14 +99,14 @@ jobs: - name: ⬆️ Upload Windows Installer uses: actions/upload-artifact@v3 with: - name: Windows Installer + name: Windows Installer x86_64 path: | - build/*.msi + imhex-*.msi - name: ⬆️ Upload Portable ZIP uses: actions/upload-artifact@v3 with: - name: Windows Portable + name: Windows Portable x86_64 path: | build/install/* @@ -119,7 +121,7 @@ jobs: - name: ⬆️ Upload NoGPU Portable ZIP uses: actions/upload-artifact@v3 with: - name: Windows Portable NoGPU + name: Windows Portable NoGPU x86_64 path: | build/install/* @@ -219,14 +221,14 @@ jobs: -DCMAKE_OBJCXX_COMPILER_LAUNCHER=ccache \ -DIMHEX_PATTERNS_PULL_MASTER=ON \ -DCMAKE_OSX_DEPLOYMENT_TARGET="10.10" \ - -DCPACK_PACKAGE_FILE_NAME="imhex-${{env.IMHEX_VERSION}}-macOS${{matrix.suffix}}" \ + -DCPACK_PACKAGE_FILE_NAME="imhex-${{env.IMHEX_VERSION}}-macOS${{matrix.suffix}}-x86_64" \ .. make -j4 package - name: ⬆️ Upload DMG uses: actions/upload-artifact@v3 with: - name: macOS DMG${{matrix.suffix}} + name: macOS DMG${{matrix.suffix}} x86_64 path: build/*.dmg # Ubuntu build @@ -303,7 +305,7 @@ jobs: run: | cp -r build/DEBIAN build/DebDir dpkg-deb -Zgzip --build build/DebDir - mv build/DebDir.deb imhex-${{env.IMHEX_VERSION}}-Ubuntu-22.04.deb + mv build/DebDir.deb imhex-${{env.IMHEX_VERSION}}-Ubuntu-22.04-x86_64.deb # AppImage cmake build - name: 🛠️ Reconfigure build for AppImage @@ -338,19 +340,19 @@ jobs: - name: ⬆️ Upload DEB uses: actions/upload-artifact@v3 with: - name: Ubuntu 22.04 DEB + name: Ubuntu 22.04 DEB x86_64 path: '*.deb' - name: ⬆️ Upload AppImage uses: actions/upload-artifact@v3 with: - name: Linux AppImage + name: Linux AppImage x86_64 path: 'build-appimage/*.AppImage' - name: ⬆️ Upload AppImage zsync uses: actions/upload-artifact@v3 with: - name: Linux AppImage zsync + name: Linux AppImage zsync x86_64 path: 'build-appimage/*.AppImage.zsync' # ArchLinux build @@ -429,22 +431,22 @@ jobs: # the name is a small trick to make makepkg recognize it as the source # else, it would try to download the file from the release - tar -cvf imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst -C installDir . + tar -cvf imhex-${{env.IMHEX_VERSION}}-ArchLinux-x86_64.pkg.tar.zst -C installDir . chmod -R 777 . sudo -u nobody makepkg # Replace the old file - rm imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst - mv *.pkg.tar.zst imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst + rm imhex-${{env.IMHEX_VERSION}}-ArchLinux-x86_64.pkg.tar.zst + mv *.pkg.tar.zst imhex-${{env.IMHEX_VERSION}}-ArchLinux-x86_64.pkg.tar.zst - name: ⬆️ Upload imhex-archlinux.pkg.tar.zst uses: actions/upload-artifact@v3 with: - name: ArchLinux .pkg.tar.zst + name: ArchLinux .pkg.tar.zst x86_64 path: | - build/imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst + build/imhex-${{env.IMHEX_VERSION}}-ArchLinux-x86_64.pkg.tar.zst # RPM distro builds rpm-build: @@ -563,6 +565,6 @@ jobs: - name: ⬆️ Upload RPM uses: actions/upload-artifact@v3 with: - name: ${{ matrix.name }} ${{ matrix.release_num }} RPM + name: ${{ matrix.name }} ${{ matrix.release_num }} RPM x86_64 path: | imhex-${{env.IMHEX_VERSION}}-${{matrix.name}}-${{matrix.release_num}}-x86_64.rpm diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63df95b83..8eff2b11d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,8 +60,8 @@ jobs: - name: 🟩 Rename artifacts when needed run: | - mv "Windows Portable.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable.zip - mv "Windows Portable NoGPU.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable-NoGPU.zip + mv "Windows Portable x86_64.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable-x86_64.zip + mv "Windows Portable NoGPU x86_64.zip" imhex-${{env.IMHEX_VERSION}}-Windows-Portable-NoGPU-x86_64.zip - name: ⬆️ Upload everything to release uses: softprops/action-gh-release@v1 @@ -72,7 +72,7 @@ jobs: run: | cp ImHex/dist/Arch/PKGBUILD . - hash=`md5sum imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst | cut -d ' ' -f 1` + hash=`md5sum imhex-${{env.IMHEX_VERSION}}-ArchLinux.pkg.tar.zst-x86_64 | cut -d ' ' -f 1` sed -i 's/%version%/${{env.IMHEX_VERSION}}/g' PKGBUILD sed -i "s/(SKIP)/($hash)/g" PKGBUILD @@ -153,7 +153,7 @@ jobs: run: | $tagname = $env:GITHUB_REF.Replace("refs/tags/", "") $version = $tagname.Replace("v", "") - $url = "https://github.com/WerWolv/ImHex/releases/download/${tagname}/imhex-${version}-win64.msi" + $url = "https://github.com/WerWolv/ImHex/releases/download/${tagname}/imhex-${version}-Windows-x86_64.msi" .\wingetcreate.exe update WerWolv.ImHex -u $url --version $version if ($version -notmatch "-") { .\wingetcreate.exe submit .\manifests\w\WerWolv\ImHex\${version}\ --token $env:WINGET_GITHUB_TOKEN diff --git a/dist/AppImageBuilder.yml b/dist/AppImageBuilder.yml index 8bca48d8d..f7771a23b 100644 --- a/dist/AppImageBuilder.yml +++ b/dist/AppImageBuilder.yml @@ -135,5 +135,5 @@ AppDir: - usr/share/doc/*/TODO.* AppImage: arch: x86_64 - update-information: gh-releases-zsync|WerWolv|ImHex|latest|imhex-*.AppImage.zsync - file_name: imhex-{{VERSION}}.AppImage + update-information: gh-releases-zsync|WerWolv|ImHex|latest|imhex-*-x86_64.AppImage.zsync + file_name: imhex-{{VERSION}}-x86_64.AppImage diff --git a/dist/Arch/PKGBUILD b/dist/Arch/PKGBUILD index af9192916..a5f0b4501 100644 --- a/dist/Arch/PKGBUILD +++ b/dist/Arch/PKGBUILD @@ -12,7 +12,7 @@ depends=(glfw mbedtls freetype2 libglvnd dbus xdg-desktop-portal curl fmt yara n makedepends=(git) provides=(imhex) conflicts=(imhex) -source=("$url/releases/download/v$pkgver/imhex-$pkgver-ArchLinux.pkg.tar.zst") +source=("$url/releases/download/v$pkgver/imhex-$pkgver-ArchLinux-x86_64.pkg.tar.zst") md5sums=(SKIP) package() {