Skip to content

Commit 85cea3a

Browse files
committed
Update install scripts with binst
1 parent 60c4a83 commit 85cea3a

7 files changed

Lines changed: 1760 additions & 12 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/binary-install/binstaller/main/schema/InstallSpec.json
2+
schema: v1
3+
repo: reviewdog/nightly
4+
name: reviewdog
5+
asset:
6+
template: reviewdog_${VERSION}_${OS}_${ARCH}${EXT}
7+
default_extension: .tar.gz
8+
rules:
9+
- when:
10+
arch: amd64
11+
arch: x86_64
12+
- when:
13+
os: darwin
14+
os: Darwin
15+
- when:
16+
os: linux
17+
os: Linux
18+
- when:
19+
os: windows
20+
os: Windows
21+
checksums:
22+
algorithm: sha256
23+
template: checksums.txt

.config/binstaller/reviewdog.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/binary-install/binstaller/main/schema/InstallSpec.json
2+
# TODO: Generate install.sh from GitHub Actions and support gh attestation.
3+
# https://github.com/binary-install/binstaller is still WIP but it should be ok
4+
# since it's built and maintained by me (haya14busa, a maintainer of reviewdog).
5+
# The installer script works fine and fixed bugs which existed in the previous
6+
# script generated by godownloader. Example: The previous script didn't work if
7+
# release artifacts contains <binary-asset>.sbom.json since the prev script
8+
# just used grep with <binary-asset> without '$'.
9+
# install.sh was built by binst version 0.7.1 (b84e57d)
10+
schema: v1
11+
name: reviewdog
12+
repo: reviewdog/reviewdog
13+
asset:
14+
template: ${NAME}_${VERSION}_${OS}_${ARCH}${EXT}
15+
default_extension: .tar.gz
16+
rules:
17+
- when:
18+
arch: amd64
19+
arch: x86_64
20+
- when:
21+
arch: "386"
22+
arch: i386
23+
naming_convention:
24+
os: titlecase
25+
arch: lowercase
26+
checksums:
27+
algorithm: sha256
28+
template: checksums.txt
29+
supported_platforms:
30+
- os: darwin
31+
arch: amd64
32+
- os: darwin
33+
arch: arm64
34+
- os: linux
35+
arch: "386"
36+
- os: linux
37+
arch: amd64
38+
- os: linux
39+
arch: arm64
40+
- os: linux
41+
arch: armv6
42+
- os: windows
43+
arch: "386"
44+
- os: windows
45+
arch: amd64
46+
- os: windows
47+
arch: arm64
48+
- os: windows
49+
arch: armv6

0 commit comments

Comments
 (0)