Subversion Repositories pub

Compare Revisions

No changes between revisions

Ignore whitespace Rev 198 → Rev 199

/relevation/trunk/win/zipdist.py
0,0 → 1,40
from zipfile import ZipFile
import os
import sys
import glob
import shutil
import platform
 
sys.path.append(os.path.abspath('.'))
 
import relevation
 
if sys.platform != 'win32':
print "This script is meant to be run in Windows only"
sys.exit(3)
 
if not os.path.isdir('dist'):
print "dist\\ must exist"
sys.exit(2)
 
plat = platform.architecture()
if plat[0] == '64bit':
plat = '64'
else:
plat = '32'
 
pkgver = 'relevation-%s_win%s' % ( relevation.__version__, plat )
zipname = pkgver + '.zip'
 
if os.path.isdir(pkgver):
shutil.rmtree(pkgver)
shutil.copytree("dist", pkgver)
 
print '>',zipname
with ZipFile(zipname, 'w') as zipf:
for f in glob.glob("%s\\*" % pkgver):
zipf.write(f)
print f
 
if os.path.isdir(pkgver):
shutil.rmtree(pkgver)
/relevation/trunk/win/make_exe.bat
0,0 → 1,7
@echo off
cd ..
echo Creating EXE(s)...
python win\setup_py2exe.py py2exe
echo Creating ZIP...
python win\zipdist.py
pause
/relevation/trunk/win/setup_py2exe.py
0,0 → 1,6
from distutils.core import setup
import py2exe
 
setup(console=['relevation.py'],
windows=['gui.py'],
ignores=['Crypto'])
/relevation/trunk/win/.
Property changes:
Added: bugtraq:number
+true
\ No newline at end of property