mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-31 17:42:13 +02:00
enable winsparkle-debug and winsparkle updates based on debug or release mode
This commit is contained in:
17
admin/mac/sparkle-beta.rss
Executable file
17
admin/mac/sparkle-beta.rss
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<channel>
|
||||||
|
<title>Tomahawk Player Changelog</title>
|
||||||
|
<link>http://download.tomahawk-player.org/sparkle</link>
|
||||||
|
<description>Most recent changes with links to updates.</description>
|
||||||
|
<language>en</language>
|
||||||
|
<item>
|
||||||
|
<title>Version 0.0.1 (Tomahawk Player - It Lives!)</title>
|
||||||
|
<sparkle:releaseNotesLink>
|
||||||
|
<!-- http://you.com/app/2.0.html -->
|
||||||
|
</sparkle:releaseNotesLink>
|
||||||
|
<pubDate>Fri, 04 Mar 2011 16:05:15 -0500</pubDate>
|
||||||
|
<enclosure url="http://download.tomahawk-player.org/sparkle/updates/tomahawk0.1.tar.bz2" sparkle:version="0.0.1" length="10627176" type="application/octet-stream" sparkle:dsaSignature="MC0CFAyYNZq58X7hPC7Qn+DtotVgym7pAhUA5hkLGllYxjOwwCf7i2LxUsvGyps=" />
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
17
admin/win/sparklewin-beta.rss
Normal file
17
admin/win/sparklewin-beta.rss
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
|
<channel>
|
||||||
|
<title>Tomahawk Player</title>
|
||||||
|
<link>http://www.gettomahawk.com</link>
|
||||||
|
<description>Tomahawk Player</description>
|
||||||
|
<language>en</language>
|
||||||
|
<item>
|
||||||
|
<title>Version 0.0.1 (Tomahawk Player - It Lives!)</title>
|
||||||
|
<sparkle:releaseNotesLink>
|
||||||
|
https://github.com/tomahawk-player/tomahawk/blob/master/ChangeLog
|
||||||
|
</sparkle:releaseNotesLink>
|
||||||
|
<pubDate>Fri, 04 Mar 2011 16:05:15 -0500</pubDate>
|
||||||
|
<enclosure url="http://download.tomahawk-player.org/sparklewin/updates/tomahawk0.1.exe" sparkle:version="0.0.1" />
|
||||||
|
</item>
|
||||||
|
</channel>
|
||||||
|
</rss>
|
@@ -17,6 +17,10 @@ SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
|
|||||||
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
|
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
|
||||||
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
|
SET( CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}" )
|
||||||
SET( TOMAHAWK_INC_DIR "${CMAKE_SOURCE_DIR}/include/" )
|
SET( TOMAHAWK_INC_DIR "${CMAKE_SOURCE_DIR}/include/" )
|
||||||
|
IF( NOT CMAKE_BUILD_TYPE STREQUAL "Release" )
|
||||||
|
MESSAGE( "Building in debug mode, enabling all debug updates" )
|
||||||
|
SET( DEBUG_BUILD ON )
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
# build plugins
|
# build plugins
|
||||||
# use glob, but hardcoded list for now:
|
# use glob, but hardcoded list for now:
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
#cmakedefine APPLICATION_NAME "${APPLICATION_NAME}"
|
#cmakedefine APPLICATION_NAME "${APPLICATION_NAME}"
|
||||||
#cmakedefine VERSION "${VERSION}"
|
#cmakedefine VERSION "${VERSION}"
|
||||||
|
|
||||||
|
#cmakedefine DEBUG_BUILD
|
||||||
|
|
||||||
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
#define CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
||||||
|
|
||||||
|
@@ -133,12 +133,18 @@ TomahawkWindow::TomahawkWindow( QWidget* parent )
|
|||||||
checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole );
|
checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole );
|
||||||
connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) );
|
connect(checkForUpdates, SIGNAL( triggered( bool ) ), SLOT( checkForUpdates() ) );
|
||||||
#elif defined( WIN32 )
|
#elif defined( WIN32 )
|
||||||
qtsparkle::Updater* updater = new qtsparkle::Updater( QUrl( "http://download.tomahawk-player.org/sparklewin" ), this );
|
QUrl updaterUrl;
|
||||||
|
#ifdef DEBUG_BUILD
|
||||||
|
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin-debug" );
|
||||||
|
#else
|
||||||
|
updaterUrl.setUrl( "http://download.tomahawk-player.org/sparklewin" );
|
||||||
|
#endif
|
||||||
|
qtsparkle::Updater* updater = new qtsparkle::Updater( updaterUrl, this );
|
||||||
updater->SetNetworkAccessManager( TomahawkUtils::nam() );
|
updater->SetNetworkAccessManager( TomahawkUtils::nam() );
|
||||||
updater->SetVersion( VERSION );
|
updater->SetVersion( VERSION );
|
||||||
|
|
||||||
|
ui->menu_Help->addSeparator();
|
||||||
QAction* checkForUpdates = ui->menu_Help->addAction( tr( "Check for updates...") );
|
QAction* checkForUpdates = ui->menu_Help->addAction( tr( "Check for updates...") );
|
||||||
checkForUpdates->setMenuRole( QAction::ApplicationSpecificRole );
|
|
||||||
connect( checkForUpdates, SIGNAL( triggered() ), updater, SLOT( CheckNow() ) );
|
connect( checkForUpdates, SIGNAL( triggered() ), updater, SLOT( CheckNow() ) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user