felixmaker / thunk

Build Rust program to support Windows XP, Vista and more
MIT License
18 stars 2 forks source link

I think that 'thunk' is not working well #6

Closed dontcryme closed 9 months ago

dontcryme commented 9 months ago

If i just follow the instruction below :

cargo new build_for_xp
cd build_for_xp
thunk --os xp --arch x86 -- --release

That release binary file is only works on my current os(windows 11 x64).

If i using that binary file in window xp then i got ".... .exe is not a valid win32 application" error.

Could you have been try execute that release file in windows xp?

felixmaker commented 9 months ago

Hi,

I have noticed the problem. Thank you for your reporting!

For now, you can add --subsystem console to make thunk work.

thunk --os xp --arch x86 --subsystem console -- --release

I will make --subsystem default to console in next version.

felixmaker commented 9 months ago

I have fixed it in v0.2.2. It should work now.

dontcryme commented 9 months ago

@felixmaker Thank you! It works very well.