Skip to content

Commit 6a64050

Browse files
committed
Dropping "CLI" postfix from release archive names
1 parent 8f61b7b commit 6a64050

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.goreleaser.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
version: 1
55

6+
project_name: bitrise-build-cache
7+
68
release:
79
github:
810
owner: bitrise-io
@@ -14,15 +16,16 @@ before:
1416
- go mod tidy
1517

1618
builds:
17-
- env:
19+
- binary: bitrise-build-cache
20+
env:
1821
- CGO_ENABLED=0
1922
goos:
2023
- linux
2124
# - windows
2225
- darwin
2326

2427
archives:
25-
- name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
28+
- name_template: 'bitrise-build-cache_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
2629

2730
changelog:
2831
sort: asc

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Bitrise Build Cache CLI - to enable/configure Gradle or Bazel build cache on the
1010
curl -sSfL 'https://raw.githubusercontent.com/bitrise-io/bitrise-build-cache-cli/main/install/installer.sh' | sh -s -- -b /tmp/bin -d
1111

1212
# run the CLI
13-
/tmp/bin/bitrise-build-cache-cli [COMMAND]
13+
/tmp/bin/bitrise-build-cache [COMMAND]
1414
```
1515

1616
If you want to install the CLI to somewhere else you can change the `-b PATH` parameter.
@@ -20,13 +20,13 @@ If you want to install the CLI to somewhere else you can change the `-b PATH` pa
2020
To configure Bitrise Build Cache for Gradle on the current machine:
2121

2222
```shell
23-
/tmp/bin/bitrise-build-cache-cli enable-for gradle
23+
/tmp/bin/bitrise-build-cache enable-for gradle
2424
```
2525

2626
To configure Bitrise Build Cache for Bazel on the current machine:
2727

2828
```shell
29-
/tmp/bin/bitrise-build-cache-cli enable-for bazel
29+
/tmp/bin/bitrise-build-cache enable-for bazel
3030
```
3131

3232
For the options and parameters accepted by the commands call the command with `--help` flag.

install/installer.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22
set -e
3-
# Code generated by godownloader on 2024-01-15T18:20:45Z. DO NOT EDIT.
3+
# Code generated by godownloader on 2024-01-15T18:30:39Z. DO NOT EDIT.
44
#
55

66
usage() {
@@ -62,12 +62,12 @@ execute() {
6262
}
6363
get_binaries() {
6464
case "$PLATFORM" in
65-
darwin/386) BINARIES="bitrise-build-cache-cli" ;;
66-
darwin/amd64) BINARIES="bitrise-build-cache-cli" ;;
67-
darwin/arm64) BINARIES="bitrise-build-cache-cli" ;;
68-
linux/386) BINARIES="bitrise-build-cache-cli" ;;
69-
linux/amd64) BINARIES="bitrise-build-cache-cli" ;;
70-
linux/arm64) BINARIES="bitrise-build-cache-cli" ;;
65+
darwin/386) BINARIES="bitrise-build-cache" ;;
66+
darwin/amd64) BINARIES="bitrise-build-cache" ;;
67+
darwin/arm64) BINARIES="bitrise-build-cache" ;;
68+
linux/386) BINARIES="bitrise-build-cache" ;;
69+
linux/amd64) BINARIES="bitrise-build-cache" ;;
70+
linux/arm64) BINARIES="bitrise-build-cache" ;;
7171
*)
7272
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
7373
exit 1
@@ -334,10 +334,10 @@ End of functions from https://github.com/client9/shlib
334334
------------------------------------------------------------------------
335335
EOF
336336

337-
PROJECT_NAME="bitrise-build-cache-cli"
337+
PROJECT_NAME="bitrise-build-cache"
338338
OWNER=bitrise-io
339339
REPO="bitrise-build-cache-cli"
340-
BINARY=bitrise-build-cache-cli
340+
BINARY=bitrise-build-cache
341341
FORMAT=tar.gz
342342
OS=$(uname_os)
343343
ARCH=$(uname_arch)
@@ -367,7 +367,7 @@ adjust_arch
367367

368368
log_info "found version: ${VERSION} for ${TAG}/${OS}/${ARCH}"
369369

370-
NAME=${BINARY}_${VERSION}_${OS}_${ARCH}
370+
NAME=bitrise-build-cache_${VERSION}_${OS}_${ARCH}
371371
TARBALL=${NAME}.${FORMAT}
372372
TARBALL_URL=${GITHUB_DOWNLOAD}/${TAG}/${TARBALL}
373373
CHECKSUM=${PROJECT_NAME}_${VERSION}_checksums.txt

0 commit comments

Comments
 (0)