stackotter / swift-bundler

An Xcodeproj-less tool for creating cross-platform Swift apps.
https://swiftbundler.dev
Apache License 2.0
301 stars 14 forks source link

Windows support broken by `Socket` #54

Open stevapple opened 5 months ago

stevapple commented 5 months ago

The commit https://github.com/stackotter/swift-bundler/commit/7bfcf2069930ab484ec4beb377ebda2d375ad4bd adds dependency on https://github.com/stackotter/Socket, which blocks building on Windows.

To restore the support, we may make the dependency and related functionalities platform-specific.

stackotter commented 5 months ago

Ah, unfortunate, that may require making our own socket library in future then (or updating that old one), cause I'd like to eventually bring hot reloading to windows too.

I'm currently in the middle of refactoring a bunch and bringing hot reloading to Linux so I'll look into addressing this as part of/after that.

Are you using swift bundler on windows at the moment? I don't recall ever putting effort into making it support Windows so that's kinda cool if it does even if it's indirectly via the linux platform option

furby-tm commented 5 months ago

@stackotter I think issues are disabled on that project, but might be worth mentioning ZeroMQ, it has solid cross-platform support, with TCP sockets on Microsoft Windows, and Posix sockets on macOS and Linux.

stackotter commented 5 months ago

Does ZeroMQ let you just use their cross-platform tcp socket wrapper?