vlc/vlc-2.0 | branch: master | Felix Paul Kühne <[email protected]> | Wed 
Sep 11 15:51:06 2013 +0200| [3b5526e03d27c5182a85d663515f6aae8a951a40] | 
committer: Felix Paul Kühne

macosx: add hack so deprecated platforms don't get updates they can't execute

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=3b5526e03d27c5182a85d663515f6aae8a951a40
---

 extras/package/macosx/Info.plist.in |    2 --
 modules/gui/macosx/intf.m           |   10 ++++++++++
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/extras/package/macosx/Info.plist.in 
b/extras/package/macosx/Info.plist.in
index 48a2109..139a602 100644
--- a/extras/package/macosx/Info.plist.in
+++ b/extras/package/macosx/Info.plist.in
@@ -1318,8 +1318,6 @@
                        <string>Binary</string>
                </dict>
        </array>
-       <key>SUFeedURL</key>
-       <string>http://update.videolan.org/vlc/sparkle/vlc.xml</string>
        <key>SUPublicDSAKeyFile</key>
        <string>dsa_pub.pem</string>
        <key>CFBundleExecutable</key>
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 654c554..f56cd3b 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -655,6 +655,16 @@ static VLCMain *_o_sharedMainInstance = nil;
 
     [self initStrings];
 
+    NSURL *feedURL;
+#ifdef __x86_64__
+    feedURL = [NSURL 
URLWithString:@"http://update.videolan.org/vlc/sparkle/vlc-intel64.xml";];
+#elif __i386__
+    feedURL = [NSURL 
URLWithString:@"http://update.videolan.org/vlc/sparkle/vlc-intel32.xml";];
+#else
+    feedURL = [NSURL 
URLWithString:@"http://update.videolan.org/vlc/sparkle/vlc-powerpc.xml";];
+#endif
+    [[SUUpdater sharedUpdater] setFeedURL:feedURL];
+
     nib_main_loaded = TRUE;
 }
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to