Created
October 9, 2017 06:51
-
-
Save altrive/ad1e9d5bef96db06e0ed4376be0c497f to your computer and use it in GitHub Desktop.
dnSpy installation script by using scoop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Define scoop app manifest | |
$manifest = [ordered] @{ | |
homepage = 'https://github.com/0xd4d/dnSpy' | |
version = '4.0.0' | |
# TODO: Use latest build from <https://ci.appveyor.com/project/0xd4d/dnspy> | |
url = 'https://github.com/0xd4d/dnSpy/releases/download/v4.0.0-beta1/dnSpy.zip' | |
hash = '25da2e9dc426a78b75235906a166b597054f8ae1247c212520023e13b5474f62' | |
bin = @( | |
'dnSpy.exe', | |
'dnSpy.Console.exe' | |
) | |
} | |
#Output manifest json to Temp dir | |
$appManifestPath = Join-Path $env:TEMP 'dnSpy.json' | |
$manifest | ConvertTo-Json | Out-File -Encoding UTF8 -FilePath $appManifestPath -Force | |
# Try uninstall existing dnSpy | |
$installed = (scoop list dnSpy | where { $_.StartsWith(' dnSpy (')}).Count > 0 | |
if ($installed){ | |
scoop uninstall dnSpy | |
} | |
#Execute scoop install | |
scoop install $appManifestPath |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment