Skip to content

Commit

Permalink
Add .exe extension to Windows distribution (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed Apr 17, 2021
1 parent 0b6d34e commit 4ca11f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go.yaml
Expand Up @@ -8,6 +8,7 @@ on:
- .github/workflows/go.yaml
- pkg/**
- go.*
- Makefile
tags:
- v*
pull_request:
Expand All @@ -17,6 +18,7 @@ on:
- .github/workflows/go.yaml
- pkg/**
- go.*
- Makefile

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion .krew.yaml
Expand Up @@ -54,7 +54,7 @@ spec:
matchLabels:
os: darwin
arch: arm64
- bin: kubelogin
- bin: kubelogin.exe
{{ addURIAndSha "https://github.com/int128/kubelogin/releases/download/{{ .TagName }}/kubelogin_windows_amd64.zip" .TagName }}
selector:
matchLabels:
Expand Down
12 changes: 9 additions & 3 deletions Makefile
@@ -1,6 +1,12 @@
TARGET := kubelogin
TARGET_ARCHIVE := $(TARGET)_$(GOOS)_$(GOARCH).zip
TARGET_DIGEST := $(TARGET)_$(GOOS)_$(GOARCH).zip.sha256
PRODUCT := kubelogin
TARGET_ARCHIVE := $(PRODUCT)_$(GOOS)_$(GOARCH).zip
TARGET_DIGEST := $(PRODUCT)_$(GOOS)_$(GOARCH).zip.sha256

ifeq ($(GOOS), windows)
TARGET := $(PRODUCT).exe
else
TARGET := $(PRODUCT)
endif

# determine the version from ref
ifeq ($(GITHUB_REF), refs/heads/master)
Expand Down

0 comments on commit 4ca11f1

Please sign in to comment.