Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.idea
/apt-repo
/vendor
/bin
/dist
4 changes: 3 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ builds:
- CGO_ENABLED=0
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
goamd64: [ v1, v3 ]

- id: skpr-rsh
main: ./cmd/skpr-rsh
Expand All @@ -22,11 +23,12 @@ builds:
- CGO_ENABLED=0
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
goamd64: [ v1, v3 ]

archives:
- id: nix
builds: [ skpr-cli, skpr-rsh ]
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}{{ if and (eq .Arch "amd64") (eq .Amd64 "v3") }}v3{{ end }}'
wrap_in_directory: true
format: tar.gz
files:
Expand Down
4 changes: 4 additions & 0 deletions .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ depends = ["vendor"]
description = "Release the command line interface"
run = "goreleaser"
depends = ["vendor"]

[tasks.snapshot-release]
Comment thread
kimpepper marked this conversation as resolved.
description = "Create a snapshot release for local testing"
run = "goreleaser --snapshot --clean --verbose"
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ You can download the binaries from the [Releases](https://github.com/skpr/cli/re
#### MacOS

```
curl -sSLO https://github.com/skpr/cli/releases/download/VERSION/skpr_darwin_amd64.tgz
sudo tar -zxf skpr_darwin_amd64.tgz -C /usr/local/bin/
curl -sSLO https://github.com/skpr/cli/releases/download/$VERSION/skpr_$VERSION_macOS_arm64.tar.gz
sudo tar -zxf skpr_$VERSION_macOS_arm64.tar.gz -C /usr/local/bin/
```

#### Linux

```
curl -sSLO https://github.com/skpr/cli/releases/download/VERSION/skpr_linux_amd64.tgz
sudo tar -zxf skpr_linux_amd64.tgz -C /usr/local/bin/
curl -sSLO https://github.com/skpr/cli/releases/download/$VERSION/skpr_$VERSION_linux_amd64v3.tar.gz
sudo tar -zxf skpr_$VERSION_linux_amd64v3.tar.gz -C /usr/local/bin/
```

## Documentation
Expand Down
4 changes: 2 additions & 2 deletions scripts/generate-apt-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -euo pipefail
IFS=$'\n\t'

main() {
ARCHS=(amd64 arm64)
ARCHS=(amd64 amd64v3 arm64)

SUITE_DIR="dists/${SUITE:-stable}"
COMPONENT_DIR="${SUITE_DIR}/${COMPONENTS-main}"
Expand All @@ -28,7 +28,7 @@ main() {
echo "Suite: ${SUITE:-stable}"
echo "Codename: ${SUITE:-stable}"
echo "Version: 1.0"
echo "Architectures: amd64 arm64"
echo "Architectures: amd64 amd64v3 arm64"
echo "Components: ${COMPONENTS:-main}"
echo "Description: ${DESCRIPTION:-A repository for packages released by ${REPO_OWNER:-skpr}}"
echo "Date: $(date -Ru)"
Expand Down