File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,11 @@ PACKAGE_OS_ARCHES := linux_amd64 linux_armv7 linux_arm64
80
80
DOCKER_ARCHES := amd64 arm64 armv7
81
81
82
82
# All ${OS}_${ARCH} combos we build the desktop dylib for.
83
- DYLIB_ARCHES := darwin_amd64.dylib darwin_arm64.dylib
83
+ DYLIB_ARCHES := darwin_amd64 darwin_arm64
84
84
85
85
# Computed variables based on the above.
86
86
CODER_SLIM_BINARIES := $(addprefix build/coder-slim_$(VERSION ) _,$(OS_ARCHES ) )
87
- CODER_DYLIBS := $(addprefix build/coder-vpn_$(VERSION ) _, $( DYLIB_ARCHES ) )
87
+ CODER_DYLIBS := $(foreach os_arch, $( DYLIB_ARCHES ) , build/coder-vpn_$(VERSION ) _$( os_arch ) .dylib )
88
88
CODER_FAT_BINARIES := $(addprefix build/coder_$(VERSION ) _,$(OS_ARCHES ) )
89
89
CODER_ALL_BINARIES := $(CODER_SLIM_BINARIES ) $(CODER_FAT_BINARIES )
90
90
CODER_TAR_GZ_ARCHIVES := $(foreach os_arch, $(ARCHIVE_TAR_GZ ) , build/coder_$(VERSION ) _$(os_arch ) .tar.gz)
@@ -254,7 +254,7 @@ $(CODER_DYLIBS): go.mod go.sum $(GO_SRC_FILES)
254
254
--dylib
255
255
256
256
cp "$@" "./site/out/bin/coder-vpn-$$os-$$arch.dylib"
257
- cp " *.h" "./site/out/bin/coder-vpn-$$os.h"
257
+ cp ./build/ *.h "./site/out/bin/coder-vpn-$$os.h"
258
258
else
259
259
echo "Skipping dylib build on non-Darwin OS"
260
260
fi
Original file line number Diff line number Diff line change @@ -177,15 +177,15 @@ if [[ "$agpl" == 1 ]]; then
177
177
fi
178
178
179
179
cgo=0
180
- sdk=" "
181
180
if [[ " $dylib " == 1 ]]; then
182
181
if [[ " $os " != " darwin" ]]; then
183
182
error " dylib builds are not supported on $os "
184
183
fi
185
184
cgo=1
186
185
cmd_path=" ./vpn/dylib/lib.go"
187
186
build_args+=(" -buildmode=c-shared" )
188
- sdk=" $( xcrun --sdk macosx --show-sdk-path) "
187
+ SDKROOT=" $( xcrun --sdk macosx --show-sdk-path) "
188
+ export SDKROOT
189
189
bin_ident=" com.coder.vpn"
190
190
fi
191
191
@@ -195,7 +195,7 @@ if [[ "$boringcrypto" == 1 ]]; then
195
195
goexp=" boringcrypto"
196
196
fi
197
197
198
- GOEXPERIMENT=" $goexp " CGO_ENABLED=" $cgo " GOOS=" $os " GOARCH=" $arch " GOARM=" $arm_version " SDKROOT= " $sdk " \
198
+ GOEXPERIMENT=" $goexp " CGO_ENABLED=" $cgo " GOOS=" $os " GOARCH=" $arch " GOARM=" $arm_version " \
199
199
go build \
200
200
" ${build_args[@]} " \
201
201
" $cmd_path " 1>&2
Original file line number Diff line number Diff line change 8
8
# On success, the input file will be signed using the Apple Developer
9
9
# certificate.
10
10
#
11
+ # For the Coder CLI, the binary_identifier should be "com.coder.cli".
12
+ # For the CoderVPN `.dylib`, the binary_identifier should be "com.coder.vpn".
13
+ #
11
14
# You can check if a binary is signed by running the following command on a Mac:
12
15
# codesign -dvv path/to/binary
13
16
#
You can’t perform that action at this time.
0 commit comments