mirror of
https://github.com/uroesch/GitPortable.git
synced 2026-08-28 02:24:14 -05:00
Summary:
* Up until now only the git Bash binary
was available. With this release the
git-cmd.exe will also appear in the
PA Menu as "Git Cmd".
* Added new function to build the second
binary from appinfo.ini [Control]
section. The code is experimental and
is proof of concept currently.
21 lines
539 B
PowerShell
21 lines
539 B
PowerShell
# Run the post-install script
|
|
|
|
$_PostInstall = "$AppDir\Git\post-install.bat"
|
|
|
|
If (Test-Path $_PostInstall) {
|
|
Switch (Test-Unix) {
|
|
$True { $_Prefix = 'wine'; break }
|
|
default { $_Prefix = ''; break }
|
|
}
|
|
Try {
|
|
Debug info "Run post install command $_Prefix $_PostInstall"
|
|
# Will always throw an error as the post-install script
|
|
# is removing itself at the end.
|
|
Invoke-Expression "$_Prefix $_PostInstall" 2>&1 | Out-Null
|
|
}
|
|
Catch {
|
|
Debug fatal "Failed to run command $_PostInstall"
|
|
Exit 127
|
|
}
|
|
}
|