Commit 541bfc9
committed
Use current platform for binary extension, not target platform
The platform option specifies the target platform for the binary being
downloaded, but the binary is executed on the current platform. Use WIN32
constant for determining the extension since that's where execution happens.
Example: On Windows with platform: 'linux', generates binary-linux-arm64.cmd
which can be executed as a script wrapping the actual binary.1 parent 2a6488f commit 541bfc9
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
254 | | - | |
| 253 | + | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
0 commit comments