# # # patch "guitone.pro" # from [54b9d7d520973b9d1d6be0a13b0e5c228e985a01] # to [bad165bd001ea9efdadeeb99cd5294c28eaaf1ae] # # patch "res/osx/Info.plist.in" # from [832547658bc86b07d4deacfec7b636930a86d27a] # to [8b4ad5a3c7bbc65bb49a2ff44f2df70ea88da41b] # # patch "src/view/dialogs/ApplicationUpdate.cpp" # from [1f1465579b6231b09667823dd0ad695d7a51b9f3] # to [02a631ba7c688265cb9bdb45867f6bd8f9f44b3e] # ============================================================ --- guitone.pro 54b9d7d520973b9d1d6be0a13b0e5c228e985a01 +++ guitone.pro bad165bd001ea9efdadeeb99cd5294c28eaaf1ae @@ -7,6 +7,7 @@ MAX_MTN_INT_VERSION = "9.0" GUITONE_REVISION = "" MIN_MTN_INT_VERSION = "7.0" MAX_MTN_INT_VERSION = "9.0" +APPCAST_URL = "https://guitone.thomaskeller.biz/web/appcast.xml" # # common configuration @@ -242,6 +243,7 @@ win32:RC_FILE = res/win32/guitone.rc !macx { HEADERS += src/view/dialogs/ApplicationUpdate.h SOURCES += src/view/dialogs/ApplicationUpdate.cpp + DEFINES += APPCAST_URL=\\\"$${APPCAST_URL}\\\" } # @@ -259,7 +261,8 @@ macx { # copy i18n resources into the final app bundle and # put the current version number into Info.plist QMAKE_POST_LINK = cp -R res/osx/Resources bin/guitone.app/Contents && \ - sed -e s/@@version@@/$${GUITONE_VERSION}/g \ + sed -e \'s|@@version@@|$${GUITONE_VERSION}|g\' \ + -e \'s|@@appcast_url@@|$${APPCAST_URL}|g\' \ < res/osx/Info.plist.in > bin/guitone.app/Contents/Info.plist # add x86, ppc archs for universal release builds ============================================================ --- res/osx/Info.plist.in 832547658bc86b07d4deacfec7b636930a86d27a +++ res/osx/Info.plist.in 8b4ad5a3c7bbc65bb49a2ff44f2df70ea88da41b @@ -7,7 +7,7 @@ CFBundleExecutable guitone CFBundleGetInfoString - guitone - a monotone frontend - (c) Thomas Keller 2006-2008 + guitone - a monotone frontend - (c) Thomas Keller 2006-2009 CFBundleIconFile guitone.icns CFBundleIdentifier @@ -26,8 +26,12 @@ @@version@@ LSMinimumSystemVersion 10.4.0 + SUCheckAtStartup + SUFeedURL - https://guitone.thomaskeller.biz/web/appcast.xml + @@appcast_url@@ + SUScheduledCheckInterval + 86400 CFBundleDocumentTypes ============================================================ --- src/view/dialogs/ApplicationUpdate.cpp 1f1465579b6231b09667823dd0ad695d7a51b9f3 +++ src/view/dialogs/ApplicationUpdate.cpp 02a631ba7c688265cb9bdb45867f6bd8f9f44b3e @@ -88,8 +88,12 @@ void ApplicationUpdate::checkForUpdates( silentCheck = silent; - httpConnection->setHost("guitone.thomaskeller.biz", QHttp::ConnectionModeHttps); - httpConnection->get("/web/appcast.xml"); + QUrl url(APPCAST_URL); + httpConnection->setHost(url.host(), + url.scheme() == "https" ? + QHttp::ConnectionModeHttps : + QHttp::ConnectionModeHttp); + httpConnection->get(url.path()); QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); }