Skip to content

fix(webgl): exclude Velopack from the WebGL build + WebGL-only attach workflow#151

Merged
marceld23 merged 1 commit into
mainfrom
fix/webgl-velopack-guard
Jun 29, 2026
Merged

fix(webgl): exclude Velopack from the WebGL build + WebGL-only attach workflow#151
marceld23 merged 1 commit into
mainfrom
fix/webgl-velopack-guard

Conversation

@marceld23

Copy link
Copy Markdown
Owner

…tach workflow

The Release workflow built the WebGL player for the first time on the v0.6.2 tag
and failed: ClientUpdater.cs guarded Velopack with `#if !UNITY_EDITOR`, which still
compiles it for WebGL, but the browser build ships no Velopack DLL (its sync step is
desktop-only), so the script compile died with CS0246 'Velopack'.

WebGL has no auto-updater anyway (you "update" by reloading the page), so treat it
like the Editor:
- `using Velopack;` and Bootstrap() now guard on `!UNITY_EDITOR && !UNITY_WEBGL`.
- CheckForUpdates() takes the Editor stub branch (`UNITY_EDITOR || UNITY_WEBGL`),
  reporting NotInstalled instead of touching UpdateManager.

Also add .github/workflows/webgl-only.yml: a manual workflow that builds ONLY the
WebGL player and attaches it to an existing release (input: release_tag), without
rebuilding the desktop installers or Docker image and without touching the release
notes. Lets us deliver the v0.6.2 WebGL zip after the fix, and rebuild WebGL for the
end-to-end verification tracked in #132.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@marceld23 marceld23 merged commit 531dad6 into main Jun 29, 2026
12 checks passed
@marceld23 marceld23 deleted the fix/webgl-velopack-guard branch June 29, 2026 23:11
marceld23 added a commit that referenced this pull request Jun 29, 2026
Add the v0.6.2 entry to "Released versions" (gameplay polish, oxygen tank tiers
I/II/III, easier water exit, station-to-space flora seal, experimental browser
client) and mark the oxygen/water work log as shipped (#133). Add a work-log entry
for the WebGL release-build fix (Velopack compile guard) + the new webgl-only.yml
attach workflow (#151).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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