wasStitchNET – Diff between revs 14 and 17
?pathlinks?
Rev 14 | Rev 17 | |||
---|---|---|---|---|
1 | /////////////////////////////////////////////////////////////////////////// |
1 | /////////////////////////////////////////////////////////////////////////// |
|
2 | // Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 // |
2 | // Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 // |
|
3 | // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // |
3 | // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // |
|
4 | // rights of fair usage, the disclaimer and warranty conditions. // |
4 | // rights of fair usage, the disclaimer and warranty conditions. // |
|
5 | /////////////////////////////////////////////////////////////////////////// |
5 | /////////////////////////////////////////////////////////////////////////// |
|
6 | |
6 | |
|
7 | using System.Net.Http.Headers; |
7 | using System.Net.Http.Headers; |
|
8 | using System.Reflection; |
8 | using System.Reflection; |
|
9 | |
9 | |
|
10 | namespace wasStitchNET |
10 | namespace wasStitchNET |
|
11 | { |
11 | { |
|
12 | public struct STITCH_CONSTANTS |
12 | public struct STITCH_CONSTANTS |
|
13 | { |
13 | { |
|
14 | public const string SERVER_IP_PATH = @"ip"; |
14 | public const string SERVER_IP_PATH = @"ip"; |
|
15 | public const string UPDATE_PATH = @"update"; |
15 | public const string UPDATE_PATH = @"update"; |
|
16 | public const string LATEST_RELEASE_PATH = @"latest"; |
16 | public const string LATEST_RELEASE_PATH = @"latest"; |
|
17 | public const string PROGRESSIVE_PATH = @"progressive"; |
17 | public const string PROGRESSIVE_PATH = @"progressive"; |
|
18 | public const string UPDATE_DATA_PATH = @"data"; |
18 | public const string UPDATE_DATA_PATH = @"data"; |
|
19 | public const string UPDATE_OPTIONS_FILE = @"options.xml"; |
19 | public const string UPDATE_OPTIONS_FILE = @"options.xml"; |
|
20 | public const string UPDATE_CHECKSUM_FILE = @"checksum.txt"; |
20 | public const string UPDATE_CHECKSUM_FILE = @"checksum.txt"; |
|
21 | public const string UPDATE_MIRRORS_FILE = @"mirrors.txt"; |
21 | public const string UPDATE_MIRRORS_FILE = @"mirrors.txt"; |
|
22 | public static readonly string STITCH_VERSION = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
22 | public static readonly string STITCH_VERSION = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
|
23 | |
23 | |
|
24 | public static readonly ProductInfoHeaderValue USER_AGENT = |
24 | public static readonly ProductInfoHeaderValue USER_AGENT = |
|
25 | new ProductInfoHeaderValue(Assembly.GetEntryAssembly().GetName().Name, STITCH_VERSION); |
25 | new ProductInfoHeaderValue(Assembly.GetEntryAssembly().GetName().Name, STITCH_VERSION); |
|
26 | |
26 | |
|
27 | public const string GEOIP_CITY_DATABASE = @"GeoLite2-City.mmdb.gz"; |
27 | public const string GEOIP_CITY_DATABASE = @"GeoLite2-City.mmdb.gz"; |
|
28 | public const string GEOIP_UNKNOWN_COUNTRY = @"a galaxy far, far away..."; |
28 | public const string GEOIP_UNKNOWN_COUNTRY = @"a galaxy far, far away..."; |
|
29 | |
29 | |
|
30 | public const string OFFICIAL_UPDATE_SERVER = @"http://corrade.grimore.org"; |
30 | public const string OFFICIAL_UPDATE_SERVER = @"https://corrade.grimore.org"; |
|
31 | |
31 | |
|
32 | public const string SERVICE_NAME = @"Stitch"; |
32 | public const string SERVICE_NAME = @"Stitch"; |
|
33 | public const string SERVICE_DESCRIPTION = @"The Stitch Software Update Service."; |
33 | public const string SERVICE_DESCRIPTION = @"The Stitch Software Update Service."; |
|
34 | public const string DATE_TIME_STAMP = @"dd-MM-yyyy HH:mm:ss"; |
34 | public const string DATE_TIME_STAMP = @"dd-MM-yyyy HH:mm:ss"; |
|
35 | public const string LOG_FILE_PATH = @"logs/Stitch.log"; |
35 | public const string LOG_FILE_PATH = @"logs/Stitch.log"; |
|
36 | |
36 | |
|
37 | public const int LOCAL_FILE_ACCESS_TIMEOUT = 60000; |
37 | public const int LOCAL_FILE_ACCESS_TIMEOUT = 60000; |
|
38 | } |
38 | } |
|
39 | } |
39 | } |
|
40 | |
40 | |
|
41 |
|
41 |
|
|
42 | |
42 | |
|
43 | |
43 | |
|
44 | |
44 | |