I just finished a good script or not, that encrypts it's pack "eix, epk" for the official tool MakePack.
Here is the Python script:
import os
import shutil
PACK = "uiscript"
os.system("_Junction -s "+PACK+" ../_MakePack/pack_source/"+PACK+"")
with open(PACK+'.txt' , 'w') as fp:
fp.write('FolderName "pack"n')
fp.write('PackName "'+PACK+'"nn')
fp.write('List ExcludedFolderNameListn{nt".svn"n}nn')
fp.write('List ExcludedPathListn{nt"d:/ymir work/bin/"n}nn')
fp.write('List ExcludedFileNameListn{nt"_MakePack.exe"n}nn')
fp.write('List CSHybridEncryptExeNameListn{nt"py"n}nn')
fp.write('List FileListn{n')
for root, directories, files in os.walk(""+PACK+""):
for filename in files:
filepath = os.path.join(root, filename)
fp.write('t"'+filepath+'"n')
fp.write('}')
fp.close()
os.system("_MakePack.exe "+PACK+'.txt')
os.system("_Junction -d "+PACK+"")
source = os.listdir("../_MakePack/")
destination = "pack_log/"
for files in source:
if files.endswith(".log"):
shutil.move(files,destination)
To succeed has encrypt your pack you must open the python file change this
change line 4
PACK = "uiscript"
in
PACK = "The name of your PACK"
Double clic file "_MakePack.py"
and now it's over