Skip to content

Commit a9cfb4d

Browse files
committed
renaming
1 parent af5acc9 commit a9cfb4d

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,6 @@ jobs:
863863
864864
make gen/mark-fresh
865865
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
868866
env:
869867
CODER_SIGN_DARWIN: "1"
870868
AC_CERTIFICATE_FILE: /tmp/apple_cert.p12
@@ -875,8 +873,8 @@ jobs:
875873
with:
876874
name: dylibs
877875
path: |
878-
./build/*.h
879-
./build/*.dylib
876+
./site/out/bin/*.h
877+
./site/out/bin/*.dylib
880878
retention-days: 7
881879

882880
build:
@@ -928,13 +926,7 @@ jobs:
928926
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
929927
with:
930928
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
938930

939931
- name: Build
940932
run: |

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ DYLIB_ARCHES := darwin_amd64.dylib darwin_arm64.dylib
8484

8585
# Computed variables based on the above.
8686
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))
8888
CODER_FAT_BINARIES := $(addprefix build/coder_$(VERSION)_,$(OS_ARCHES))
8989
CODER_ALL_BINARIES := $(CODER_SLIM_BINARIES) $(CODER_FAT_BINARIES)
9090
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)
253253
--output "$@" \
254254
--dylib
255255

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"
257258
else
258259
echo "Skipping dylib build on non-Darwin OS"
259260
fi

scripts/build_go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ if [[ "$dylib" == 1 ]]; then
186186
cmd_path="./vpn/dylib/lib.go"
187187
build_args+=("-buildmode=c-shared")
188188
sdk="$(xcrun --sdk macosx --show-sdk-path)"
189-
bin_ident="com.coder.desktop"
189+
bin_ident="com.coder.vpn"
190190
fi
191191

192192
goexp=""

0 commit comments

Comments
 (0)