dezem / SAK

Switch Army Knife (SAK)
2.21k stars 172 forks source link

How do you freeze Squirrel package #27

Closed shadow2560 closed 2 years ago

shadow2560 commented 2 years ago

Hi,

Sory to open an issue for that but I've difficulties to find what I want on this subject.

I want to do my own modification on Squirrel but I have some problems to freeze the package, if you have some informations on how to make this work I'm intrested in them.

dezem commented 2 years ago

Hi there, its very simple 😉

I use https://pypi.org/project/auto-py-to-exe/ to convert the https://github.com/julesontheroad/NSC_BUILDER/blob/master/py/ztools/squirrel.py file to an executable. Do there your modifications on the py file and then package it as exe.

shadow2560 commented 2 years ago

Thanks for your help.

When I did that the exe file was effectively created but I had some errors of modules during execution. But I've found a solution by modifying the spec file, I don't know if all functions will work with that but at least what I need work. I attach my spec file for those who want to do the same thing.

squirrel.spec.zip