2023-06-22 10:55:59 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-06-22 11:37:35 +02:00
|
|
|
#
|
|
|
|
# This script bundles the binaries generated by GitHub Actions.
|
|
|
|
#
|
|
|
|
# Platforms to choose from:
|
2023-06-22 10:55:59 +02:00
|
|
|
# - windows-2019
|
|
|
|
# - windows-2022
|
|
|
|
# - macos-11
|
|
|
|
# - macos-12
|
|
|
|
# - macos-13
|
|
|
|
# - ubuntu-20.04
|
|
|
|
# - ubuntu-22.04
|
2023-06-22 11:37:35 +02:00
|
|
|
#
|
|
|
|
# Bundles to choose from:
|
|
|
|
# - rolens-macos-11-amd64.tar.gz
|
|
|
|
# - rolens-macos-11-arm64.tar.gz
|
|
|
|
# - rolens-macos-12-amd64.tar.gz
|
|
|
|
# - rolens-macos-12-arm64.tar.gz
|
|
|
|
# - rolens-macos-13-amd64.tar.gz
|
|
|
|
# - rolens-macos-13-arm64.tar.gz
|
|
|
|
# - rolens-ubuntu-20.04-amd64.tar.gz
|
|
|
|
# - rolens-ubuntu-22.04-amd64.tar.gz
|
|
|
|
# - rolens-windows-2019-amd64.zip
|
|
|
|
# - rolens-windows-2019-arm64.zip
|
|
|
|
# - rolens-windows-2022-amd64.zip
|
|
|
|
# - rolens-windows-2022-arm64.zip
|
|
|
|
#
|
2023-06-22 10:55:59 +02:00
|
|
|
|
2023-06-22 11:37:35 +02:00
|
|
|
node ./build/version2file.js
|
2023-06-22 10:55:59 +02:00
|
|
|
version=$(<./build/version.txt)
|
|
|
|
|
|
|
|
mkdir bundle
|
|
|
|
|
2023-06-22 11:37:35 +02:00
|
|
|
# macOS binaries
|
|
|
|
mv artifacts/*/rolens-macos-11-amd64.tar.gz bundle/rolens-$version-macos-amd64.tar.gz
|
|
|
|
mv artifacts/*/rolens-macos-11-arm64.tar.gz bundle/rolens-$version-macos-arm64.tar.gz
|
2023-06-22 10:55:59 +02:00
|
|
|
|
2023-06-22 11:37:35 +02:00
|
|
|
# Windows binaries
|
|
|
|
mv artifacts/*/rolens-windows-2019-amd64.zip bundle/rolens-$version-windows-amd64.zip
|
|
|
|
mv artifacts/*/rolens-windows-2019-arm64.zip bundle/rolens-$version-windows-arm64.zip
|