From 196cb869e4804ee32dab5fa05cd4358cebe680d9 Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Thu, 15 Aug 2013 22:16:52 +1000 Subject: [PATCH] allow .ps1 as installer --- mercurial.json | 2 +- pshazz.json | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/mercurial.json b/mercurial.json index db2ce9412c..2aaa54e552 100644 --- a/mercurial.json +++ b/mercurial.json @@ -13,6 +13,6 @@ } }, "installer": { "args": [ "/verysilent", "/dir=\"$dir\"", "/noicons" ] }, - "uninstaller": { "exe": "unins000.exe", "args": ["/verysilent"] }, + "uninstaller": { "file": "unins000.exe", "args": ["/verysilent"] }, "bin": "hg.exe" } \ No newline at end of file diff --git a/pshazz.json b/pshazz.json index 81addf1859..94cbb9fd53 100644 --- a/pshazz.json +++ b/pshazz.json @@ -3,13 +3,5 @@ "url": "https://github.com/lukesampson/pshazz/archive/master.zip", "extract_dir": "pshazz-master", "bin": [ "bin\\pshazz.ps1" ], - "post_install": - "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'" + "installer": { "file": "bin\\install.ps1" } } \ No newline at end of file