Compare commits
1 Commits
e3d791cef4
...
asciinema
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2fa7870ddb |
35
config/asciinema.binstaller.yml
Normal file
35
config/asciinema.binstaller.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/binary-install/binstaller/main/schema/InstallSpec.json
|
||||
schema: v1
|
||||
repo: asciinema/asciinema
|
||||
asset:
|
||||
template: asciinema-${ARCH}-${OS}${EXT}
|
||||
rules:
|
||||
- when:
|
||||
arch: amd64
|
||||
arch: x86_64
|
||||
- when:
|
||||
arch: arm64
|
||||
arch: aarch64
|
||||
- when:
|
||||
os: darwin
|
||||
os: apple-darwin
|
||||
- when:
|
||||
os: linux
|
||||
arch: amd64
|
||||
os: unknown-linux-musl
|
||||
- when:
|
||||
os: linux
|
||||
arch: arm64
|
||||
os: unknown-linux-gnu
|
||||
checksums:
|
||||
algorithm: sha256
|
||||
embedded_checksums:
|
||||
v3.1.0:
|
||||
- filename: asciinema-aarch64-apple-darwin
|
||||
hash: c354d4abcbeae94c592df0d70417d6fca8400546c3b4b5b666761fa8b1a9bca8
|
||||
- filename: asciinema-aarch64-unknown-linux-gnu
|
||||
hash: dd6a08eed98d200b0a00d6756b564c10d95f7b6de940c8bac52098a55221f300
|
||||
- filename: asciinema-x86_64-apple-darwin
|
||||
hash: 5f0531ada539ce32224e2c680d8022b77ee82fd7b4fd24569f78f1772d38750c
|
||||
- filename: asciinema-x86_64-unknown-linux-musl
|
||||
hash: 7c5dc9172a9a9202dd8f558b9df2220785e9b4ce2763091fc22e9f9a458a161b
|
||||
@@ -4,38 +4,19 @@ repo: binary-install/binstaller
|
||||
asset:
|
||||
template: binst_${OS}_${ARCH}${EXT}
|
||||
default_extension: .tar.gz
|
||||
binaries:
|
||||
- name: binst
|
||||
path: binst
|
||||
rules:
|
||||
- when:
|
||||
arch: amd64
|
||||
arch: x86_64
|
||||
- when:
|
||||
os: darwin
|
||||
os: Darwin
|
||||
- when:
|
||||
os: linux
|
||||
os: Linux
|
||||
- when:
|
||||
os: windows
|
||||
os: Windows
|
||||
- when:
|
||||
os: windows
|
||||
ext: .zip
|
||||
checksums:
|
||||
algorithm: sha256
|
||||
embedded_checksums:
|
||||
v0.12.0:
|
||||
- filename: binst_Darwin_arm64.tar.gz
|
||||
hash: 2c3a8cf9b8f95edb5d97b905ccb0204800b25f1a9bc2b4ad704596e756e41eb9
|
||||
- filename: binst_Darwin_x86_64.tar.gz
|
||||
hash: bd9eae149f5735671bf1f32204f5ba9f10de269a290755f21f93bf1bb5d09b03
|
||||
- filename: binst_Linux_arm64.tar.gz
|
||||
hash: 76bca4884ee3fa229d915473ddd53ab4d04c34c9e4b5a1eda36d9751763af916
|
||||
- filename: binst_Linux_x86_64.tar.gz
|
||||
hash: af36ebb92c01ad4b9867a79eb45d1a130efbce20930896ec7578b3746416ee41
|
||||
- filename: binst_Windows_arm64.zip
|
||||
hash: 133784089efd57f5a0164b84ac74c4924c299342c88eb40be65155193ca37761
|
||||
- filename: binst_Windows_x86_64.zip
|
||||
hash: afcc9eab78de6bfa1ce360aebbf1a48738c519cdbe6a9560e6979ec3a4fcb4ef
|
||||
- when:
|
||||
arch: amd64
|
||||
arch: x86_64
|
||||
- when:
|
||||
os: darwin
|
||||
os: Darwin
|
||||
- when:
|
||||
os: linux
|
||||
os: Linux
|
||||
- when:
|
||||
os: windows
|
||||
os: Windows
|
||||
- when:
|
||||
os: windows
|
||||
ext: .zip
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/binary-install/binstaller/main/schema/InstallSpec.json
|
||||
schema: v1
|
||||
repo: rubrical-studios/gh-pmu
|
||||
asset:
|
||||
template: ${OS}-${ARCH}${EXT}
|
||||
checksums:
|
||||
algorithm: sha256
|
||||
template: checksums.txt
|
||||
embedded_checksums:
|
||||
v0.14.3:
|
||||
- filename: darwin-amd64
|
||||
hash: 0a07dea041d1a76683884ae82fd9c4ecf8569c01d5bc03168b5dd15da471637a
|
||||
- filename: darwin-arm64
|
||||
hash: 4401d839d0e15511ec478a0008e66338e9fa407437bf7aee52ec003f2b99e38c
|
||||
- filename: linux-amd64
|
||||
hash: 3519a08f7f82e635acb5df755855b6cfd754f73603d59a5958ded2be7dac14fb
|
||||
- filename: linux-arm64
|
||||
hash: be4f3e9e4691bffe121a40240e94359b5b00f7fad844a29e497fb7b01d89b1b3
|
||||
@@ -41,16 +41,3 @@ checksums:
|
||||
hash: 192bb1f0f9f257cad232e0148d81c3e31e644b888e61c22b46fa15b6b760547e
|
||||
- filename: toolhive_0.8.0_windows_arm64.zip
|
||||
hash: 313931641136da7479f02caf351c955c2d1d9bbc7204dff5f7f9d61ca1fd9242
|
||||
v0.9.2:
|
||||
- filename: toolhive_0.9.2_darwin_amd64.tar.gz
|
||||
hash: f8e45af89346a93678ed628552e68dae19a04f0b7402e1e545e5a53dd68ddb38
|
||||
- filename: toolhive_0.9.2_darwin_arm64.tar.gz
|
||||
hash: 29595e175cf60c3b8419754a5e384c530a84d63b506dd240372e55ba07290434
|
||||
- filename: toolhive_0.9.2_linux_amd64.tar.gz
|
||||
hash: 70be3936c37f98f5582aabc5b455e9f89ec797146cd69485484129e95f607185
|
||||
- filename: toolhive_0.9.2_linux_arm64.tar.gz
|
||||
hash: a9bdac8893adbfbd3b1491155b54f825cb82e084a837422e12a1de72dcd574ba
|
||||
- filename: toolhive_0.9.2_windows_amd64.zip
|
||||
hash: e8c73681a2ccf55396497d5b6066811f2e059776e2444ec35daa3a0a74267e66
|
||||
- filename: toolhive_0.9.2_windows_arm64.zip
|
||||
hash: d42f5149287fd0b37f517724272421b14d4732e036d35e0a908deece836f7500
|
||||
|
||||
@@ -13,7 +13,7 @@ Usage: $this [-b bindir] [-d] [-q] [-n] [tag]
|
||||
-q turns on quiet mode (errors only)
|
||||
-n turns on dry run mode
|
||||
[tag] is a tag from
|
||||
https://github.com/rubrical-studios/gh-pmu/releases
|
||||
https://github.com/asciinema/asciinema/releases
|
||||
If tag is missing, then latest will be used.
|
||||
|
||||
Environment variables:
|
||||
@@ -410,10 +410,10 @@ github_release() {
|
||||
|
||||
# --- Embedded Checksums (Format: VERSION:FILENAME:HASH) ---
|
||||
EMBEDDED_CHECKSUMS="
|
||||
0.14.3:darwin-amd64:0a07dea041d1a76683884ae82fd9c4ecf8569c01d5bc03168b5dd15da471637a
|
||||
0.14.3:darwin-arm64:4401d839d0e15511ec478a0008e66338e9fa407437bf7aee52ec003f2b99e38c
|
||||
0.14.3:linux-amd64:3519a08f7f82e635acb5df755855b6cfd754f73603d59a5958ded2be7dac14fb
|
||||
0.14.3:linux-arm64:be4f3e9e4691bffe121a40240e94359b5b00f7fad844a29e497fb7b01d89b1b3"
|
||||
3.1.0:asciinema-aarch64-apple-darwin:c354d4abcbeae94c592df0d70417d6fca8400546c3b4b5b666761fa8b1a9bca8
|
||||
3.1.0:asciinema-aarch64-unknown-linux-gnu:dd6a08eed98d200b0a00d6756b564c10d95f7b6de940c8bac52098a55221f300
|
||||
3.1.0:asciinema-x86_64-apple-darwin:5f0531ada539ce32224e2c680d8022b77ee82fd7b4fd24569f78f1772d38750c
|
||||
3.1.0:asciinema-x86_64-unknown-linux-musl:7c5dc9172a9a9202dd8f558b9df2220785e9b4ce2763091fc22e9f9a458a161b"
|
||||
|
||||
# Find embedded checksum for a given version and filename
|
||||
find_embedded_checksum() {
|
||||
@@ -464,8 +464,28 @@ resolve_asset_filename() {
|
||||
|
||||
# --- Apply Rules ---
|
||||
ASSET_FILENAME=""
|
||||
if [ "${UNAME_ARCH}" = 'amd64' ] && true
|
||||
then
|
||||
ARCH='x86_64'
|
||||
fi
|
||||
if [ "${UNAME_ARCH}" = 'arm64' ] && true
|
||||
then
|
||||
ARCH='aarch64'
|
||||
fi
|
||||
if [ "${UNAME_OS}" = 'darwin' ] && true
|
||||
then
|
||||
OS='apple-darwin'
|
||||
fi
|
||||
if [ "${UNAME_OS}" = 'linux' ] && [ "${UNAME_ARCH}" = 'amd64' ] && true
|
||||
then
|
||||
OS='unknown-linux-musl'
|
||||
fi
|
||||
if [ "${UNAME_OS}" = 'linux' ] && [ "${UNAME_ARCH}" = 'arm64' ] && true
|
||||
then
|
||||
OS='unknown-linux-gnu'
|
||||
fi
|
||||
if [ -z "${ASSET_FILENAME}" ]; then
|
||||
ASSET_FILENAME="${OS}-${ARCH}${EXT}"
|
||||
ASSET_FILENAME="asciinema-${ARCH}-${OS}${EXT}"
|
||||
fi
|
||||
}
|
||||
# Cleanup function to remove temporary files and stop progress
|
||||
@@ -481,7 +501,7 @@ cleanup() {
|
||||
|
||||
execute() {
|
||||
STRIP_COMPONENTS=0
|
||||
CHECKSUM_FILENAME="checksums.txt"
|
||||
CHECKSUM_FILENAME=""
|
||||
|
||||
# --- Construct URLs ---
|
||||
GITHUB_DOWNLOAD="https://github.com/${REPO}/releases/download"
|
||||
@@ -530,7 +550,7 @@ execute() {
|
||||
log_info "Extracting ${ASSET_FILENAME}..."
|
||||
(cd "${TMPDIR}" && untar "${ASSET_FILENAME}" "${STRIP_COMPONENTS}")
|
||||
fi
|
||||
BINARY_NAME='gh-pmu'
|
||||
BINARY_NAME='asciinema'
|
||||
if [ -z "${EXT}" ] || [ "${EXT}" = ".exe" ]; then
|
||||
BINARY_PATH="${TMPDIR}/${ASSET_FILENAME}"
|
||||
else
|
||||
@@ -568,8 +588,8 @@ execute() {
|
||||
}
|
||||
|
||||
# --- Configuration ---
|
||||
NAME='gh-pmu'
|
||||
REPO='rubrical-studios/gh-pmu'
|
||||
NAME='asciinema'
|
||||
REPO='asciinema/asciinema'
|
||||
EXT=''
|
||||
|
||||
# use in logging routines
|
||||
@@ -587,7 +607,7 @@ OS="${BINSTALLER_OS:-$(uname_os)}"
|
||||
UNAME_OS="${OS}"
|
||||
|
||||
ARCH="${BINSTALLER_ARCH:-$(uname_arch)}"
|
||||
|
||||
UNAME_ARCH="${ARCH}"
|
||||
log_info "Detected Platform: ${OS}/${ARCH}"
|
||||
|
||||
# --- Validate platform ---
|
||||
@@ -503,7 +503,7 @@ cleanup() {
|
||||
|
||||
execute() {
|
||||
STRIP_COMPONENTS=0
|
||||
CHECKSUM_FILENAME=""
|
||||
CHECKSUM_FILENAME="checksums.txt"
|
||||
|
||||
# --- Construct URLs ---
|
||||
GITHUB_DOWNLOAD="https://github.com/${REPO}/releases/download"
|
||||
@@ -552,11 +552,11 @@ execute() {
|
||||
log_info "Extracting ${ASSET_FILENAME}..."
|
||||
(cd "${TMPDIR}" && untar "${ASSET_FILENAME}" "${STRIP_COMPONENTS}")
|
||||
fi
|
||||
BINARY_NAME='binst'
|
||||
BINARY_NAME='binstaller'
|
||||
if [ -z "${EXT}" ] || [ "${EXT}" = ".exe" ]; then
|
||||
BINARY_PATH="${TMPDIR}/${ASSET_FILENAME}"
|
||||
else
|
||||
BINARY_PATH="${TMPDIR}/binst"
|
||||
BINARY_PATH="${TMPDIR}/binstaller"
|
||||
fi
|
||||
|
||||
if [ "${UNAME_OS}" = "windows" ]; then
|
||||
|
||||
@@ -421,13 +421,7 @@ EMBEDDED_CHECKSUMS="
|
||||
0.8.0:toolhive_0.8.0_linux_amd64.tar.gz:2f4216bdefdc37bda46ee5c896c54920d65e18013a0627855ce1a16eb2c44726
|
||||
0.8.0:toolhive_0.8.0_linux_arm64.tar.gz:3b806cf7b857b0dce819610b4ef48709d35ee10a73865dfca4fcc791bff80416
|
||||
0.8.0:toolhive_0.8.0_windows_amd64.zip:192bb1f0f9f257cad232e0148d81c3e31e644b888e61c22b46fa15b6b760547e
|
||||
0.8.0:toolhive_0.8.0_windows_arm64.zip:313931641136da7479f02caf351c955c2d1d9bbc7204dff5f7f9d61ca1fd9242
|
||||
0.9.2:toolhive_0.9.2_darwin_amd64.tar.gz:f8e45af89346a93678ed628552e68dae19a04f0b7402e1e545e5a53dd68ddb38
|
||||
0.9.2:toolhive_0.9.2_darwin_arm64.tar.gz:29595e175cf60c3b8419754a5e384c530a84d63b506dd240372e55ba07290434
|
||||
0.9.2:toolhive_0.9.2_linux_amd64.tar.gz:70be3936c37f98f5582aabc5b455e9f89ec797146cd69485484129e95f607185
|
||||
0.9.2:toolhive_0.9.2_linux_arm64.tar.gz:a9bdac8893adbfbd3b1491155b54f825cb82e084a837422e12a1de72dcd574ba
|
||||
0.9.2:toolhive_0.9.2_windows_amd64.zip:e8c73681a2ccf55396497d5b6066811f2e059776e2444ec35daa3a0a74267e66
|
||||
0.9.2:toolhive_0.9.2_windows_arm64.zip:d42f5149287fd0b37f517724272421b14d4732e036d35e0a908deece836f7500"
|
||||
0.8.0:toolhive_0.8.0_windows_arm64.zip:313931641136da7479f02caf351c955c2d1d9bbc7204dff5f7f9d61ca1fd9242"
|
||||
|
||||
# Find embedded checksum for a given version and filename
|
||||
find_embedded_checksum() {
|
||||
|
||||
Reference in New Issue
Block a user