pyarmor icon indicating copy to clipboard operation
pyarmor copied to clipboard

[Question] Distributing for other OS

Open pauloswear opened this issue 3 years ago • 4 comments

Hi Jondy and Mantainers

Recently I switched my main OS to macOS and I distribute it for users that uses windows. When I run on macOS terminal the command

pyarmor obfuscate main.py --no-runtime --platform windows.x86 --recursive --restrict 2 --advanced 4

It shows: VM Protect mode only works for Windows

I was searching for something like that in Issues and documentation, there's not a thing about that, is there anyway to obfuscate with super mode (VM) for windows using macOS?

Thanks

pauloswear avatar Aug 23 '22 20:08 pauloswear

It should not be problem. Now I'm in holiday, I'll check it when I'm back to office about Sep. 1.

jondy avatar Aug 25 '22 07:08 jondy

I have checked the source, it need more work to support cross-platform VM mode. Because vm mode uses special key which only provided by windows. In a short, it need to build new _pytransform.dylib of Darwin to generate vm mode scripts.

At this time I have no plan to build this library only for cross platform vm mode.

jondy avatar Aug 31 '22 10:08 jondy

It`s ok Jondy.

If I upgrade runtime to --advanced 5 (SPP) will be possible to distribute to other OS using --no-runtime? The plan is generate all runtime and encrypt main on Windows and later mantain updates on MacOS using --no-runtime (cause it`s already done)

pauloswear avatar Aug 31 '22 20:08 pauloswear

It will be implemented in future version, but now SPP mode is not cross-platform.

jondy avatar Aug 31 '22 22:08 jondy