Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] PyArmor / PyUpdater? #225

Closed
scullcandyz opened this issue Apr 20, 2020 · 2 comments
Closed

[QUESTION] PyArmor / PyUpdater? #225

scullcandyz opened this issue Apr 20, 2020 · 2 comments

Comments

@scullcandyz
Copy link

@scullcandyz scullcandyz commented Apr 20, 2020

Less of an issue more of a question, couldnt really find anything on this so ill just ask here. Could I obfuscate my scripts with PyArmor and then pack them with PyUpdater? Id assume this works as PyUpdater is build upon PyInstaller, figured id rather ask first.

@jondy
Copy link
Contributor

@jondy jondy commented Apr 20, 2020

After looking through the package PyUpdater, I think pyarmor should work with PyUpdater by this way:

  1. Generate a "foo.spec" by PyUpdater
  2. Generate foo-patched.spec by pyarmor

pyarmor pack --debug -s foo.spec foo.py

The patched foo-patched.spec could be used by PyUpdater in build command

If your scripts are modified, just obfuscate them again, all the options for command "pyarmor obfuscate" could be got from the output of command pack.

Refer to command pack and bundle-obfuscated-scripts-with-customized-spec-file

Feel free to let me know if there is any problem.

@scullcandyz
Copy link
Author

@scullcandyz scullcandyz commented Apr 25, 2020 •

Alright so I couldnt really get it to work that way, always ended up with PyArmor related errors on the final executable. Im sure these could have been fixed with a little research, but:

For future reference if anybody is having issues with the above. Just normally compiling it in PyArmor then zipping and putting it into "/pyu-data/new" works. From there on you can just normally sign, process and upload your update.

@jondy jondy closed this Jul 7, 2020
@jondy jondy pinned this issue Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.