mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 14:00:47 +02:00
add modules to gitignore, remove tracked modules
This commit is contained in:
parent
ba6e7b59ca
commit
5797f8b8b7
12 changed files with 488 additions and 38 deletions
|
|
@ -48,8 +48,8 @@ fetch_reporter () { # $1 platform, $2 output file
|
|||
#
|
||||
# Reset staging
|
||||
#
|
||||
rm -Rf "$PROJECT_ROOT/Installer/$PLATFORM/bin"
|
||||
mkdir -p "$PROJECT_ROOT/Installer/$PLATFORM/bin"
|
||||
rm -Rf "$PROJECT_ROOT/installer/$PLATFORM/bin"
|
||||
mkdir -p "$PROJECT_ROOT/installer/$PLATFORM/bin"
|
||||
rm -Rf "$PROJECT_ROOT/bin"
|
||||
mkdir -p "$PROJECT_ROOT/bin"
|
||||
|
||||
|
|
@ -58,7 +58,7 @@ mkdir -p "$PROJECT_ROOT/bin"
|
|||
# gin's loadDirectory() doesn't recurse, and the legacy BinaryData flow stored
|
||||
# presets flat in the user directory — keeping flat matches what users see.
|
||||
#
|
||||
FLAT_PRESETS="$PROJECT_ROOT/Installer/_flat_presets"
|
||||
FLAT_PRESETS="$PROJECT_ROOT/installer/_flat_presets"
|
||||
rm -Rf "$FLAT_PRESETS"
|
||||
mkdir -p "$FLAT_PRESETS"
|
||||
find "$PROJECT_ROOT/plugin/Resources/Presets" -name "*.xml" -type f -exec cp {} "$FLAT_PRESETS/" \;
|
||||
|
|
@ -101,8 +101,8 @@ if [ "$PLATFORM" = "macOS" ]; then
|
|||
cmake --preset xcode
|
||||
cmake --build --preset xcode --config Release
|
||||
|
||||
STAGE="$PROJECT_ROOT/Installer/macOS/bin/stage"
|
||||
PKG_DIR="$PROJECT_ROOT/Installer/macOS/bin/pkgs"
|
||||
STAGE="$PROJECT_ROOT/installer/macOS/bin/stage"
|
||||
PKG_DIR="$PROJECT_ROOT/installer/macOS/bin/pkgs"
|
||||
rm -Rf "$STAGE" "$PKG_DIR"
|
||||
mkdir -p "$STAGE/vst" "$STAGE/vst3" "$STAGE/au" "$STAGE/clap"
|
||||
mkdir -p "$STAGE/resources/Library/Audio/Presets/$VENDOR/$PLUGIN"
|
||||
|
|
@ -166,13 +166,13 @@ if [ "$PLATFORM" = "macOS" ]; then
|
|||
--install-location "/" \
|
||||
--identifier "${BUNDLE_BASE}.resources.pkg" \
|
||||
--version "$VERSION" \
|
||||
--scripts "$PROJECT_ROOT/Installer/macOS/scripts" \
|
||||
--scripts "$PROJECT_ROOT/installer/macOS/scripts" \
|
||||
"$PKG_DIR/resources.pkg"
|
||||
|
||||
# CrashReporter component: latest signed CrashReporter.app + this plugin's
|
||||
# registration JSON. Staged under .incoming and promoted by the postinstall
|
||||
# only if strictly newer (shared component, never downgraded).
|
||||
REP_STAGE="$PROJECT_ROOT/Installer/macOS/bin/reporter"
|
||||
REP_STAGE="$PROJECT_ROOT/installer/macOS/bin/reporter"
|
||||
REP_ROOT="$REP_STAGE/Library/Application Support/Rabien Software/Crash Reporter"
|
||||
rm -Rf "$REP_STAGE"
|
||||
mkdir -p "$REP_ROOT/Plugins" "$REP_ROOT/.incoming"
|
||||
|
|
@ -180,34 +180,34 @@ if [ "$PLATFORM" = "macOS" ]; then
|
|||
( cd "$REP_STAGE" && unzip -qo CrashReporter_Mac.zip && rm CrashReporter_Mac.zip )
|
||||
mv "$REP_STAGE/CrashReporter.app" "$REP_ROOT/.incoming/"
|
||||
fi
|
||||
cp "$PROJECT_ROOT/Installer/crashreporter.json" "$REP_ROOT/Plugins/wavetable.json"
|
||||
cp "$PROJECT_ROOT/installer/crashreporter.json" "$REP_ROOT/Plugins/wavetable.json"
|
||||
find "$REP_STAGE" -name ".DS_Store" -delete
|
||||
|
||||
if [ -n "${APPLICATION:-}" ] && [ -d "$REP_ROOT/.incoming/CrashReporter.app" ]; then
|
||||
codesign -s "$DEV_APP_ID" --options=runtime --timestamp --force -v "$REP_ROOT/.incoming/CrashReporter.app"
|
||||
fi
|
||||
|
||||
chmod +x "$PROJECT_ROOT/Installer/macOS/reporter-scripts/postinstall"
|
||||
chmod +x "$PROJECT_ROOT/installer/macOS/reporter-scripts/postinstall"
|
||||
|
||||
# Disable bundle relocation so the installer installs to our staged path
|
||||
# instead of redirecting to a CrashReporter.app found elsewhere via Spotlight.
|
||||
COMP_PLIST="$PROJECT_ROOT/Installer/macOS/bin/reporter-component.plist"
|
||||
COMP_PLIST="$PROJECT_ROOT/installer/macOS/bin/reporter-component.plist"
|
||||
pkgbuild --analyze --root "$REP_STAGE" "$COMP_PLIST"
|
||||
/usr/libexec/PlistBuddy -c "Set :0:BundleIsRelocatable false" "$COMP_PLIST" 2>/dev/null || true
|
||||
|
||||
pkgbuild --root "$REP_STAGE" --install-location "/" \
|
||||
--identifier "${BUNDLE_BASE}.crashreporter.pkg" --version "$VERSION" \
|
||||
--component-plist "$COMP_PLIST" \
|
||||
--scripts "$PROJECT_ROOT/Installer/macOS/reporter-scripts" \
|
||||
--scripts "$PROJECT_ROOT/installer/macOS/reporter-scripts" \
|
||||
"$PKG_DIR/reporter.pkg"
|
||||
|
||||
# productbuild — combine into one signed installer
|
||||
cp "$PROJECT_ROOT/Installer/EULA.rtf" "$PKG_DIR/EULA.rtf"
|
||||
cp "$PROJECT_ROOT/Installer/macOS/welcome.txt" "$PKG_DIR/welcome.txt"
|
||||
cp "$PROJECT_ROOT/installer/EULA.rtf" "$PKG_DIR/EULA.rtf"
|
||||
cp "$PROJECT_ROOT/installer/macOS/welcome.txt" "$PKG_DIR/welcome.txt"
|
||||
|
||||
PKG_OUT="$PROJECT_ROOT/Installer/macOS/bin/${PLUGIN}.pkg"
|
||||
PKG_OUT="$PROJECT_ROOT/installer/macOS/bin/${PLUGIN}.pkg"
|
||||
|
||||
productbuild --distribution "$PROJECT_ROOT/Installer/macOS/distribution.xml" \
|
||||
productbuild --distribution "$PROJECT_ROOT/installer/macOS/distribution.xml" \
|
||||
--package-path "$PKG_DIR" \
|
||||
--resources "$PKG_DIR" \
|
||||
--version "$VERSION" \
|
||||
|
|
@ -278,7 +278,7 @@ else
|
|||
cmake --build --preset vs --config Release
|
||||
|
||||
ART_DIR="$PROJECT_ROOT/Builds/vs/${PLUGIN}_artefacts/Release"
|
||||
STAGE="$PROJECT_ROOT/Installer/win/bin"
|
||||
STAGE="$PROJECT_ROOT/installer/win/bin"
|
||||
|
||||
rm -Rf "$STAGE"
|
||||
mkdir -p "$STAGE/VST" "$STAGE/VST3" "$STAGE/CLAP"
|
||||
|
|
@ -292,12 +292,12 @@ else
|
|||
if fetch_reporter win "$REP_DIR/CrashReporter_Win.zip"; then
|
||||
( cd "$REP_DIR" && 7z x -y CrashReporter_Win.zip >/dev/null && rm CrashReporter_Win.zip )
|
||||
fi
|
||||
cp "$PROJECT_ROOT/Installer/crashreporter.json" "$REP_DIR/wavetable.json"
|
||||
cp "$PROJECT_ROOT/installer/crashreporter.json" "$REP_DIR/wavetable.json"
|
||||
|
||||
#
|
||||
# Sign binaries via Microsoft Trusted Signing.
|
||||
# Required env: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET.
|
||||
# Cert is referenced via Installer/win/metadata.json.
|
||||
# Cert is referenced via installer/win/metadata.json.
|
||||
#
|
||||
uuid_re='^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$'
|
||||
WIN_SIGN=0
|
||||
|
|
@ -325,7 +325,7 @@ else
|
|||
nuget install Microsoft.Trusted.Signing.Client -Version 1.0.86 \
|
||||
-OutputDirectory "$TOOLS_DIR" -ExcludeVersion -NonInteractive
|
||||
DLIB="$TOOLS_DIR/Microsoft.Trusted.Signing.Client/bin/x64/Azure.CodeSigning.Dlib.dll"
|
||||
METADATA="$PROJECT_ROOT/Installer/win/metadata.json"
|
||||
METADATA="$PROJECT_ROOT/installer/win/metadata.json"
|
||||
|
||||
sign_file () {
|
||||
"$SIGNTOOL" sign -v -fd SHA256 \
|
||||
|
|
@ -341,14 +341,14 @@ else
|
|||
fi
|
||||
|
||||
# Build installer .exe
|
||||
cd "$PROJECT_ROOT/Installer/win"
|
||||
cd "$PROJECT_ROOT/installer/win"
|
||||
ISCC="/c/Program Files (x86)/Inno Setup 6/ISCC.exe"
|
||||
if [ ! -f "$ISCC" ]; then
|
||||
ISCC="/c/Program Files/Inno Setup 6/ISCC.exe"
|
||||
fi
|
||||
"$ISCC" "$PROJECT_ROOT/Installer/win/${PLUGIN}.iss"
|
||||
"$ISCC" "$PROJECT_ROOT/installer/win/${PLUGIN}.iss"
|
||||
|
||||
EXE_OUT="$PROJECT_ROOT/Installer/win/bin/${PLUGIN}.exe"
|
||||
EXE_OUT="$PROJECT_ROOT/installer/win/bin/${PLUGIN}.exe"
|
||||
|
||||
# Sign installer
|
||||
if [ "$WIN_SIGN" = "1" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue