def build(args, output_dir, release, github_token, homebrew_dir): deb_file = args.deb_file chocolatey_file = args.chocolatey_file homebrew_file = args.homebrew_file if args.build_deb: user = get_current_user(github_token) releases = get_all_releases(args.repository, github_token) deb_file = build_deb( args.repository, release, user, releases, args.docker_linux_host, output_dir ) if args.build_homebrew: homebrew_file = build_bottle( homebrew_dir, release, args.tap_repository, args.homebrew_target_macos_version, args.homebrew_target_macos_version_spec, output_dir, ) if args.build_chocolatey: chocolatey_file = build_chocolatey( args.repository, release, args.docker_windows_host, output_dir ) return deb_file, homebrew_file, chocolatey_file
def build(args, output_dir, release, github_token, homebrew_dir): deb_file = args.deb_file chocolatey_file = args.chocolatey_file homebrew_file = args.homebrew_file if args.build_deb: user = get_current_user(github_token) releases = get_all_releases(args.repository, github_token) deb_file = build_deb(args.repository, release, user, releases, args.docker_linux_host, output_dir) if args.build_homebrew: homebrew_file = build_bottle( homebrew_dir, release, args.repository, args.tap_repository, args.homebrew_target_macos_version, args.homebrew_target_macos_version_spec, output_dir, ) if args.build_chocolatey: chocolatey_file = build_chocolatey( args.repository, release, args.docker_windows_host, args.docker_windows_memory, args.docker_windows_isolation, output_dir, ) return deb_file, homebrew_file, chocolatey_file