Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ed4e7c2606
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (36 sloc) 1.448 kb
# -*- mode: python -*-
projectpath = 'C:\\MinGW\\msys\\1.0\\home\\vincent\\workspace\\minild33\\'
pyinstallerpath = 'C:\\MinGW\\msys\\1.0\\home\\vincent\\pyinstaller-1.5.1'
datapath = projectpath + "data\\"
a = Analysis([os.path.join(HOMEPATH,'support\\_mountzlib.py'), os.path.join(HOMEPATH,'support\\useUnicode.py'), projectpath + 'nodereviver.py'],
pathex=[pyinstallerpath])
pyz = PYZ(a.pure)
a.binaries = [x for x in a.binaries if not
(os.path.basename(x[1]).lower() in ("msvcr90.dll", "msvcm90.dll", "kernel32.dll", "msvcp90.dll") or ("microsoft" in x[1].lower()))]
pyd = []
other = []
for binary in a.binaries:
if os.path.splitext(binary[1])[1].lower() == ".pyd":
pyd.append(binary)
else:
other.append(binary)
for file in os.listdir(datapath):
a.datas.append(("data/" + os.path.basename(file), datapath + file, 'DATA'))
a.datas.append(("README.txt", projectpath + "README.txt", "DATA"))
exe = EXE( pyz,
a.scripts,
a.zipfiles,
pyd,
name=os.path.join('dist', 'nodereviver.exe'),
debug=False,
strip=False,
upx=True,
console=False , icon=projectpath + 'misc/nodereviver.ico')
coll = COLLECT( exe,
a.datas,
other,
strip=False,
upx=True,
name=os.path.join('dist', 'nodereviver'))
app = BUNDLE(coll,
name=os.path.join('dist', 'nodereviver.exe.app'))
Jump to Line
Something went wrong with that request. Please try again.