Last active
February 12, 2024 17:29
-
-
Save WeslenPy/cc302c5b2391344f9e77bd60a2198c08 to your computer and use it in GitHub Desktop.
Generate EXE with pyarmor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dateutil.relativedelta import relativedelta | |
from pyarmor.pyarmor import main | |
from datetime import datetime | |
from time import sleep | |
expired = datetime.date(datetime.now())+relativedelta(months=1) | |
make_license = ["licenses" ,"--expired", str(expired),"license"] | |
args =['pack', '--with-license', 'licenses/license/license.lic', '--clean', | |
'-e', ' --onefile --hidden-import comtypes', | |
'-x', ' --exclude venv --exclude .venv --plugin check_ntp_time', "--name","AppName","--output",".",'main.py'] | |
main(make_license) | |
main(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment