myfreeer / chrome-pak-customizer

a simple command-line tool to pack and unpack pak files in chrome or chromium-based browser
MIT License
205 stars 36 forks source link

Compiling for Windows. #15

Open Alex313031 opened 1 year ago

Alex313031 commented 1 year ago

Hello, I have made some changes to pak, like using -O3, and adding color to --help, etc. I compiled for linux, but now I want to make an updated windows binary. The readme and wiki only has instructions for linux, except the LGPL 2.1 caveat.

How would I compile pak for windows?

myfreeer commented 1 year ago

For branch develop, building system is based on cmake, examples could be found:

For experimental branch 3.x, building system is based on cargo, compiled with cargo build command.

Alex313031 commented 1 year ago

@myfreeer Whats the difference between the 2x and 3x branch (besides a language change) did you add, for example, better brotli support?

myfreeer commented 1 year ago

better brotli support?

Yes, 3.x could strip the custom header of brotli compressed resource on unpacking, and rebuild it on packing. See https://github.com/myfreeer/chrome-pak-customizer/issues/11#issuecomment-1036977635 for more tech details.