mirror of
https://github.com/bryanthaboi/gen1recomp.git
synced 2026-08-16 00:02:23 +02:00
7e57e3174e
TLS source landed earlier, but release CI never packaged the dialer, so hosted archipelago.gg rooms (wss://) failed on stock Windows builds. Build the Native AOT DLL on windows-2022 and bundle it from build.sh. Co-authored-by: Cursor <cursoragent@cursor.com>
gen1tls — desktop TLS dialer
Native AOT library that gives mods a non-blocking TLS client with the same
handle/poll contract as the Android TlsSocket / love.system.tls* bridge.
- Windows: Schannel via
SslStream(system trust store, SNI) - Linux / macOS: same project, publish with
-r linux-x64/osx-x64/osx-arm64when those builds are wired up
Build
dotnet publish native/tls_dial/Gen1Tls.csproj -c Release -r win-x64 -o dist/native/win-x64
The Windows game zip script already does this:
powershell -ExecutionPolicy Bypass -File scripts/build_windows.ps1 -Version 0.1.77
Ship gen1tls.dll (or libgen1tls.so / libgen1tls.dylib) next to the
fused executable. Mods load it through LuaJIT FFI; no .NET runtime is
required on the player's machine.
Official Windows release zips get gen1tls.dll from CI: a windows-2022
job publishes this project and scripts/build.sh's Windows packaging copies
it beside gen1recomp.exe (see GEN1TLS_DLL / dist/native/win-x64).
Android
On Android, the matching API is exposed as love.system.tlsOpen /
tlsStatus / tlsSend / tlsReceive / tlsError / tlsClose, backed by
org.love2d.android.TlsSocket.