@@ -34,7 +34,22 @@ APP_SIGNING_KEYCHAIN := $(if $(wildcard $(KEYCHAIN_FILE)),$(shell realpath $(KEY
34
34
setup : \
35
35
$(XCPROJECT ) \
36
36
$(PROJECT ) /VPNLib/vpn.pb.swift \
37
- $(PROJECT ) /VPNLib/FileSync/daemon.pb.swift
37
+ $(PROJECT ) /VPNLib/FileSync/daemon.pb.swift \
38
+ $(PROJECT ) /Resources/mutagen-agents.tar.gz \
39
+ $(PROJECT ) /Resources/mutagen-darwin-arm64 \
40
+ $(PROJECT ) /Resources/mutagen-darwin-amd64
41
+
42
+ # Mutagen resources
43
+ $(PROJECT ) /Resources/mutagen-agents.tar.gz :
44
+ gsutil cp gs://coder-desktop/mutagen/v0.18.1/mutagen-agents.tar.gz " $@ "
45
+
46
+ $(PROJECT ) /Resources/mutagen-darwin-arm64 :
47
+ gsutil cp gs://coder-desktop/mutagen/v0.18.1/mutagen-darwin-arm64 " $@ "
48
+ chmod +x " $@ "
49
+
50
+ $(PROJECT ) /Resources/mutagen-darwin-amd64 :
51
+ gsutil cp gs://coder-desktop/mutagen/v0.18.1/mutagen-darwin-amd64 " $@ "
52
+ chmod +x " $@ "
38
53
39
54
$(XCPROJECT ) : $(PROJECT ) /project.yml
40
55
cd $(PROJECT ) ; \
@@ -113,7 +128,7 @@ lint/actions: ## Lint GitHub Actions
113
128
zizmor .
114
129
115
130
.PHONY : clean
116
- clean : clean/project clean/keychain clean/build # # Clean project and artifacts
131
+ clean : clean/project clean/keychain clean/build clean/mutagen # # Clean project and artifacts
117
132
118
133
.PHONY : clean/project
119
134
clean/project :
@@ -136,6 +151,12 @@ clean/keychain:
136
151
clean/build :
137
152
rm -rf build/ release/ $$ out
138
153
154
+ .PHONY : clean/mutagen
155
+ clean/mutagen :
156
+ rm -f " $( PROJECT) /Resources/mutagen-agents.tar.gz"
157
+ rm -f " $( PROJECT) /Resources/mutagen-darwin-arm64"
158
+ rm -f " $( PROJECT) /Resources/mutagen-darwin-amd64"
159
+
139
160
.PHONY : proto
140
161
proto : $(PROJECT ) /VPNLib/vpn.pb.swift $(PROJECT ) /VPNLib/FileSync/daemon.pb.swift # # Generate Swift files from protobufs
141
162
0 commit comments