Jump to content

Python Script for MakePack.exe


Recommended Posts

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

  • Love 19
Link to comment
Share on other sites

  • 8 months later...
  • 6 months later...
  • 2 months later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.