You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5689c8d
Browse filesBrowse the repository at this point in the historyBrowse files
Azure App Services doesn't have Git installed on the servers by default, and alternatives like LibGit2Sharp are slower than just redownloading the latest branch when it changes.
@@ -11,75 +15,171 @@ internal class ModDatasetRepository : IModDatasetRepository
11
15
/*********
12
16
** Fields
13
17
*********/
14
-
/// <summary>The HTTPS URL of the mod dataset Git repo.</summary>
15
-
privatereadonlystringRepoUrl;
18
+
/// <summary>The URL of the zip file to download which contains the Stardew mod dataset (e.g. a GitHub branch download URL).</summary>
19
+
privatereadonlystringDownloadZipUrl;
16
20
17
-
/// <summary>The full path to the mod dataset repo.</summary>
18
-
privatereadonlystringLocalRepoPath;
21
+
/// <summary>The full path to the folder into which to download the mod dataset. This should be a new folder, since anything inside it may be deleted.</summary>
22
+
privatereadonlystringLocalRootPath;
23
+
24
+
/// <summary>The HTTP client with which to fetch the mod dataset archive.</summary>
25
+
privatereadonlyHttpClientHttpClient;
26
+
27
+
/// <summary>The name of the file within the <see cref="LocalRootPath"/> in which to cache data about the last fetched dataset.</summary>
28
+
privateconststringCacheFileName=".cache.json";
29
+
30
+
/// <summary>The path to the actual 'dataset' folder.</summary>
Copy file name to clipboardExpand all lines: src/SMAPI.Web/Framework/ConfigModels/ModDatasetConfig.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ internal class ModDatasetConfig
6
6
/*********
7
7
** Accessors
8
8
*********/
9
-
/// <summary>The HTTPS URL of the mod dataset Git repo.</summary>
10
-
publicstringRepoUrl{get;set;}=null!;
9
+
/// <summary>The URL of the zip file to download which contains the Stardew mod dataset (e.g. a GitHub branch download URL).</summary>
10
+
publicstringDownloadZipUrl{get;set;}=null!;
11
11
12
-
/// <summary>The local path into which to clone the mod dataset repo.</summary>
13
-
publicstringLocalPath{get;set;}=null!;
12
+
/// <summary>The full path to the folder into which to download the mod dataset. This should be a new folder, since anything inside it may be deleted.</summary>
0 commit comments