File tree Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Expand file tree Collapse file tree 3 files changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -863,8 +863,6 @@ jobs:
863
863
864
864
make gen/mark-fresh
865
865
make build/coder-dylib
866
- # Remove a header file since they're identical
867
- rm "$(ls ./build/*.h 2>/dev/null | head -n 1)" 2>/dev/null
868
866
env :
869
867
CODER_SIGN_DARWIN : " 1"
870
868
AC_CERTIFICATE_FILE : /tmp/apple_cert.p12
@@ -875,8 +873,8 @@ jobs:
875
873
with :
876
874
name : dylibs
877
875
path : |
878
- ./build /*.h
879
- ./build /*.dylib
876
+ ./site/out/bin /*.h
877
+ ./site/out/bin /*.dylib
880
878
retention-days : 7
881
879
882
880
build :
@@ -928,13 +926,7 @@ jobs:
928
926
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
929
927
with :
930
928
name : dylibs
931
- path : ./build
932
-
933
- - name : Insert dylibs
934
- run : |
935
- mv ./build/*amd64.dylib ./site/out/bin/coder-amd64.dylib
936
- mv ./build/*arm64.dylib ./site/out/bin/coder-arm64.dylib
937
- mv ./build/*.h ./site/out/bin/coder-dylib.h
929
+ path : ./site/out/bin
938
930
939
931
- name : Build
940
932
run : |
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ DYLIB_ARCHES := darwin_amd64.dylib darwin_arm64.dylib
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-desktop_ $(VERSION ) _,$(DYLIB_ARCHES ) )
87
+ CODER_DYLIBS := $(addprefix build/coder-vpn_ $(VERSION ) _,$(DYLIB_ARCHES ) )
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)
@@ -253,7 +253,8 @@ $(CODER_DYLIBS): go.mod go.sum $(GO_SRC_FILES)
253
253
--output " $@ " \
254
254
--dylib
255
255
256
- cp "$@" "./site/out/bin/coder-desktop-$$os-$$arch.dylib"
256
+ cp "$@" "./site/out/bin/coder-vpn-$$os-$$arch.dylib"
257
+ cp "*.h" "./site/out/bin/coder-vpn-$$os.h"
257
258
else
258
259
echo "Skipping dylib build on non-Darwin OS"
259
260
fi
Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ if [[ "$dylib" == 1 ]]; then
186
186
cmd_path=" ./vpn/dylib/lib.go"
187
187
build_args+=(" -buildmode=c-shared" )
188
188
sdk=" $( xcrun --sdk macosx --show-sdk-path) "
189
- bin_ident=" com.coder.desktop "
189
+ bin_ident=" com.coder.vpn "
190
190
fi
191
191
192
192
goexp=" "
You can’t perform that action at this time.
0 commit comments