Gitea CI / Check code and tests (push) Successful in 7m38s
Gitea CI / Build Android APK (push) Successful in 6m20s
Gitea CI / Audit and package Windows x64 (push) Canceled after 0s
Gitea CI / Assemble and validate CI artifacts (push) Canceled after 0s
Gitea CI / Gitea CI passed (push) Canceled after 0s
Gitea CI / Build Windows x64 app (push) Canceled after 14m42s
26 lines
838 B
Python
26 lines
838 B
Python
"""Build, sign, audit and package the macOS production app as ZIP/DMG."""
|
|
import argparse
|
|
from pathlib import Path
|
|
import sys
|
|
|
|
sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
|
|
from common.process import ROOT, cli
|
|
from project_tools import project_environment
|
|
from release import build_release, print_artifact, require_macos
|
|
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
parser.add_argument('runtime', type=Path)
|
|
parser.add_argument('output', type=Path, nargs='?', default=ROOT / 'dist/macos')
|
|
args = parser.parse_args()
|
|
require_macos()
|
|
app, archive, dmg = build_release(args.runtime, args.output, environment=project_environment())
|
|
print(f'App: {app}')
|
|
print_artifact('Archive', archive)
|
|
print_artifact('DMG', dmg)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(cli(main))
|