File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 2929 <key >NetworkExtension </key >
3030 <dict >
3131 <key >NEMachServiceName </key >
32- <string >$(TeamIdentifierPrefix)com.coder.Coder-Desktop.VPN </string >
32+ <!-- We append the CFBundleVersion to the service name to ensure a new
33+ service is used for each version. This works around the issue described
34+ in https://github.com/coder/coder-desktop-macos/issues/121, presumably
35+ caused by the XPC service cache not being invalidated on update.
36+ -->
37+ <string >$(TeamIdentifierPrefix)com.coder.Coder-Desktop.VPN.$(CURRENT_PROJECT_VERSION) </string >
3338 </dict >
3439 <key >SUPublicEDKey </key >
3540 <string >Ae2oQLTcx89/a73XrpOt+IVvqdo+fMTjo3UKEm77VdA= </string >
Original file line number Diff line number Diff line change @@ -183,15 +183,16 @@ class SystemExtensionDelegate<AsyncDelegate: SystemExtensionAsyncRecorder>:
183183 if existing. bundleVersion == `extension`. bundleVersion {
184184 return . replace
185185 }
186+ // TODO: Workaround disabled, as we're trying another workaround
186187 // To work around the bug described in
187188 // https://github.com/coder/coder-desktop-macos/issues/121,
188189 // we're going to manually reinstall after the replacement is done.
189190 // If we returned `.cancel` here the deactivation request will fail as
190191 // it looks for an extension with the *current* version string.
191192 // There's no way to modify the deactivate request to use a different
192193 // version string (i.e. `existing.bundleVersion`).
193- logger. info ( " App upgrade detected, replacing and then reinstalling " )
194- action = . replacing
194+ // logger.info("App upgrade detected, replacing and then reinstalling")
195+ // action = .replacing
195196 return . replace
196197 }
197198}
Original file line number Diff line number Diff line change 99 <key >NetworkExtension </key >
1010 <dict >
1111 <key >NEMachServiceName </key >
12- <string >$(TeamIdentifierPrefix)com.coder.Coder-Desktop.VPN </string >
12+ <!-- We append the CFBundleVersion to the service name to ensure a new
13+ service is used for each version. This works around the issue described
14+ in https://github.com/coder/coder-desktop-macos/issues/121, presumably
15+ caused by the XPC service cache not being invalidated on update.
16+ -->
17+ <string >$(TeamIdentifierPrefix)com.coder.Coder-Desktop.VPN.$(CURRENT_PROJECT_VERSION) </string >
1318 <key >NEProviderClasses </key >
1419 <dict >
1520 <key >com.apple.networkextension.packet-tunnel </key >
You can’t perform that action at this time.
0 commit comments