Files
bible-app/build-mac.command
christianandClaude Opus 5 0db5e9b07d Bible App 1.4.34 — full source
First commit on the local Gitea server, made after moving the tree off the
Windows machine. Build outputs, node_modules and the AI models stay out
(see .gitignore); everything the installer build needs is tracked.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-24 13:05:20 -04:00

32 lines
787 B
Bash

#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
# One-click builder for BibleApp macOS app
# 1) Installs dependencies
# 2) Packages Electron app for Intel and Apple Silicon
# 3) Opens the dist folder
echo "=== BibleApp macOS Builder ==="
if ! command -v node >/dev/null 2>&1; then
echo "Node.js is not installed. Install from https://nodejs.org and run again."
exit 1
fi
# Install deps (safe to re-run)
echo -e "\nInstalling dependencies..."
npm install --no-audit --no-fund
# Package (both archs)
echo -e "\nPackaging app (darwin x64, arm64)..."
./node_modules/.bin/electron-packager . BibleApp \
--platform=darwin \
--arch=x64,arm64 \
--out=dist \
--overwrite
# Open dist
echo -e "\nBuild complete. Opening dist folder..."
open dist