build(release): add release.sh and .env server overrides for playtest builds#457
Open
stephenkirk wants to merge 1 commit into
Open
build(release): add release.sh and .env server overrides for playtest builds#457stephenkirk wants to merge 1 commit into
stephenkirk wants to merge 1 commit into
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two playtest builds from one working tree:
--devbakes in your.envand keeps the-DEVwarning;--releasedrops.env, strips~preN/-DEV, and pins config to production..envnow overridesserver_url/server_port(loaded intoMP.ENV); the alternative was asking playtesters to hand-edit the config buried inside theirMultiplayer.jkrin some other folder.Falls back to
config.luawhen unset, logs the chosen endpoint on connect, and bumps the manifest to0.4.0~pre2-DEV.Builds still come from the working tree, uncommitted edits included — clean-ref builds are a TODO in the script.