1. Overview
This is needed to download the library file from Mac to Windows using pscp that comes with PuTTY.
2. Installation
Install PuTTY on your Windows computer from www.putty.org.
3. Configure PSCP Download Scripts
The repository already contains two download scripts for pscp in the win\win32\xpl\gnollhackios directory. Edit them with your Mac credentials:
- download-Debug-ARM64.bat
- download-Release-ARM64.bat
Both of the scripts have just one line like follows (this one is for Debug configuration and ARM64 platform):
pscp -pw [mac-login-password-here] [userid@ip-address]:/Users/[userid]/vcremote/C/hmp/GnollHack/tools/[debug-release]/ARM64/libgnollhackios.a c:\mac-out
where
- [mac-login-password-here] is your login password on the Mac.
- [userid] is your user ID on the Mac.
- [ip-address] is the IP addres of the Mac or DNS name.
- [debug-release] is either
DebugorRelease, depending on the script.
The command can be, for example:
pscp -pw mypassword123 tommi@192.168.0.21:/Users/tommi/vcremote/C/hmp/GnollHack/tools/Debug/ARM64/libgnollhackios.a c:\mac-out
Notes on Download Scripts
Note that the IP Address can change depending on which network you are connected to. You may need to create separate download scripts for each network environment, for example, workplace and home.
4. Run Download Script Interactively
⚠️ Warning: You must run the appropriate download script manually in Windows PowerShell at least once and answer
yto store the Mac host key in the SSH cache. If you skip this step, Visual Studio's post-build step will fail or hang when attempting to downloadlibgnollhackios.anon-interactively.
Run the appropriate script in PowerShell:
.\win\win32\xpl\gnollhackios\download-Debug-ARM64.bat