#!/bin/bash # Builds Ora for macOS (universal zip), Windows (NSIS) and Linux (AppImage + deb) and writes release// with # SHA256SUMS and latest.json, ready for: # hf upload Devseis/ora-releases release/ releases --repo-type dataset # (Ora 0.5 and later live in the dataset's releases/ folder; its root keeps Ora 0.1–0.4, the video app.) set -euo pipefail cd "$(dirname "$0")/../app" VERSION=$(node -p "require('./package.json').version") OUT="../release/$VERSION" npm test rm -rf dist npm run dist npm run dist:win npm run dist:linux rm -rf "$OUT"; mkdir -p "$OUT" cp "dist/Ora-$VERSION-mac-universal.zip" "dist/Ora-$VERSION-windows-x64-setup.exe" \ "dist/Ora-$VERSION-linux-x86_64.AppImage" "dist/Ora-$VERSION-linux-x86_64.deb" "$OUT/" cd "$OUT" shasum -a 256 Ora-* > SHA256SUMS size() { stat -f %z "$1"; } cat > latest.json <