Plugins: Add get-plugins.ps1 script

This commit is contained in:
Katy Coe
2020-12-19 21:37:08 +01:00
parent 735dc2824b
commit b94d8a4d92
2 changed files with 9 additions and 0 deletions

View File

@@ -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

8
get-plugins.ps1 Normal file
View File

@@ -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' } <EFBFBD>PassThru
wget -OutFile $temp https://github.com/djkaty/Il2CppInspectorPlugins/releases/latest/download/plugins.zip
Expand-Archive -Path $temp -DestinationPath $pwd -Force
del $temp