diff --git a/readme.md b/readme.md index 14d0f90a456944b695aeb633c233ff139fcad301..06345c2d07f357bb5bcf069b24488e6177ba03d6 100644 --- a/readme.md +++ b/readme.md @@ -12,6 +12,8 @@ pen and drawing tools [(WIP)](https://shale.paperclover.net/snowbound/issues/21) [(WIP)](https://shale.paperclover.net/snowbound/issues/36), revision history, multi-machine live collaboration, and much more. +**Download**: macOS: [Silicon](https://file.paperclover.net/shr/snowbound/download/Snowbound-macos-aarch64.zip) • Linux: [x86_64](https://file.paperclover.net/shr/snowbound/download/snowbound-linux-x86_64), [aarch64](https://file.paperclover.net/shr/snowbound/download/snowbound-linux-aarch64) • Windows: [x64](https://file.paperclover.net/shr/snowbound/download/snowbound-windows-x86_64.exe), [Arm](https://file.paperclover.net/shr/snowbound/download/snowbound-windows-aarch64.exe) • [OS X](https://file.paperclover.net/shr/snowbound/download/Snowbound-macos-10.6.zip) + diff --git a/tools/release.py b/tools/release.py index 9b118b960e089804d9ac9e23b08f920d77c7ddad..71487f1c2eb9ca230c3b55485e4815f53695994f 100755 --- a/tools/release.py +++ b/tools/release.py @@ -234,6 +234,17 @@ def main(): partial.write_text(json.dumps(moved, indent=2, sort_keys=True) + '\n') os.replace(partial, latest_file) print(f'{latest_file}: {json.dumps(moved, sort_keys=True)}') + # Stable names for the readme's download links, always the newest build of each platform. + downloads = published / 'download' + downloads.mkdir(exist_ok=True) + for platform, newest_name in moved.items(): + if newest_name != name(version): + continue + file = build['archives'][platform]['file'] + stable = downloads / file.replace(f'-{name(version)}', '') + partial = stable.with_name(f'.{stable.name}.partial') + shutil.copy(target / file, partial) + os.replace(partial, stable) if not args.dry_run: print(f'{URL}{folder(version)}/')