@@ -5,20 +5,23 @@ namespace HandyWinget.Assets
55{
66 public abstract class Consts
77 {
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" ;
1212
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" ;
1720
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" ;
2023
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" ;
2326 }
2427}
0 commit comments