diff options
| author | Somhairle H. Marisol <[email protected]> | 2026-09-20 16:33:08 +0800 |
|---|---|---|
| committer | Somhairle H. Marisol <[email protected]> | 2026-09-20 16:33:08 +0800 |
| commit | 0b4306938f75430ed1f44c5eb3bf4585cdfa9a9b (patch) | |
| tree | 8c7c5f5fbabafb18b3f787847b659e54a799f14f /scripts/m6c-run.sh | |
| parent | 3aa0049bb092694b5168d99bc6ac893b1db4740a (diff) | |
| download | living-village-0b4306938f75430ed1f44c5eb3bf4585cdfa9a9b.tar.gz | |
feat(m6c): add Linux release package and delivery docs
[Change Nature]
- This commit adds the M6c Linux delivery surface without changing simulation behavior.
[New Capability]
- Publish self-contained linux-x64 output with framework-dependent fallback and a package-relative launcher.
- Document the menu, controls, save paths, autoplay verification, milestones, and asset/license boundaries.
[Implementation]
- Add the M6c packaging and startup scripts.
- Add release notes and an asset/license inventory.
- Keep release artifacts and verification evidence under ignored artifacts/m6c-release/.
[Impact]
- Runtime code and M3 acceptance artifacts are unchanged.
- The package was exercised under Xvfb; prior provider metadata remains an unstaged worktree change.
Diffstat (limited to 'scripts/m6c-run.sh')
| -rwxr-xr-x | scripts/m6c-run.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/m6c-run.sh b/scripts/m6c-run.sh new file mode 100755 index 0000000..5b73c6f --- /dev/null +++ b/scripts/m6c-run.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -euo pipefail + +SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +APP_DIR="$SCRIPT_DIR/app" + +if [[ ! -d "$APP_DIR" ]]; then + printf 'M6c package app directory not found: %s\n' "$APP_DIR" >&2 + exit 2 +fi + +if [[ -z "${LV_SAVE_PATH:-}" ]]; then + export LV_SAVE_PATH="$SCRIPT_DIR/living-village.save" +elif [[ "$LV_SAVE_PATH" != /* ]]; then + export LV_SAVE_PATH="$SCRIPT_DIR/$LV_SAVE_PATH" +fi + +cd "$SCRIPT_DIR" + +if [[ -x "$APP_DIR/LivingVillage.Desktop" ]]; then + exec "$APP_DIR/LivingVillage.Desktop" "$@" +fi + +if [[ -f "$APP_DIR/LivingVillage.Desktop.dll" ]] && command -v dotnet >/dev/null 2>&1; then + exec dotnet "$APP_DIR/LivingVillage.Desktop.dll" "$@" +fi + +printf 'Living Village executable not found or framework-dependent dotnet is unavailable.\n' >&2 +exit 127 |
