Skip to content

Commit

Permalink
Renamed pre_create_shims to pre_install. Much better.
Browse files Browse the repository at this point in the history
  • Loading branch information
kodybrown committed Aug 15, 2014
1 parent c12463b commit 89dcbef
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bucket/gow.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://github.com/bmatzelle/gow/releases",
"re": "<a.*?>Gow ([0-9\\.]+)</a>"
},
"before_shims": "echo \"@cscript //NoLogo \"\"$dir\\bin\\gow.vbs\"\" %1\" > \"$dir\\bin\\gow.bat\" ",
"pre_install": "echo \"@cscript //NoLogo \"\"$dir\\bin\\gow.vbs\"\" %1\" > \"$dir\\bin\\gow.bat\" ",
"bin": [
"bin\\awk.exe",
"bin\\basename.exe",
Expand Down
8 changes: 4 additions & 4 deletions lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function install_app($app, $architecture, $global) {

$fname = dl_urls $app $version $manifest $architecture $dir
unpack_inno $fname $manifest $dir
pre_install $manifest
run_installer $fname $manifest $architecture $dir
ensure_install_dir_not_in_path $dir $global
before_create_shims $manifest
create_shims $manifest $dir $global
if($global) { ensure_scoop_in_path $global } # can assume local scoop is in path
env_add_path $manifest $dir $global
Expand Down Expand Up @@ -566,9 +566,9 @@ function env_rm($manifest, $global) {
}
}

function before_create_shims($manifest) {
$manifest.before_shims | ? { $_ } | % {
echo "running before_shims script..."
function pre_install($manifest) {
$manifest.pre_install | ? { $_ } | % {
echo "running pre-install script..."
iex $_
}
}
Expand Down
2 changes: 1 addition & 1 deletion libexec/scoop-update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ function update($app, $global) {

$fname = dl_urls $app $version $manifest $architecture $dir
unpack_inno $fname $manifest $dir
pre_install $manifest
run_installer $fname $manifest $architecture $dir
ensure_install_dir_not_in_path $dir
before_create_shims $manifest
create_shims $manifest $dir $global
env_add_path $manifest $dir $global
env_set $manifest $dir $global
Expand Down

0 comments on commit 89dcbef

Please sign in to comment.