Beispiel #1
0
def package():
	ignore_these = ['.git', '.svn', '.idea', '.settings', 'bin','build',
	'gen', 'libs/*', 'local.properties', 'projuard-project.txt', 'TEDemo.iml']
	def ignore_most(folder, files):
	    return ignore_these
	# # 拷贝TEDemo工程
	shutil.copytree(TE_DEMO_PATH, OUTPATH + TE_DEMO_PACKAGE_NAME, False, ignore_most)
	# # 拷贝libs目录
	shutil.copytree(TE_SDK_PAGH + "\\libs", OUTPATH + TE_SDK_PACKAGE_NAME)
	# # 拷贝生成的TEMobile.jar
	shutil.copyfile(OUTPATH + "TEMobile.jar", OUTPATH + TE_SDK_PACKAGE_NAME + "\\TEMobile.jar")
	# # 拷贝接口文档、开发指南、自测用例、转测excel
	shutil.copyfile(DOC1_PATH.decode('utf8').encode('gbk'), DOC1_TO.decode('utf8').encode('gbk'))
	shutil.copyfile(DOC2_PATH.decode('utf8').encode('gbk'), DOC2_TO.decode('utf8').encode('gbk'))
	shutil.copyfile(DOC3_PATH.decode('utf8').encode('gbk'), DOC3_TO.decode('utf8').encode('gbk'))
	shutil.copyfile(DOC4_PATH.decode('utf8').encode('gbk'), DOC4_TO.decode('utf8').encode('gbk'))

	# # 压缩TEDemo
	fileutil.zip(OUTPATH + TE_DEMO_PACKAGE_NAME, PACKAGE_PATH + TE_DEMO_PACKAGE_NAME)
	# # 压缩TESDK
	fileutil.zip(OUTPATH + TE_SDK_PACKAGE_NAME, PACKAGE_PATH + TE_SDK_PACKAGE_NAME)
Beispiel #2
0
def zip():
    zipprefix = "sedona_community-" + env.buildVersion()
    zipname = zipprefix + ".zip"
    zippath = os.path.join(env.home, zipname)
    fileutil.zip(zippath, stageDir, zipprefix + '/')
Beispiel #3
0
def zip():
  zipname = "sedona_community-" + env.buildVersion() + ".zip"
  zippath  = os.path.join(env.home, zipname)
  fileutil.zip(zippath, stageDir)