forked from inferno-os/inferno-os
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-macos-headless.sh
More file actions
executable file
·49 lines (40 loc) · 1023 Bytes
/
build-macos-headless.sh
File metadata and controls
executable file
·49 lines (40 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
#
# Build InferNode for macOS ARM64 (Headless mode)
#
set -e
ROOT="$(cd "$(dirname "$0")" && pwd)"
export ROOT
echo "=== InferNode macOS ARM64 Build (Headless) ==="
echo "ROOT=$ROOT"
echo ""
# Set up environment for macOS ARM64
export SYSHOST=MacOSX
export OBJTYPE=arm64
export PATH="$ROOT/MacOSX/arm64/bin:$PATH"
export AWK=awk
export SHELLNAME=sh
echo "Building for: SYSHOST=$SYSHOST OBJTYPE=$OBJTYPE"
echo "GUI Backend: headless (no display)"
echo ""
# Build emulator
cd "$ROOT/emu/MacOSX"
echo "Cleaning previous build..."
mk clean 2>/dev/null || true
echo "Building headless emulator..."
mk GUIBACK=headless
if [[ -f o.emu ]]; then
echo ""
echo "=== Build Successful ==="
ls -lh o.emu
file o.emu
echo ""
echo "Checking for SDL dependencies..."
otool -L o.emu | grep -i sdl || echo " ✓ No SDL dependencies (correct for headless)"
echo ""
echo "Emulator: $ROOT/emu/MacOSX/o.emu"
echo "Run with: ./o.emu -r../.."
else
echo "Build failed!"
exit 1
fi