File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -873,8 +873,8 @@ jobs:
873
873
with :
874
874
name : dylibs
875
875
path : |
876
- ./site/out/bin /*.h
877
- ./site/out/bin /*.dylib
876
+ ./build /*.h
877
+ ./build /*.dylib
878
878
retention-days : 7
879
879
880
880
build :
@@ -926,7 +926,13 @@ jobs:
926
926
uses : actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
927
927
with :
928
928
name : dylibs
929
- path : ./site/out/bin
929
+ path : ./build
930
+
931
+ - name : Insert dylibs
932
+ run : |
933
+ mv ./build/*amd64.dylib ./site/out/bin/coder-desktop-darwin-amd64.dylib
934
+ mv ./build/*arm64.dylib ./site/out/bin/coder-desktop-darwin-arm64.dylib
935
+ mv ./build/*arm64.h ./site/out/bin/coder-desktop-darwin-dylib.h
930
936
931
937
- name : Build
932
938
run : |
Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ 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 := $(foreach os_arch, $(DYLIB_ARCHES ) , build/coder-vpn_$(VERSION ) _$(os_arch ) )
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)
@@ -250,11 +250,9 @@ $(CODER_DYLIBS): go.mod go.sum $(GO_SRC_FILES)
250
250
--os " $$ os" \
251
251
--arch " $$ arch" \
252
252
--version " $( VERSION) " \
253
- --output " $@ .dylib " \
253
+ --output " $@ " \
254
254
--dylib
255
255
256
- cp "$@.dylib" "./site/out/bin/coder-vpn-$$os-$$arch.dylib"
257
- cp "$@.h" "./site/out/bin/coder-vpn-$$os.h"
258
256
else
259
257
echo "Skipping dylib build on non-Darwin OS"
260
258
fi
You can’t perform that action at this time.
0 commit comments