File tree Expand file tree Collapse file tree 3 files changed +10
-34
lines changed Expand file tree Collapse file tree 3 files changed +10
-34
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,23 @@ builds:
22
22
- -s
23
23
- -w
24
24
- -X "github.com/gptscript-ai/gptscript/pkg/version.Tag=v{{ .Version }}"
25
- hooks :
26
- post : ./scripts/copy-cred-helper.sh {{ .Os }} {{ .Arch }}
27
25
28
26
universal_binaries :
29
27
- id : mac
30
28
ids :
31
29
- default
32
30
replace : true
33
- hooks :
34
- post : cp binaries/gptscript-credential-osxkeychain releases/mac_darwin_all
35
31
36
32
archives :
37
33
- id : default
38
34
builds :
39
35
- default
40
36
- mac
37
+ files :
38
+ - LICENSE*
39
+ - README*
40
+ - src : ' {{ if eq .Os "darwin" }}binaries/darwin/*{{ else }}binaries/{{ .Os }}/{{ .Arch }}/*{{ end }}'
41
+ strip_parent : true
41
42
name_template : ' gptscript-v{{ .Version }}-{{ if eq .Os "darwin" }}macOS-universal{{ else }}{{ .Os }}-{{ .Arch }}{{ .Arm }}{{ end }}'
42
43
format_overrides :
43
44
- goos : windows
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ set -euo pipefail
7
7
GPTSCRIPT_CRED_HELPERS_VERSION=" v0.1.0"
8
8
BINARY_DIR=" binaries"
9
9
10
- mkdir -p " $BINARY_DIR "
10
+ mkdir -p $BINARY_DIR /darwin
11
+ mkdir -p $BINARY_DIR /windows/{amd64,arm64}
11
12
cd " $BINARY_DIR "
12
13
13
14
wget -O gptscript-credential-osxkeychain " https://github.com/gptscript-ai/gptscript-credential-helpers/releases/download/${GPTSCRIPT_CRED_HELPERS_VERSION} /gptscript-credential-osxkeychain"
14
15
chmod +x gptscript-credential-osxkeychain
16
+ mv gptscript-credential-osxkeychain darwin/gptscript-credential-osxkeychain
15
17
16
18
wget -O gptscript-credential-wincred-amd64.exe " https://github.com/gptscript-ai/gptscript-credential-helpers/releases/download/${GPTSCRIPT_CRED_HELPERS_VERSION} /gptscript-credential-wincred-${GPTSCRIPT_CRED_HELPERS_VERSION} .windows-amd64.exe"
17
19
chmod +x gptscript-credential-wincred-amd64.exe
20
+ mv gptscript-credential-wincred-amd64.exe windows/amd64/gptscript-credential-wincred.exe
18
21
19
22
wget -O gptscript-credential-wincred-arm64.exe " https://github.com/gptscript-ai/gptscript-credential-helpers/releases/download/${GPTSCRIPT_CRED_HELPERS_VERSION} /gptscript-credential-wincred-${GPTSCRIPT_CRED_HELPERS_VERSION} .windows-arm64.exe"
20
23
chmod +x gptscript-credential-wincred-arm64.exe
24
+ mv gptscript-credential-wincred-arm64.exe windows/arm64/gptscript-credential-wincred.exe
You can’t perform that action at this time.
0 commit comments