Removed build number in released filename and added computation of resource URL based on release name.

This commit is contained in:
xawotihs
2014-01-17 21:50:10 +01:00
parent 1d33de59a9
commit f97d9805dd
4 changed files with 26 additions and 12 deletions

View File

@@ -70,14 +70,17 @@ int main(int argc, char* argv[])
#endif //QT_WIDGET
app->setApplicationName(WagicCore::getApplicationName());
DownloadRequest* downloadRequest = NULL;
#ifdef WAGIC_RESOURCE_URL
Downloader*downloader = Downloader::GetInstance();
DownloadRequest* downloadRequest = downloader->Get(
downloadRequest = downloader->Get(
"core.zip",
"https://github.com/WagicProject/wagic/releases/download/latest-master/Wagic-core-288.zip"
WAGIC_RESOURCE_URL
);
#endif
#ifdef QT_WIDGET
g_glwidget = new WagicCore();
if(downloadRequest->getDownloadStatus() == DownloadRequest::DOWNLOADED)
if(!downloadRequest || downloadRequest->getDownloadStatus() == DownloadRequest::DOWNLOADED)
{
g_glwidget->start(0);
}