Prepare FileBow 1.0.1 packages and dependency source distribution

This commit is contained in:
nordik committed 2026-10-27 03:01:45 +01:00
1 parent 0e84a1c452
commit 569f0324d6
22 files changed
+282647 -68

No files matched your search

+4 -1
View File
@@ -10,15 +10,18 @@ import zipfile
root = Path(__file__).resolve().parents[1]
parser = argparse.ArgumentParser()
parser.add_argument('--tag', required=True)
parser.add_argument('--app-directory', type=Path, default=root / 'out/FileBow-win32-x64')
args = parser.parse_args()
if not re.fullmatch(r'v\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?', args.tag):
parser.error('Expected a version tag such as v1.0.0-rc.1')
version = json.loads((root / 'package.json').read_text('utf-8'))['version']
if args.tag[1:].split('-')[0] != version:
parser.error('Release tag does not match package.json')
source = root / 'out/FileBow-win32-x64'
source = args.app_directory.resolve()
if not (source / 'FileBow.exe').is_file():
raise SystemExit('Run pnpm build first.')
if json.loads((source / 'resources/app/package.json').read_text('utf-8'))['version'] != version:
raise SystemExit('The built app version does not match package.json.')
for name in ['FEATURE_PARITY.md', 'VALIDATION.md']:
if (source / 'resources/app' / name).exists():
raise SystemExit('Internal notes found in the app. Rebuild before packaging.')