Development discussion of WireGuard
 help / color / mirror / Atom feed
* macOS update logic needs improving
@ 2020-12-17 10:25 Laura Smith
  2020-12-17 10:33 ` Jason A. Donenfeld
  2020-12-17 10:34 ` Alexander Burke
  0 siblings, 2 replies; 5+ messages in thread
From: Laura Smith @ 2020-12-17 10:25 UTC (permalink / raw)
  To: wireguard

Thank you for the recent efforts to bring macOS/iOS up to date.

However there is a little bit of a problem with the logic for your macOS App Store updates.

The update downloads fine, and *appears* to install, but the App Store app continues to show the update as available and installed.

Further investigation shows that if Wireguard is running and/or open, the app will not actually be updated (App Store will roll back to the existing version).

If Wireguard is quit, then the update will install OK.

So you probably need to add some logic somewhere to detect and deal with open/running Wireguard (e.g. prompt user to exit).

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: macOS update logic needs improving
  2020-12-17 10:25 macOS update logic needs improving Laura Smith
@ 2020-12-17 10:33 ` Jason A. Donenfeld
  2020-12-17 11:10   ` Laura Smith
  2020-12-17 10:34 ` Alexander Burke
  1 sibling, 1 reply; 5+ messages in thread
From: Jason A. Donenfeld @ 2020-12-17 10:33 UTC (permalink / raw)
  To: Laura Smith; +Cc: wireguard

Hi Laura,

Thanks for letting me know. I was under the impression that we were
handling this case
https://git.zx2c4.com/wireguard-apple/tree/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift
but maybe things broke in Big Sur.

Were you able to eventually unlodge it and update, or did it remain stuck?

Jason

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: macOS update logic needs improving
  2020-12-17 10:25 macOS update logic needs improving Laura Smith
  2020-12-17 10:33 ` Jason A. Donenfeld
@ 2020-12-17 10:34 ` Alexander Burke
  2020-12-17 10:38   ` Alexander Burke
  1 sibling, 1 reply; 5+ messages in thread
From: Alexander Burke @ 2020-12-17 10:34 UTC (permalink / raw)
  To: Laura Smith; +Cc: wireguard

This is also the case on iOS for the same reason: because an app cannot be updated while it’s running, and while at least one tunnel is up the OS will not terminate the app.


> On 17 Dec 2020, at 05:25, Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> wrote:
> 
> Thank you for the recent efforts to bring macOS/iOS up to date.
> 
> However there is a little bit of a problem with the logic for your macOS App Store updates.
> 
> The update downloads fine, and *appears* to install, but the App Store app continues to show the update as available and installed.
> 
> Further investigation shows that if Wireguard is running and/or open, the app will not actually be updated (App Store will roll back to the existing version).
> 
> If Wireguard is quit, then the update will install OK.
> 
> So you probably need to add some logic somewhere to detect and deal with open/running Wireguard (e.g. prompt user to exit).


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: macOS update logic needs improving
  2020-12-17 10:34 ` Alexander Burke
@ 2020-12-17 10:38   ` Alexander Burke
  0 siblings, 0 replies; 5+ messages in thread
From: Alexander Burke @ 2020-12-17 10:38 UTC (permalink / raw)
  To: Laura Smith; +Cc: wireguard

Awfully gauche to reply to myself, but here we are.

This is the case on iOS at least in the event of an active Connect-on-Demand tunnel; the update sits and spins in the App Store until a few seconds after Connect-on-Demand is disabled, at which time the update proceeds and Connect-on-Demand can be re-enabled.


> On 17 Dec 2020, at 5:34, Alexander Burke <alex@alexburke.ca> wrote:
> 
> This is also the case on iOS for the same reason: because an app cannot be updated while it’s running, and while at least one tunnel is up the OS will not terminate the app.
> 
> 
>> On 17 Dec 2020, at 05:25, Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch> wrote:
>> 
>> Thank you for the recent efforts to bring macOS/iOS up to date.
>> 
>> However there is a little bit of a problem with the logic for your macOS App Store updates.
>> 
>> The update downloads fine, and *appears* to install, but the App Store app continues to show the update as available and installed.
>> 
>> Further investigation shows that if Wireguard is running and/or open, the app will not actually be updated (App Store will roll back to the existing version).
>> 
>> If Wireguard is quit, then the update will install OK.
>> 
>> So you probably need to add some logic somewhere to detect and deal with open/running Wireguard (e.g. prompt user to exit).
> 


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: macOS update logic needs improving
  2020-12-17 10:33 ` Jason A. Donenfeld
@ 2020-12-17 11:10   ` Laura Smith
  0 siblings, 0 replies; 5+ messages in thread
From: Laura Smith @ 2020-12-17 11:10 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

Yes all good.  Killed the tunnel and quit Wireguard and I'm now writing you this from the shiny new version. ;-)


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Thursday, 17 December 2020 10:33, Jason A. Donenfeld <Jason@zx2c4.com> wrote:

> Hi Laura,
>
> Thanks for letting me know. I was under the impression that we were
> handling this case
> https://git.zx2c4.com/wireguard-apple/tree/Sources/WireGuardApp/UI/macOS/MacAppStoreUpdateDetector.swift
> but maybe things broke in Big Sur.
>
> Were you able to eventually unlodge it and update, or did it remain stuck?
>
> Jason



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-12-17 11:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17 10:25 macOS update logic needs improving Laura Smith
2020-12-17 10:33 ` Jason A. Donenfeld
2020-12-17 11:10   ` Laura Smith
2020-12-17 10:34 ` Alexander Burke
2020-12-17 10:38   ` Alexander Burke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).