mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
allow .ps1 as installer
This commit is contained in:
parent
cb92bf2658
commit
196cb869e4
@ -13,6 +13,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"installer": { "args": [ "/verysilent", "/dir=\"$dir\"", "/noicons" ] },
|
"installer": { "args": [ "/verysilent", "/dir=\"$dir\"", "/noicons" ] },
|
||||||
"uninstaller": { "exe": "unins000.exe", "args": ["/verysilent"] },
|
"uninstaller": { "file": "unins000.exe", "args": ["/verysilent"] },
|
||||||
"bin": "hg.exe"
|
"bin": "hg.exe"
|
||||||
}
|
}
|
||||||
10
pshazz.json
10
pshazz.json
@ -3,13 +3,5 @@
|
|||||||
"url": "https://github.com/lukesampson/pshazz/archive/master.zip",
|
"url": "https://github.com/lukesampson/pshazz/archive/master.zip",
|
||||||
"extract_dir": "pshazz-master",
|
"extract_dir": "pshazz-master",
|
||||||
"bin": [ "bin\\pshazz.ps1" ],
|
"bin": [ "bin\\pshazz.ps1" ],
|
||||||
"post_install":
|
"installer": { "file": "bin\\install.ps1" }
|
||||||
"if(!(test-path $profile)) { '' > $profile }
|
|
||||||
if((gc $profile | sls pshazz) -eq $null) {
|
|
||||||
write-host 'adding pshazz to your powershell profile'
|
|
||||||
(gc $profile -raw) + \"`r`ntry { `$null = gcm pshazz -ea stop; pshazz init 'default' } catch { }`r`n\" > $profile
|
|
||||||
} else {
|
|
||||||
write-host 'it looks like pshazz is already in your powershell profile, skipping'
|
|
||||||
}
|
|
||||||
pshazz init 'default'"
|
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user