From b94d8a4d9230293bf0669dd73962795fa21b08e0 Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Sat, 19 Dec 2020 21:37:08 +0100 Subject: [PATCH] Plugins: Add get-plugins.ps1 script --- Il2CppInspector.sln | 1 + get-plugins.ps1 | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 get-plugins.ps1 diff --git a/Il2CppInspector.sln b/Il2CppInspector.sln index 9b6f622..c2b4f1b 100644 --- a/Il2CppInspector.sln +++ b/Il2CppInspector.sln @@ -20,6 +20,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{46226B08-22BA-455E-8B99-F496E90EDCBC}" ProjectSection(SolutionItems) = preProject docs\CSProj_Preview.png = docs\CSProj_Preview.png + get-plugins.ps1 = get-plugins.ps1 docs\Ghidra_Guide.png = docs\Ghidra_Guide.png docs\Ghidra_Preview.png = docs\Ghidra_Preview.png docs\GUI_Preview.png = docs\GUI_Preview.png diff --git a/get-plugins.ps1 b/get-plugins.ps1 new file mode 100644 index 0000000..c56df8e --- /dev/null +++ b/get-plugins.ps1 @@ -0,0 +1,8 @@ +# Copyright 2020 Katy Coe - http://www.djkaty.com - https://github.com/djkaty +# All rights reserved. + +# Download the latest set of plugins to a temporary file, extract the archive then delete it +$temp = New-TemporaryFile | Rename-Item -NewName { $_ -replace 'tmp$', 'zip' } –PassThru +wget -OutFile $temp https://github.com/djkaty/Il2CppInspectorPlugins/releases/latest/download/plugins.zip +Expand-Archive -Path $temp -DestinationPath $pwd -Force +del $temp