Skip to content

build(release): add release.sh and .env server overrides for playtest builds#457

Open
stephenkirk wants to merge 1 commit into
devfrom
steph/playtest-build-prep
Open

build(release): add release.sh and .env server overrides for playtest builds#457
stephenkirk wants to merge 1 commit into
devfrom
steph/playtest-build-prep

Conversation

@stephenkirk
Copy link
Copy Markdown
Member

Two playtest builds from one working tree: --dev bakes in your .env and keeps the -DEV warning; --release drops .env, strips ~preN/-DEV, and pins config to production.
.env now overrides server_url/server_port (loaded into MP.ENV); the alternative was asking playtesters to hand-edit the config buried inside their Multiplayer.jkr in some other folder.
Falls back to config.lua when unset, logs the chosen endpoint on connect, and bumps the manifest to 0.4.0~pre2-DEV.
Builds still come from the working tree, uncommitted edits included — clean-ref builds are a TODO in the script.

- scripts/release.sh: --dev (bakes working-tree .env, keeps -DEV warning)
  and --release (drops .env, sanitizes version/config to production) builds
- core.lua: load all .env keys into MP.ENV; server_url/server_port now
  overridable from .env, falling back to config.lua
- .env.example: document the new server_url/server_port overrides
- bump version 0.4.0~pre1-DEV -> ~pre2-DEV
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant