forked from ScoopInstaller/Scoop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trying to get more difficult packages to work
- Loading branch information
1 parent
e87c212
commit 2a59f70
Showing
12 changed files
with
117 additions
and
89 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
. "$(split-path $myinvocation.mycommand.path)\..\lib\core.ps1" | ||
|
||
if(test-path $scoopdir) { | ||
try { | ||
rm -r $scoopdir -ea stop | ||
} catch { | ||
abort "couldn't remove $(friendly_path $scoopdir): it may be in use" | ||
} | ||
try { | ||
rm -r $scoopdir -ea stop | ||
} catch { | ||
abort "couldn't remove $(friendly_path $scoopdir): it may be in use" | ||
} | ||
} | ||
|
||
$bindir_regex = "$([regex]::escape((full_path $bindir)));?" | ||
if((env 'path') -match $bindir_regex) { # future sessions only | ||
echo "removing $(friendly_path $bindir) from your path" | ||
env 'path' ((env 'path') -replace $bindir_regex, '') | ||
echo "removing $(friendly_path $bindir) from your path" | ||
env 'path' ((env 'path') -replace $bindir_regex, '') | ||
} | ||
|
||
success "scoop has been uninstalled" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"url": "http://downloads.sourceforge.net/sevenzip/7za920.zip", | ||
"bin": "7za.exe" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"url": "https://msysgit.googlecode.com/files/Git-1.8.3-preview20130601.exe", | ||
"installer": { "args": ["/verysilent", "/dir=\"$appdir\""] }, | ||
"bin": [ "cmd\\git.exe", "cmd\\gitk.cmd" ], | ||
"uninstall": "unins000.exe" | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
function command_files { | ||
gci (resolve 'cmd') | where { $_.name.endswith('.ps1') } | ||
gci (resolve 'cmd') | where { $_.name.endswith('.ps1') } | ||
} | ||
|
||
function commands { | ||
command_files | % { command_name $_ } | ||
command_files | % { command_name $_ } | ||
} | ||
|
||
function command_name($filename) { $filename.name -replace '\.ps1$', '' } | ||
|
||
function exec($cmd, $arguments) { | ||
& (resolve "cmd\$cmd.ps1") @arguments | ||
& (resolve "cmd\$cmd.ps1") @arguments | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
function manifest($app) { | ||
$path = (resolve "..\bucket\$app.json") | ||
if(!(test-path $path)) { return $null } | ||
return gc $path -raw | convertfrom-json | ||
if(!(test-path $path)) { return $null } | ||
return gc $path -raw | convertfrom-json | ||
} |
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