Upload static kitty-tool builds when publishing
This commit is contained in:
parent
c7d47a59f1
commit
e3b22a87e4
2 changed files with 11 additions and 1 deletions
10
publish.py
10
publish.py
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
import argparse
|
||||
import datetime
|
||||
import glob
|
||||
import io
|
||||
import json
|
||||
import mimetypes
|
||||
|
|
@ -79,6 +80,7 @@ def run_with_retry(cmd: str) -> None:
|
|||
call(f'python ../bypy linux --arch {x} shutdown', echo=True)
|
||||
cmd = 'python ../bypy macos program --sign-installers --notarize'
|
||||
run_with_retry(cmd)
|
||||
call('./setup.py build-static-binaries')
|
||||
|
||||
|
||||
def run_tag(args: Any) -> None:
|
||||
|
|
@ -393,6 +395,14 @@ def files_for_upload() -> Dict[str, str]:
|
|||
raise SystemExit(f'The installer {path} does not exist')
|
||||
files[path] = desc
|
||||
signatures[path] = f'GPG signature for {desc}'
|
||||
b = len(files)
|
||||
for path in glob.glob('build/static/kitty-tool-*'):
|
||||
path = os.path.abspath(path)
|
||||
files[path] = 'Static kitty-tool executable'
|
||||
signatures[path] = 'GPG signature for static kitty-tool executable'
|
||||
if len(files) == b:
|
||||
raise SystemExit('No static binaries found')
|
||||
|
||||
files[f'build/kitty-{version}.tar.xz'] = 'Source code'
|
||||
files[f'build/kitty-{version}.tar.xz.sig'] = 'Source code GPG signature'
|
||||
for path, desc in signatures.items():
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -64,7 +64,7 @@ class Options(argparse.Namespace):
|
|||
verbose: int = 0
|
||||
sanitize: bool = False
|
||||
prefix: str = './linux-package'
|
||||
dir_for_static_binaries: str = ''
|
||||
dir_for_static_binaries: str = 'build/static'
|
||||
incremental: bool = True
|
||||
profile: bool = False
|
||||
libdir_name: str = 'lib'
|
||||
|
|
|
|||
Loading…
Reference in a new issue