<div dir="auto"><div dir="auto">Hi Felix,</div><div dir="auto"><br></div>No super strong feeling on this, but maybe the arm64 should be an #elif test and leave the else to trigger an #error.<br><br><div data-smartmail="gmail_signature">-- Sean McGovern</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun., Dec. 6, 2020, 12:30 Felix Paul Kühne, <<a href="mailto:fkuehne@videolan.org">fkuehne@videolan.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Felix Paul Kühne <<a href="mailto:felix@feepk.net" target="_blank" rel="noreferrer">felix@feepk.net</a>><br>
<br>
---<br>
modules/gui/macosx/VLCMain.m | 25 +++++++++++++++++++++++++<br>
share/<a href="http://Info.plist.in" rel="noreferrer noreferrer" target="_blank">Info.plist.in</a> | 2 --<br>
2 files changed, 25 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/modules/gui/macosx/VLCMain.m b/modules/gui/macosx/VLCMain.m<br>
index 3e08c48da9..f0b1d6d4a9 100644<br>
--- a/modules/gui/macosx/VLCMain.m<br>
+++ b/modules/gui/macosx/VLCMain.m<br>
@@ -385,6 +385,31 @@ - (BOOL)updaterMayCheckForUpdates:(SUUpdater *)bundle<br>
<br>
return YES;<br>
}<br>
+<br>
+/* use the correct feed depending on the hardware architecture */<br>
+- (nullable NSString *)feedURLStringForUpdater:(SUUpdater *)updater<br>
+{<br>
+#ifdef __x86_64__<br>
+ return @"<a href="https://update.videolan.org/vlc/sparkle/vlc-intel64.xml" rel="noreferrer noreferrer" target="_blank">https://update.videolan.org/vlc/sparkle/vlc-intel64.xml</a>";<br>
+#else<br>
+ return @"<a href="https://update.videolan.org/vlc/sparkle/vlc-arm64.xml" rel="noreferrer noreferrer" target="_blank">https://update.videolan.org/vlc/sparkle/vlc-arm64.xml</a>";<br>
+#endif<br>
+}<br>
+<br>
+- (void)updaterDidNotFindUpdate:(SUUpdater *)updater<br>
+{<br>
+ msg_Dbg(p_intf, "No update found");<br>
+}<br>
+<br>
+- (void)updater:(SUUpdater *)updater failedToDownloadUpdate:(SUAppcastItem *)item error:(NSError *)error<br>
+{<br>
+ msg_Warn(p_intf, "Failed to download update with error %li", error.code);<br>
+}<br>
+<br>
+- (void)updater:(SUUpdater *)updater didAbortWithError:(NSError *)error<br>
+{<br>
+ msg_Err(p_intf, "Updater aborted with error %li", error.code);<br>
+}<br>
#endif<br>
<br>
#pragma mark -<br>
diff --git a/share/<a href="http://Info.plist.in" rel="noreferrer noreferrer" target="_blank">Info.plist.in</a> b/share/<a href="http://Info.plist.in" rel="noreferrer noreferrer" target="_blank">Info.plist.in</a><br>
index 0fe1a4682d..711721fdee 100644<br>
--- a/share/<a href="http://Info.plist.in" rel="noreferrer noreferrer" target="_blank">Info.plist.in</a><br>
+++ b/share/<a href="http://Info.plist.in" rel="noreferrer noreferrer" target="_blank">Info.plist.in</a><br>
@@ -1520,8 +1520,6 @@<br>
<string>VLCApplication</string><br>
<key>NSSupportsAutomaticGraphicsSwitching</key><br>
<true/><br>
- <key>SUFeedURL</key><br>
- <string><a href="https://update.videolan.org/vlc/sparkle/vlc-intel64.xml" rel="noreferrer noreferrer" target="_blank">https://update.videolan.org/vlc/sparkle/vlc-intel64.xml</a></string><br>
<key>SUPublicDSAKeyFile</key><br>
<string>dsa_pub.pem</string><br>
<key>UTExportedTypeDeclarations</key><br>
-- <br>
2.24.3 (Apple Git-128)<br>
<br>
_______________________________________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer noreferrer" target="_blank">https://mailman.videolan.org/listinfo/vlc-devel</a></blockquote></div>