Files
brass-and-sigil/scripts/deploy.config.template.ps1
Matt f280e107f3 Add 'local' deploy mode to Deploy-Brass.ps1
When ServerSshHost = 'local' the server-binary stage skips scp/ssh and
does an in-place Copy-Item + chmod + Move-Item on the local filesystem.
Pre-flight pgrep also runs locally. Allows running the deploy script on
the server itself (glados in our case) without setting up ssh-to-self.

Other deploy modes (remote scp/ssh) unchanged.
2026-05-22 14:08:02 +00:00

45 lines
2.6 KiB
PowerShell

# Local deploy configuration. Copy this file to `deploy.config.ps1` and fill in
# real values. `deploy.config.ps1` is gitignored so your local paths and the
# server hostname never end up in version control.
#
# Deploy-Brass.ps1 dot-sources this file. Every variable below is required.
# ─── Public file hosting ───────────────────────────────────────────────────
# Local path that maps (via SMB or similar) to the public docroot that hosts
# `manifest.json` and the launcher .exe. Files copied here become reachable at
# the public URLs embedded in the manifest (`launcherUrl`, file URLs, etc.).
# Example: 'Z:\www\html\example.com\public\pack'
$DeployShare = 'CHANGE_ME'
# Public URL of the deployed manifest. Used for the version-bump pre-flight:
# Deploy-Brass.ps1 fetches this before deploying so it can refuse if you
# changed pack content but forgot to bump pack/pack.lock.json's version
# (clients with a cached pack at that version would skip the sync).
$ManifestPublicUrl = 'https://CHANGE_ME/pack/manifest.json'
# ─── Server (brass-sigil-server daemon host) ───────────────────────────────
# user@host for the Linux box running the daemon.
#
# Set to the literal string 'local' if Deploy-Brass.ps1 is being run on the
# server itself (e.g. on glados over the Telegram bridge). In local mode the
# script skips scp/ssh and copies the binary directly to $ServerBinaryRemote
# with an in-place atomic rename; $ServerSshKey is ignored.
$ServerSshHost = 'user@CHANGE_ME'
# Path to the local SSH private key authorised on the server.
# Ignored when $ServerSshHost = 'local'.
$ServerSshKey = "$env:USERPROFILE\.ssh\id_ed25519"
# Absolute path where the brass-sigil-server binary lives -- on the remote
# host in SSH mode, on the local filesystem in 'local' mode.
# `Deploy-Brass.ps1` writes to "<this>.new" then renames over for atomic swap.
$ServerBinaryRemote = '/home/user/brass-sigil-server/brass-sigil-server'
# ─── Build outputs (don't normally need to change) ─────────────────────────
$LauncherPublishDir = 'launcher\bin\Release\net8.0-windows\win-x64\publish'
$LauncherExeName = 'ModpackLauncher.exe' # what dotnet publish produces
$LauncherDeployedAs = 'BrassAndSigil-Launcher.exe' # filename on the public host
$ServerPublishDir = 'server\bin\Release\net8.0\linux-x64\publish'
$ServerExeName = 'brass-sigil-server'