1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-11 03:45:08 -05:00

Relocate version.txt, leave a copy in old place for a while for upgrades to work

This commit is contained in:
Berke Viktor 2012-11-03 01:58:56 +01:00
parent c07c888321
commit 259ed9644d
3 changed files with 5 additions and 3 deletions

View File

@ -47,7 +47,7 @@ check_version ()
} }
hFile = InternetOpenUrl (hINet, hFile = InternetOpenUrl (hINet,
"https://raw.github.com/hexchat/hexchat/master/version.txt", "https://raw.github.com/hexchat/hexchat/master/win32/version.txt",
NULL, NULL,
0, 0,
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD, INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_RELOAD,
@ -117,7 +117,7 @@ check_version ()
hResource = HttpOpenRequest (hConnect, hResource = HttpOpenRequest (hConnect,
TEXT ("GET"), TEXT ("GET"),
TEXT ("/hexchat/hexchat/master/version.txt"), TEXT ("/hexchat/hexchat/master/win32/version.txt"),
TEXT ("HTTP/1.0"), TEXT ("HTTP/1.0"),
NULL, NULL,
NULL, NULL,

View File

@ -113,7 +113,8 @@ main (int argc, char *argv[])
else if (!strcmp (argv[1], "-v")) /* version.txt */ else if (!strcmp (argv[1], "-v")) /* version.txt */
{ {
printf ("%s", PACKAGE_VERSION); printf ("%s", PACKAGE_VERSION);
} else }
else
{ {
printf ("usage:\n\t-a\thexchat.iss/AppVerName\n\t-i\thexchat.iss/VersionInfoVersion\n\t-o\thexchat.iss/OutputBaseFilename\n\t-r\thexchat.rc/FILEVERSION, PRODUCTVERSION\n\t-v\thexchat.iss/AppVersion\n"); printf ("usage:\n\t-a\thexchat.iss/AppVerName\n\t-i\thexchat.iss/VersionInfoVersion\n\t-o\thexchat.iss/OutputBaseFilename\n\t-r\thexchat.rc/FILEVERSION, PRODUCTVERSION\n\t-v\thexchat.iss/AppVersion\n");
} }

1
win32/version.txt Normal file
View File

@ -0,0 +1 @@
2.9.3