Skip to content

Add windows binary#1150

Open
Tobias Schäfer (tschaefermedia) wants to merge 2 commits into
shopware:mainfrom
tschaefermedia:main
Open

Add windows binary#1150
Tobias Schäfer (tschaefermedia) wants to merge 2 commits into
shopware:mainfrom
tschaefermedia:main

Conversation

@tschaefermedia

Copy link
Copy Markdown

Add Windows support

Adds Windows as a release target and fixes the one runtime path that broke on Windows.

Why

No Windows binary was ever published. I personally know some developers building extensions on Windows, so having a windows bianry to use would be nice here.

Not changed (verified fine on Windows)
root.go and project_image_proxy.go register SIGINT/os.Interrupt (delivered on Ctrl+C on Windows) alongside SIGTERM. Ctrl+C cleanup works as-is.

Known limitations

  • --graceful-stop-limit degrades to an immediate kill on Windows.
  • No CI coverage on windows-latest yet. CI is still Linux-only, so nothing guards against future Windows regressions. Should I add this as well?

Signal(SIGTERM) and Signal(0) return errors on windows, breaking
worker --graceful-stop-limit. Split the graceful-stop logic into
platform files: unix keeps SIGTERM-then-kill, windows kills directly.
Add windows amd64/arm64 targets (386 excluded, like linux) and
package them as zip archives.
@shyim

Copy link
Copy Markdown
Member

Hey,

Whats the intention here? Run the binary on Windows native and Shopware runs in Docker? Because for me this is kinda just tip of the "iceberg", from my experiences of past PHP on Windows is kinda really bad supported and involves a lot of hassle

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.

3 participants