Files
Urs Roesch e2a4a16915 Add multi-binary build to include git-cmd
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.
2021-10-20 09:00:23 +02:00

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
}
}