Skip to content

Instantly share code, notes, and snippets.

@altrive
Created October 9, 2017 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save altrive/ad1e9d5bef96db06e0ed4376be0c497f to your computer and use it in GitHub Desktop.
Save altrive/ad1e9d5bef96db06e0ed4376be0c497f to your computer and use it in GitHub Desktop.
dnSpy installation script by using scoop
#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