tamatebako / tebako

Tebako: an executable packager (for Ruby programs)
https://www.tebako.org
30 stars 6 forks source link

Implement support for Ruby 3.1 using native Windows build of dwarfs #117

Closed maxirmx closed 3 months ago

maxirmx commented 9 months ago

Since the previos attempt to build Windows version of tebako failed on the very late stages I belive we need to start with prototyping:

maxirmx commented 7 months ago

UPD (Proof of Concept) Ruby 3.x Windows build script with minimal dependencies on DLLs

A script that builds Ruby using native toolchain with minimal dependencies This option is not supported so some patching is required although very limited.

I won't merge this code for now because I am not sure if a simplified approcach (without cmake) can be easily adopted.

windows_setup.zip

maxirmx commented 7 months ago

UPD (Proof of Concept) A build script for native extension that uses ruby.exe exports

With Windows setup as attached to the previous comment I was able to generate import library pointing to ruby.exe itself instead of ruby dll; and use this library to build native extension.

It seems to be working,

ronaldtse commented 3 months ago

Thank you @maxirmx ! Looks like it's time to announce it on the blog!!

maxirmx commented 3 months ago

I will draft it today https://github.com/tamatebako/tamatebako.github.io/issues/29