Skip to content

armgit / nota

Public Imported from GitHub
0

Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.

1.1 KB
Raw Blame
#!/usr/bin/env bash
# SPDX-License-Identifier: AGPL-3.0-only
#
# Full local Nota build: native engine (universal) + managed.
# Usage: scripts/build.sh

set -euo pipefail
cd "$(dirname "$0")/.."

export PATH="/opt/homebrew/bin:$PATH"

echo "==> Building native engine (universal arm64+x86_64)"
cmake -G Ninja -S src/native/nota.engine -B src/native/nota.engine/build \
  -DCMAKE_BUILD_TYPE=Release
cmake --build src/native/nota.engine/build

echo "==> Scanner self-test"
src/native/nota.engine/build/nota-scanner-selftest
lipo -info src/native/nota.engine/build/libnota_engine.dylib

echo "==> Building managed (.NET)"
dotnet build Nota.sln -c Release --nologo

echo "==> Smoke test"
dotnet run --project tests/Nota.SmokeTest -c Release --nologo

echo "==> Plugin scan check (large folders, scratch data dir)"
NOTA_DATA_DIR="$(mktemp -d /tmp/nota-scan-scale-XXXX)" dotnet tests/Nota.SmokeTest/bin/Release/net10.0/Nota.SmokeTest.dll \
  --scan-scale "$PWD/src/native/nota.engine/build/nota-scanworker"

echo "==> Done. Run the app with: dotnet run --project src/managed/Nota.App"