mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
Both Linux architectures build natively on Ubuntu 24.04 runners (glibc 2.39 floor, Vulkan on both), publish linux-arm64 plus linux-<arch>-deb and -rpm (hex.deb, hex.rpm) built with nfpm and installed on Ubuntu and Fedora in the build job. hex-bin gains aarch64. Package installs report deb-<arch> or rpm-<arch> through dpkg/rpm ownership and get the stable update command.
26 lines
1.1 KiB
Shell
Executable file
26 lines
1.1 KiB
Shell
Executable file
#!/usr/bin/env bash
|
|
# assemble.sh <in> <dist>: gathers the release files from the verified
|
|
# artifacts in <in>/<name>/ into <dist>, refusing any file that is not one of
|
|
# the release service targets for HEX_VERSION (docs/plans/release-service.md)
|
|
# or that two artifacts both hold.
|
|
. "$(dirname "$0")/lib.sh"
|
|
|
|
in=$(posix "$1")
|
|
dist=$(posix "$2")
|
|
v=$HEX_VERSION
|
|
mkdir -p "$dist"
|
|
for file in "$in"/*/*; do
|
|
name=$(basename "$file")
|
|
[ "$name" = SHA256SUMS ] && continue
|
|
case "$name" in
|
|
"hex-$v-linux-x64" | "hex-$v-linux-x64.deb" | "hex-$v-linux-x64.rpm" | \
|
|
"hex-$v-linux-arm64" | "hex-$v-linux-arm64.deb" | "hex-$v-linux-arm64.rpm" | \
|
|
"Hex-$v-macos-arm64.zip" | "Hex-$v-macos-arm64.dmg" | \
|
|
"Hex-$v-windows-x64.exe" | "Hex-$v-windows-arm64.exe" | \
|
|
"Hex-Setup-$v-windows-x64.exe" | "Hex-Setup-$v-windows-arm64.exe") ;;
|
|
*) die "$name is not a release file of Hex $v." ;;
|
|
esac
|
|
[ ! -e "$dist/$name" ] || die "Two artifacts hold $name."
|
|
cp "$file" "$dist/$name"
|
|
done
|
|
(cd "$dist" && ls -l && sha256 -- *) | tee -a "${GITHUB_STEP_SUMMARY:-/dev/null}"
|