54 lines
2.7 KiB
Bash
Executable File
54 lines
2.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
source "$(dirname "$0")/env.sh"
|
|
scripts/build-linux.sh
|
|
scripts/build-windows.sh
|
|
python3 tools/extractors/prepare.py --audio sounds musicsecretlab
|
|
for rid in linux-x64 win-x64; do
|
|
out="dist/$rid"
|
|
mkdir -p "$out/assets" "$out/scenes/level1b" "$out/scenes/animations" "$out/audio/sounds" "$out/licenses" "$out/docs"
|
|
for directory in ASE png gam omt; do cp -a "../Original/$directory" "$out/assets/"; done
|
|
cp ../Original/fontsmall.png ../Original/green_font.png ../Original/NewGame.tsk ../Original/readme.txt "$out/assets/"
|
|
cp -a artifacts/extracted/level1b/. "$out/scenes/level1b/"
|
|
cp -a artifacts/extracted/animations/. "$out/scenes/animations/"
|
|
cp -a artifacts/extracted/musicsecretlab/. "$out/audio/"
|
|
cp -a artifacts/extracted/sounds/. "$out/audio/sounds/"
|
|
cp .tools/sdl-win/LICENSE.txt "$out/licenses/SDL3.txt"
|
|
cp docs/infrastructure.md "$out/BUILD-AND-LIMITATIONS.md"
|
|
cp docs/compatibility.md "$out/COMPATIBILITY.md"
|
|
cp docs/dependencies.md "$out/licenses/DEPENDENCIES.md"
|
|
cp -a docs/. "$out/docs/"
|
|
cp README.md "$out/SOURCE-README.md"
|
|
cat > "$out/README.md" <<'NOTES'
|
|
# Neutron original-scene investigation package
|
|
|
|
Linux: run ./launch-scene.sh. Windows: run launch-scene.cmd.
|
|
Append --headless --frames 2 to render without a window, or --screenshot lab.ppm
|
|
to save GPU readback. A Vulkan 1.3 graphics driver/loader is required.
|
|
|
|
This package includes the .NET runtime, SDL3, shaders and local asset copies.
|
|
The default shows the original lab and an animated Jimmy preview at its recorded
|
|
startpoint. C switches stored/orbit camera; arrows/WASD orbit, +/- zoom, F11
|
|
fullscreen, Escape quit. These are investigation controls.
|
|
|
|
This is not the finished playable game. Original collision, controller, intro,
|
|
interactions, progression, AI and saves remain incomplete. Animation loop/speed
|
|
are preview policies. Native Windows execution has not been verified.
|
|
|
|
See BUILD-AND-LIMITATIONS.md, COMPATIBILITY.md and docs/ for evidence and remaining
|
|
work. SOURCE-README.md describes development from the separate source repository.
|
|
NOTES
|
|
done
|
|
cat > dist/linux-x64/launch-scene.sh <<'LAUNCH'
|
|
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
here="$(cd "$(dirname "$0")" && pwd)"
|
|
exec "$here/GamePort" --assets "$here/assets" --scene "$here/scenes/level1b/scene.json" --level gam/level1b.gam --original-camera --with-player "$@"
|
|
LAUNCH
|
|
chmod +x dist/linux-x64/launch-scene.sh
|
|
cat > dist/win-x64/launch-scene.cmd <<'LAUNCH'
|
|
@echo off
|
|
"%~dp0GamePort.exe" --assets "%~dp0assets" --scene "%~dp0scenes\level1b\scene.json" --level gam/level1b.gam --original-camera --with-player %*
|
|
LAUNCH
|
|
printf '%s\n' 'Local Linux and Windows investigation packages prepared in dist/.'
|