@@ -5,20 +5,23 @@ namespace HandyWinget.Assets
5
5
{
6
6
public abstract class Consts
7
7
{
8
- public static string AppName = "HandyWinGet" ;
9
- public static string VersionKey = "VersionCode" ;
10
- private static string ManifestFolderName = "manifests" ;
11
- private static string TempFolderName = "Temp" ;
8
+ public static readonly string AppName = "HandyWinGet" ;
9
+ public static readonly string VersionKey = "VersionCode" ;
10
+ private static readonly string ManifestFolderName = "manifests" ;
11
+ private static readonly string TempFolderName = "Temp" ;
12
12
13
- public static string RootPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName ) ;
14
- public static string TempSetupPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName , TempFolderName ) ;
15
- public static string ManifestPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName , ManifestFolderName ) ;
16
- public static string ConfigPath = Path . Combine ( RootPath , "Config.json" ) ;
13
+ public static readonly string RootPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName ) ;
14
+ public static readonly string TempSetupPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName , TempFolderName ) ;
15
+ public static readonly string ManifestPath = Path . Combine ( Environment . GetFolderPath ( Environment . SpecialFolder . ApplicationData ) , AppName , ManifestFolderName ) ;
16
+ public static readonly string ConfigPath = Path . Combine ( RootPath , "Config.json" ) ;
17
+ public static readonly string CachePath = Path . Combine ( RootPath , "Cache" ) ;
18
+
19
+ public static readonly string AppSecret = "0153dc1d-eda3-4da2-98c9-ce29361d622d" ;
17
20
18
- public static string WingetRepository = "https://github.com/microsoft/winget-cli/releases" ;
19
- public static string WingetPkgsRepository = "https://github.com/microsoft/winget-pkgs/archive/master.zip" ;
21
+ public static readonly string WingetRepository = "https://github.com/microsoft/winget-cli/releases" ;
22
+ public static readonly string WingetPkgsRepository = "https://github.com/microsoft/winget-pkgs/archive/master.zip" ;
20
23
21
- public static string IDManX64Location = @"C:\Program Files (x86)\Internet Download Manager\IDMan.exe" ;
22
- public static string IDManX86Location = @"C:\Program Files\Internet Download Manager\IDMan.exe" ;
24
+ public static readonly string IDManX64Location = @"C:\Program Files (x86)\Internet Download Manager\IDMan.exe" ;
25
+ public static readonly string IDManX86Location = @"C:\Program Files\Internet Download Manager\IDMan.exe" ;
23
26
}
24
27
}
0 commit comments