mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Replaces the zip-based ci/build.sh flow with installer outputs (Inno Setup on Windows, productbuild on macOS, cpack DEB on Linux) signed via Microsoft Trusted Signing on Windows and Apple Developer ID on macOS. Plugin code: factory wavetables and presets now ship as files via the installer rather than embedded BinaryData. PluginProcessor implements getProgramDirectory/getFactoryProgramDirectories so gin scans factory content from systemResourceRoot. First-run migration copies any presets from the legacy com.socalabs/Wavetable/programs path into the new user dir under Library/Audio/Presets/SocaLabs/Wavetable. Bumps gin submodule to match Identity for getFactoryProgramDirectories support.
41 lines
1.1 KiB
Bash
Executable file
41 lines
1.1 KiB
Bash
Executable file
#!/bin/bash -e
|
|
set -x
|
|
|
|
cd "$(dirname "$0")"
|
|
ROOT=$(pwd)
|
|
|
|
VER="$GITHUB_REF_NAME"
|
|
|
|
# Extract the changelog section for the current version
|
|
# Matches version with optional colon, captures until the next version line or EOF
|
|
NOTES=$(awk -v ver="$VER" '
|
|
BEGIN { found=0; printing=0; pattern="^"ver":?$" }
|
|
$0 ~ pattern { found=1; printing=1; next }
|
|
printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 }
|
|
printing { print }
|
|
END { if (!found) exit 1 }
|
|
' ./Changelist.txt)
|
|
|
|
if [ $? -ne 0 ] || [ -z "$NOTES" ]; then
|
|
echo "Error: Version $VER not found in Changelist.txt or has no content"
|
|
exit 1
|
|
fi
|
|
|
|
echo "$NOTES" > /tmp/release_notes.txt
|
|
|
|
ASSETS=(
|
|
"./Binaries Linux"/*.deb
|
|
"./Binaries Windows"/*.exe
|
|
"./Binaries macOS"/*.pkg
|
|
)
|
|
if [ -f "./Binaries macOS/Symbols_Mac.zip" ]; then
|
|
ASSETS+=("./Binaries macOS/Symbols_Mac.zip")
|
|
fi
|
|
|
|
gh release create "$VER" --title "$VER" -F /tmp/release_notes.txt "${ASSETS[@]}"
|
|
|
|
for f in "./Binaries Linux"/*.deb \
|
|
"./Binaries Windows"/*.exe \
|
|
"./Binaries macOS"/*.pkg; do
|
|
curl -F "files=@${f}" "https://socalabs.com/files/set.php?key=$APIKEY"
|
|
done
|