def run_binder_self_tests(source_path): build.execute( 'Running Binder self-test script...', 'cd {source_path}/test && ./self-test.py --binder {binder} --pybind11 {pybind11}' .format(binder=Options.binder, pybind11=Options.pybind11, source_path=source_path))
args["target_file_path"] = sys.argv[3] args["source_path"] = sys.argv[4] args["library_extension"] = sys.argv[5] args["platform"] = sys.argv[6] args["arch"] = sys.argv[7] args["target"] = sys.argv[8] args["gd_settings_dir"] = str(Path(sys.argv[1], "../..").resolve()) os.chdir(sys.argv[1]) # Get older dll out of the way on Windows. lib_name = "%s.%s" % (args["target_file_path"], args["library_extension"]) try: if os.path.exists(lib_name) and args[ "platform"] == "windows" and os.name == "nt": # if os.path.exists(lib_name + ".old"): # os.remove(lib_name + ".old") os.replace(lib_name, lib_name + ".old") except OSError as e: raise OSError( "Cannot delete Windows DLL at \"%s\"! Please delete it manually." % lib_name) # Create directory for library files to reside try: os.makedirs(Path(args["target_file_path"]).parent) except: pass execute(args)
f.write(json.dumps(dict, indent=4)) def upload_file(file_path, url): with open(file_path, 'rb') as f: response = requests.put(url=url, data=f) response.raise_for_status() print(response.status_code, response.text) build.build(build.build_list) os.chdir(sys.path[0]) sign = "D9CD3CA0Axxxxxxxxxxxxxxxxxxxxxxx069E" # sign code build.execute( "cp -af ./../../bin-64/release/MyApplication.app/ ./../packet/MyApplication.app/") build.execute("rm -rf ./../releases/MyApplication.app") build.execute( "{0} ./../packet/MyApplication.app -always-overwrite".format(r'/Users/fxy/Qt/6.3.0/clang_64/bin/macdeployqt')) build.execute( "cp -af ./../packet/MyApplication.app ./../releases/MyApplication.app") build.execute("codesign --options=runtime --timestamp --force --verify --verbose -f -s {0} {1} --deep".format( sign, "./../releases/MyApplication.app")) build.execute( "codesign --options=runtime --timestamp --force --verify --verbose -s {0} --entitlements {1} {2}".format( sign, "./QtWebEngineProcess.entitlements", "./../releases/MyApplication.app/Contents/Frameworks/QtWebEngineCore.framework/Helpers/QtWebEngineProcess.app/Contents/MacOS/QtWebEngineProcess")) build.execute("codesign --options=runtime --timestamp --force --verify --verbose -f -s {0} {1}".format(
"md5": md5 } with open(json_path, 'w', encoding='utf-8') as f: f.write(json.dumps(dict, indent=4)) def upload_file(file_path, url): with open(file_path, 'rb') as f: response = requests.put(url=url, data=f) response.raise_for_status() print(response.status_code, response.text) build.build(build.build_list) os.chdir(sys.path[0]) build.execute( "xcopy /s /y \".\\..\\..\\bin-32\\release\\\" \".\\..\\packet\\\"") build.execute( "{0} --force --no-translations .\\..\\packet\\MyApplication.exe".format( r'C:\Qt\6.3.0\msvc2019\bin\windeployqt.exe')) miniVersion = "0.0.1" current_time = time.strftime('%Y%m%d', time.localtime()) exe_name = "MyApplication_V{0}_{1}.exe".format(miniVersion, current_time) out_exe_path = ".\\..\\releases\\{0}".format(exe_name) build.execute("del /q {0}".format(out_exe_path)) build.execute("del /q .\\..\\releases\\MyApplication_Installation_Package.exe") build.execute("{0} package.iss".format( r'C:\"Program Files (x86)"\"Inno Setup 6"\ISCC.exe')) os.rename(".\\..\\releases\\MyApplication_Installation_Package.exe", out_exe_path)