#!/usr/bin/env python3 import glob import os import subprocess import json import argparse from tools import uncompress_file_to_dir, get_file_info, make_complete_mar_name from signing import sign_mar_file from path import UpdaterPath, convert_to_native def main(): parser = argparse.ArgumentParser() parser.add_argument('product_name') parser.add_argument('workdir') parser.add_argument('filename_prefix') parser.add_argument('certificate_path') parser.add_argument('certificate_name') parser.add_argument('base_url') parser.add_argument('version') args = parser.parse_args() certificate_path = args.certificate_path certificate_name = args.certificate_name base_url = args.base_url filename_prefix = args.filename_prefix workdir = args.workdir product_name = args.product_name version = args.version update_path = UpdaterPath(workdir) update_path.ensure_dir_exist() target_dir = update_path.get_update_dir() temp_dir = update_path.get_current_build_dir() msi_file_glob = os.path.join(update_path.get_workdir(), "installation", product_name, "msi", "install", "*", f'{product_name}_*.msi') msi_files = glob.glob(msi_file_glob) if len(msi_files) != 1: raise Exception(f'`{msi_file_glob}` does not match exactly one file') msi_file = msi_files[0] uncompress_dir = uncompress_file_to_dir(msi_file, temp_dir) mar_file = make_complete_mar_name(target_dir, filename_prefix) path = os.path.join( workdir, 'UnpackedTarball/onlineupdate/tools/update-packaging/make_full_update.sh') os.putenv('MOZ_PRODUCT_VERSION', version) os.putenv('MAR_CHANNEL_ID', 'LOOnlineUpdater') subprocess.call([path, convert_to_native(mar_file), convert_to_native(uncompress_dir)]) sign_mar_file(target_dir, certificate_path, certificate_name, mar_file, filename_prefix) file_info = {'complete': get_file_info(mar_file, base_url)} with open(os.path.join(target_dir, 'complete_info.json'), "w") as complete_info_file: json.dump(file_info, complete_info_file, indent=4) if __name__ == '__main__': main() llabora/cd-5.3-3.1'>distro/collabora/cd-5.3-3.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/svx/source/form/fmshell.cxx
AgeCommit message (Expand)Author
2022-05-03Just use Any ctor instead of makeAny in svxStephan Bergmann
2022-01-07remove E3D_INVENTOR_FLAG and convert SdrObjKind to scoped enumNoel Grandin
2021-10-10loplugin:moveparam in svxNoel Grandin
2021-08-18loplugin:constparamsNoel Grandin
2021-05-17split OutputDevice from WindowNoel Grandin
2020-11-06make SdrObject Identifiers SdrObjKind enum membersCaolán McNamara
2020-10-05use more TOOLS_WARN_EXCEPTIONMike Kaganski
2020-09-02Fix of an idAndrea Gelmini
2020-09-01Fix typo in codeAndrea Gelmini