From 2ae91327e97cbe940d3465b9c88016d4f57adf0c Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Tue, 2 Dec 2014 00:09:25 +0100 Subject: [PATCH] Use our own infrastructure for version checks Signed-off-by: Sven Strickroth --- doc/source/en/TortoiseGit/tgit_app_admins.xml | 8 ++++---- src/TortoiseProc/CheckForUpdatesDlg.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/en/TortoiseGit/tgit_app_admins.xml b/doc/source/en/TortoiseGit/tgit_app_admins.xml index 34761d019..18c8e2728 100644 --- a/doc/source/en/TortoiseGit/tgit_app_admins.xml +++ b/doc/source/en/TortoiseGit/tgit_app_admins.xml @@ -90,8 +90,8 @@ TortoiseGit allow you to redirect that upgrade check to your intranet server. You can set the registry key HKCU\Software\TortoiseGit\UpdateCheckURL OR HKLM\Software\TortoiseGit\UpdateCheckURL (string value, HKCU overrides HKLM) - to an URL pointing to a text file in your intranet (default is http://version.tortoisegit.googlecode.com/git/version.txt). - When the default version.txt file is used, it is checked by verifying a digital signature (http://version.tortoisegit.googlecode.com/git/version.txt.asc) that it has not been altered (since TortoiseGit 1.8.5). + to an URL pointing to a text file in your intranet (default is http://versioncheck.tortoisegit.org/version.txt). + When the default version.txt file is used, it is checked by verifying a digital signature (http://versioncheck.tortoisegit.org/version.txt.rsa.asc) that it has not been altered (since TortoiseGit 1.8.5). The check for the digital signature of the version.txt file is omitted if the location is overridden in registry. That text file must have the following format: @@ -112,8 +112,8 @@ http://192.168.2.1/downloads/TortoiseGit/ when the user clicks on the (custom) message label in the upgrade dialog. The URL is opened with the default web browser, so if you specify a web page, that page is opened and shown to the user. - The fourth line contains the URL to the Changelog or release notes which are displayed in the upgrade dialog (if empty it defaults to http://tortoisegit.googlecode.com/git/src/Changelog.txt) - The fifth line is used to override the base path to the installation packages (if empty it defaults to http://tortoisegit.googlecode.com/files/). + The fourth line contains the URL to the Changelog or release notes which are displayed in the upgrade dialog (if empty it defaults to http://versioncheck.tortoisegit.org/changelog.txt) + The fifth line is used to override the base path to the installation packages (if empty it defaults to http://updater.download.tortoisegit.org/tgit/X.X.X.X/). The filenames are generated as follows: TortoiseGit-(version)-(32|64)bit.msi for the main installer and TortoiseGit-LanguagePack-(version)-(32|64)bit-(cs|de|...).msi for the language packs. Starting from this line, one can advertise language packs (one per line: Four digit country code;ISO Country code). diff --git a/src/TortoiseProc/CheckForUpdatesDlg.cpp b/src/TortoiseProc/CheckForUpdatesDlg.cpp index c7e02b6f7..7f4eeffae 100644 --- a/src/TortoiseProc/CheckForUpdatesDlg.cpp +++ b/src/TortoiseProc/CheckForUpdatesDlg.cpp @@ -194,11 +194,11 @@ UINT CCheckForUpdatesDlg::CheckThread() #endif if (checkPreview) { - sCheckURL = _T("http://version.tortoisegit.googlecode.com/git/version-preview.txt"); + sCheckURL = _T("http://versioncheck.tortoisegit.org/version-preview.txt"); SetDlgItemText(IDC_SOURCE, _T("Using preview release channel")); } else - sCheckURL = _T("http://version.tortoisegit.googlecode.com/git/version.txt"); + sCheckURL = _T("http://versioncheck.tortoisegit.org/version.txt"); } } @@ -460,7 +460,7 @@ void CCheckForUpdatesDlg::FillChangelog(CStdioFile &file) { CString sChangelogURL; if (!file.ReadString(sChangelogURL) || sChangelogURL.IsEmpty()) - sChangelogURL = _T("http://tortoisegit.googlecode.com/git/src/Changelog.txt"); + sChangelogURL = _T("http://versioncheck.tortoisegit.org/changelog.txt"); CString tempchangelogfile = CTempFiles::Instance().GetTempFilePath(true).GetWinPathString(); if (!m_updateDownloader->DownloadFile(sChangelogURL, tempchangelogfile, false)) -- 2.11.4.GIT