Skip to content

Commit

Permalink
Move publicized assembly cache to system temp directory
Browse files Browse the repository at this point in the history
People kept publishing their Source/obj directories (containing the entire Celeste code),
so let's see how this will go
  • Loading branch information
psyGamer committed Jun 18, 2024
1 parent adbe5b1 commit f029ffc
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions CelesteMod.Publicizer/CelestePublicizerTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,16 @@ public override bool Execute() {
return false;
}

string outputAssemblyPath = $"{IntermediateOutputPath}Celeste-publicized.dll";
string outputHashPath = $"{outputAssemblyPath}.md5";
// Clear old leftover DLLs
if (File.Exists($"{IntermediateOutputPath}Celeste-publicized.dll"))
File.Delete($"{IntermediateOutputPath}Celeste-publicized.dll");
if (File.Exists($"{IntermediateOutputPath}Celeste-publicized.dll.md5"))
File.Delete($"{IntermediateOutputPath}Celeste-publicized.dll.md5");
if (File.Exists($"{IntermediateOutputPath}Celeste-publicized.xml"))
File.Delete($"{IntermediateOutputPath}Celeste-publicized.xml");

string outputAssemblyPath = Path.Combine(Path.GetTempPath(), "Celeste-publicized.dll");
string outputHashPath = Path.ChangeExtension(outputAssemblyPath, "md5");

var taskAssembly = typeof(PublicizeCelesteTask).Assembly;

Expand Down

0 comments on commit f029ffc

Please sign in to comment.