Skip to content

Commit 9fb4bd7

Browse files
committed
ci: seed windowed+bordered springsettings on first run (resizable window on macOS)
1 parent 206bee6 commit 9fb4bd7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/macos-build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,11 @@ jobs:
468468
# deploy it there or the lobby is a black screen (game=generic ->
469469
# interface_root crashes on missing ShortenNameString -> Chobby nil).
470470
cp -f "\$GAME_DIR/chobby_config.json" "\$USER_DATA/chobby_config.json"
471+
# First-run window defaults: a normal bordered, resizable window.
472+
# The engine default is fullscreen, and borderless-windowed has no
473+
# resize controls on macOS, so seed a windowed/bordered config if the
474+
# user has none yet (their later changes via the lobby are preserved).
475+
[ -f "\$USER_DATA/springsettings.cfg" ] || printf 'Fullscreen = 0\nWindowBorderless = 0\n' > "\$USER_DATA/springsettings.cfg"
471476
# Do NOT set DYLD_LIBRARY_PATH — it overrides the system OpenGL
472477
# framework globally, breaking NSOpenGLContext inside SDL2's
473478
# Cocoa backend (SIGBUS in +[NSOpenGLContext currentContext]).

0 commit comments

Comments
 (0)