Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Oct 10, 2024
1 parent afd5411 commit 96ccb45
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,78 +97,78 @@ release-new:

.PHONY: release-linux-386
release-linux-386:
keygen upload build/relay-linux-386-$(PACKAGE_VERSION) --filename relay_linux_386 --release ${PACKAGE_VERSION} --platform linux --arch 386
keygen upload dist/relay-linux-386-$(PACKAGE_VERSION) --filename relay_linux_386 --release ${PACKAGE_VERSION} --platform linux --arch 386

.PHONY: release-linux-amd64
release-linux-amd64:
keygen upload build/relay-linux-amd64-$(PACKAGE_VERSION) --filename relay_linux_amd64 --release ${PACKAGE_VERSION} --platform linux --arch amd64
keygen upload dist/relay-linux-amd64-$(PACKAGE_VERSION) --filename relay_linux_amd64 --release ${PACKAGE_VERSION} --platform linux --arch amd64

.PHONY: release-linux-arm
release-linux-arm:
keygen upload build/relay-linux-arm-$(PACKAGE_VERSION) --filename relay_linux_arm --release ${PACKAGE_VERSION} --platform linux --arch arm
keygen upload dist/relay-linux-arm-$(PACKAGE_VERSION) --filename relay_linux_arm --release ${PACKAGE_VERSION} --platform linux --arch arm

.PHONY: release-linux-arm64
release-linux-arm64:
keygen upload build/relay-linux-arm64-$(PACKAGE_VERSION) --filename relay_linux_arm64 --release ${PACKAGE_VERSION} --platform linux --arch arm64
keygen upload dist/relay-linux-arm64-$(PACKAGE_VERSION) --filename relay_linux_arm64 --release ${PACKAGE_VERSION} --platform linux --arch arm64

# .PHONY: release-linux-mips
# release-linux-mips:
# keygen upload build/relay-linux-mips-$(PACKAGE_VERSION) --filename relay_linux_mips --release ${PACKAGE_VERSION} --platform linux --arch mips
# keygen upload dist/relay-linux-mips-$(PACKAGE_VERSION) --filename relay_linux_mips --release ${PACKAGE_VERSION} --platform linux --arch mips

# .PHONY: release-linux-mipsle
# release-linux-mipsle:
# keygen upload build/relay-linux-mipsle-$(PACKAGE_VERSION) --filename relay_linux_mipsle --release ${PACKAGE_VERSION} --platform linux --arch mipsle
# keygen upload dist/relay-linux-mipsle-$(PACKAGE_VERSION) --filename relay_linux_mipsle --release ${PACKAGE_VERSION} --platform linux --arch mipsle

# .PHONY: release-linux-mips64
# release-linux-mips64:
# keygen upload build/relay-linux-mips64-$(PACKAGE_VERSION) --filename relay_linux_mips64 --release ${PACKAGE_VERSION} --platform linux --arch mips64
# keygen upload dist/relay-linux-mips64-$(PACKAGE_VERSION) --filename relay_linux_mips64 --release ${PACKAGE_VERSION} --platform linux --arch mips64

# .PHONY: release-linux-mips64le
# release-linux-mips64le:
# keygen upload build/relay-linux-mips64le-$(PACKAGE_VERSION) --filename relay_linux_mips64le --release ${PACKAGE_VERSION} --platform linux --arch mips64le
# keygen upload dist/relay-linux-mips64le-$(PACKAGE_VERSION) --filename relay_linux_mips64le --release ${PACKAGE_VERSION} --platform linux --arch mips64le

.PHONY: release-linux-s390x
release-linux-s390x:
keygen upload build/relay-linux-s390x-$(PACKAGE_VERSION) --filename relay_linux_s390x --release ${PACKAGE_VERSION} --platform linux --arch s390x
keygen upload dist/relay-linux-s390x-$(PACKAGE_VERSION) --filename relay_linux_s390x --release ${PACKAGE_VERSION} --platform linux --arch s390x

# .PHONY: release-darwin-amd64
# release-darwin-amd64:
# keygen upload build/relay-darwin-amd64-$(PACKAGE_VERSION) --filename relay_darwin_amd64 --release ${PACKAGE_VERSION} --platform darwin --arch amd64
# keygen upload dist/relay-darwin-amd64-$(PACKAGE_VERSION) --filename relay_darwin_amd64 --release ${PACKAGE_VERSION} --platform darwin --arch amd64

# .PHONY: release-darwin-arm64
# release-darwin-arm64:
# keygen upload build/relay-darwin-arm64-$(PACKAGE_VERSION) --filename relay_darwin_arm64 --release ${PACKAGE_VERSION} --platform darwin --arch arm64
# keygen upload dist/relay-darwin-arm64-$(PACKAGE_VERSION) --filename relay_darwin_arm64 --release ${PACKAGE_VERSION} --platform darwin --arch arm64

.PHONY: release-windows-386
release-windows-386:
keygen upload build/relay-windows-386-$(PACKAGE_VERSION).exe --filename relay_windows_386.exe --release ${PACKAGE_VERSION} --platform windows --arch 386
keygen upload dist/relay-windows-386-$(PACKAGE_VERSION).exe --filename relay_windows_386.exe --release ${PACKAGE_VERSION} --platform windows --arch 386

.PHONY: release-windows-amd64
release-windows-amd64:
keygen upload build/relay-windows-amd64-$(PACKAGE_VERSION).exe --filename relay_windows_amd64.exe --release ${PACKAGE_VERSION} --platform windows --arch amd64
keygen upload dist/relay-windows-amd64-$(PACKAGE_VERSION).exe --filename relay_windows_amd64.exe --release ${PACKAGE_VERSION} --platform windows --arch amd64

.PHONY: release-windows-arm64
release-windows-arm64:
keygen upload build/relay-windows-arm64-$(PACKAGE_VERSION).exe --filename relay_windows_arm64.exe --release ${PACKAGE_VERSION} --platform windows --arch arm64
keygen upload dist/relay-windows-arm64-$(PACKAGE_VERSION).exe --filename relay_windows_arm64.exe --release ${PACKAGE_VERSION} --platform windows --arch arm64

.PHONY: release-installer
release-installer:
keygen upload build/install.sh --release ${PACKAGE_VERSION}
keygen upload dist/install.sh --release ${PACKAGE_VERSION}

.PHONY: release-version
release-version:
keygen upload build/version --release ${PACKAGE_VERSION} --filetype txt
keygen upload dist/version --release ${PACKAGE_VERSION} --filetype txt

.PHONY: release-publish
release-publish:
keygen publish --release ${PACKAGE_VERSION}

.PHONY: release-tag
release-tag:
ifeq ($(PACKAGE_CHANNEL),stable)
keygen untag --release latest
keygen tag latest --release ${PACKAGE_VERSION}
endif
ifeq ($(PACKAGE_CHANNEL),stable)
keygen untag --release latest
keygen tag latest --release ${PACKAGE_VERSION}
endif

.PHONY: release
release: release-new release-linux-386 release-linux-amd64 release-linux-arm release-linux-arm64 \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ install manually by downloading a binary and following [the install
instructions here](https://keygen.sh/docs/relay/).

```bash
curl -sSL https://get.keygen.sh/keygen/relay/latest/install.sh | sh
curl -sSL https://raw.pkg.keygen.sh/keygen/cli/latest/install.sh | sh
```

## Usage
Expand Down
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ get_bin_path() {
}

get_bin_version() {
version=$(curl -sSL 'https://get.keygen.sh/keygen/relay/latest/version')
version=$(curl -sSL 'https://raw.pkg.keygen.sh/keygen/relay/latest/version')
if [ -z "${version}" ]
then
log_err 'unable to get latest version'
Expand All @@ -110,7 +110,7 @@ get_bin_url() {
filename="${filename}.exe"
fi

echo "https://get.keygen.sh/keygen/relay/${BIN_VERSION}/${filename}"
echo "https://raw.pkg.keygen.sh/keygen/relay/${BIN_VERSION}/${filename}"
}

assert_os_support() {
Expand Down

0 comments on commit 96ccb45

Please sign in to comment.