Pushing a v* tag runs release.yml: the Windows, macOS and Linux workflows
again, every job required, then a GitHub release of what they packed - an
archive per system and architecture, and the source with its submodules,
which GitHub's own archives leave out.
tools/package.sh packs one: the four programs, the .reaktor-root marker,
the files they read at runtime and every license. Those files come from
tools/assets.sh, which the macOS app bundle now uses too, so reaktor.app
carries the catalogs, the Japanese font and simple.css it lacked. Every
build packs, runs the packed showcase and checks it draws its Translations
page as the built one does. The workflows can be called with a version,
and each keeps a concurrency group of its own.
macOS has not built since 0de1f81: make-bundle.sh listed samples/*.h,
which that commit emptied, and set -e ended it silently.
Windows packages link the C runtime statically; CMakeLists.txt had forced
the DLL one. Linux packages are built on Debian 12, for glibc 2.36, and on
Debian 13 for RISC-V, which Debian 12 lacks. plutovg's license now joins
the others in licenses/.
Verified here: a Windows x64 package, run from outside the repository,
draws the Popups, Styling and Translations pages as the built showcase
does, and imports nothing but system DLLs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.1 KiB
Bash
Executable File
37 lines
1.1 KiB
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
bundle=$1
|
|
binary=$2
|
|
infoplist=$3
|
|
root=$4
|
|
|
|
rm -rf "$bundle"
|
|
mkdir -p "$bundle/Contents/MacOS"
|
|
mkdir -p "$bundle/Contents/Resources"
|
|
|
|
cp "$binary" "$bundle/Contents/MacOS/reaktor"
|
|
cp "$infoplist" "$bundle/Contents/Info.plist"
|
|
|
|
if command -v iconutil >/dev/null 2>&1 && command -v sips >/dev/null 2>&1 \
|
|
&& [ -f "$root/assets/icons/reaktor-icon.png" ]; then
|
|
iconset=$(mktemp -d "${TMPDIR:-/tmp}/reaktor-iconset.XXXXXX")/reaktor.iconset
|
|
mkdir -p "$iconset"
|
|
for pair in "16 icon_16x16" "32 icon_16x16@2x" \
|
|
"32 icon_32x32" "64 icon_32x32@2x" \
|
|
"128 icon_128x128" "256 icon_128x128@2x" \
|
|
"256 icon_256x256" "512 icon_256x256@2x" \
|
|
"512 icon_512x512" "1024 icon_512x512@2x"
|
|
do
|
|
px=${pair% *}; name=${pair#* }
|
|
sips -z "$px" "$px" "$root/assets/icons/reaktor-icon.png" \
|
|
--out "$iconset/$name.png" >/dev/null 2>&1
|
|
done
|
|
iconutil -c icns "$iconset" -o "$bundle/Contents/Resources/reaktor.icns"
|
|
rm -rf "$(dirname "$iconset")"
|
|
fi
|
|
|
|
sh "$root/tools/assets.sh" "$root" "$bundle/Contents/Resources"
|
|
|
|
echo "assembled: $bundle"
|