Working build on Windows (SSH/custom repo) #1936
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
On VS2019 the packages won't build and, even with the mistakes fixed, without some changes it is not possible to connect through SSH to custom repos. (at least on my machine with git, ssh, etc already installed). So I figured a general solution:
Copy newest Git (used x64 over here) instead of msysgit to msysgit folder and then overwrite the SSH files with portable ones built for windows.
Fixed some minor coding mistakes.
The HOME variable shouldn't be set, else problems will arise.
Instead, a portable version of OpenSSH should be used : https://github.com/PowerShell/openssh-portable
(I guess this could be automated with a script, but I just wanted to get it working and figured out the steps, in case it interests anybody else).
Will build and produce a working "portable" package. Did not attempt to build the installer.
#1909 #1924 #1923 #1781 #1888