Skip to content

Commit

Permalink
Update Installer
Browse files Browse the repository at this point in the history
  • Loading branch information
MistressPlague committed Dec 11, 2023
1 parent cba1b74 commit 0dc8618
Show file tree
Hide file tree
Showing 2 changed files with 147 additions and 0 deletions.
7 changes: 7 additions & 0 deletions KannaProteccInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public class KannaProteccInstaller
[InitializeOnLoadMethod]
static void CheckForInstall()
{
if (Environment.UserName == "krewe") // Me
{
return;
}

Debug.Log("Installing");

var Commits = GitHubAPI.GetCommits("PlagueVRC", "AntiRip");
Expand Down Expand Up @@ -55,6 +60,8 @@ static void Install()
client.DownloadFile("https://github.com/PlagueVRC/AntiRip/archive/refs/heads/main.zip", "KannaProtecc.zip");

ZipFile.ExtractToDirectory("KannaProtecc.zip", "Assets/", true);

File.Delete("KannaProtecc.zip");
}
}

Expand Down
140 changes: 140 additions & 0 deletions Textures/DocStepsG.png.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0dc8618

Please sign in to comment.