Beispiel #1
0
	
tf.close()
sys.exit()
'''------------------------------------------------------------------'''

#-----------------------------------------------------------------------
from bbfreeze import Freezer
f = Freezer(releasePath)
f.addScript("CrossMgr.pyw")
f()    # starts the freezing process

#-----------------------------------------------------------------------
# Remove any hard-coded library dependencies
#
for f in os.listdir( releasePath ):
	if not f.endswith( '.so' ):
		continue
	fname = os.path.join(releasePath, f)
	p = subprocess.Popen( ['chrpath', '-r', fname], stdout=subprocess.PIPE )
	ret = p.communicate()
	print( f, ret )

import Version
tarName = Version.AppVerName.replace(' ', '_') + '_i386.tar.gz'
tf = tarfile.open( os.path.join(distPath, tarName), 'w:gz' )
for f in os.listdir( releasePath ):
	tf.add( os.path.join(releasePath, f), os.path.join('CrossMgr',f) )

for dir in ['images', 'htmldoc', 'html']:
	targetDir = os.path.join( 'CrossMgr', dir )
	for f in os.listdir( dir ):
Beispiel #2
0
tf.close()
sys.exit()
'''------------------------------------------------------------------'''

#-----------------------------------------------------------------------
from bbfreeze import Freezer
f = Freezer(releasePath)
f.addScript("CrossMgr.pyw")
f()  # starts the freezing process

#-----------------------------------------------------------------------
# Remove any hard-coded library dependencies
#
for f in os.listdir(releasePath):
    if not f.endswith('.so'):
        continue
    fname = os.path.join(releasePath, f)
    p = subprocess.Popen(['chrpath', '-r', fname], stdout=subprocess.PIPE)
    ret = p.communicate()
    print(f, ret)

import Version
tarName = Version.AppVerName.replace(' ', '_') + '_i386.tar.gz'
tf = tarfile.open(os.path.join(distPath, tarName), 'w:gz')
for f in os.listdir(releasePath):
    tf.add(os.path.join(releasePath, f), os.path.join('CrossMgr', f))

for dir in ['images', 'htmldoc', 'html']:
    targetDir = os.path.join('CrossMgr', dir)
    for f in os.listdir(dir):