File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ binaries: clean \
118
118
119
119
# _output/bin
120
120
.PHONY : limactl lima helpers
121
- limactl : _output/bin/limactl$(exe ) codesign lima
121
+ limactl : _output/bin/limactl$(exe ) lima
122
122
123
123
# ## Listing Dependencies
124
124
@@ -182,6 +182,9 @@ _output/bin/limactl$(exe): $(DEPENDENCIES_FOR_LIMACTL) $$(call force_build,$$@)
182
182
# The hostagent must be compiled with CGO_ENABLED=1 so that net.LookupIP() in the DNS server
183
183
# calls the native resolver library and not the simplistic version in the Go library.
184
184
$(ENVS_$@ ) $(GO_BUILD ) -o $@ ./cmd/limactl
185
+ ifeq ($(GOOS ) ,darwin)
186
+ codesign -f -v --entitlements vz.entitlements -s - $@
187
+ endif
185
188
186
189
LIMA_CMDS = lima lima$(bat )
187
190
lima : $(addprefix _output/bin/,$(LIMA_CMDS ) )
@@ -412,9 +415,9 @@ artifacts-misc: | _artifacts
412
415
$(TAR ) -czf _artifacts/lima-$(VERSION_TRIMMED ) -go-mod-vendor.tar.gz go.mod go.sum vendor
413
416
414
417
.PHONY : codesign
415
- codesign :
418
+ codesign : _output/bin/limactl
416
419
ifeq ($(GOOS ) ,darwin)
417
- codesign --entitlements vz.entitlements -s - ./_output/bin/limactl
420
+ codesign --entitlements vz.entitlements -s - $<
418
421
endif
419
422
420
423
# This target must be placed after any changes to the `MKDIR_TARGETS` variable.
You can’t perform that action at this time.
0 commit comments