Skip to content

Commit afae9c8

Browse files
committed
Fixing download url, adding package icon
1 parent b682309 commit afae9c8

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

vsts-extension/CompileMql5Task/CompileMql5.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[CmdletBinding()]
22
param()
33

4-
$compilerDownloadLink = ""
4+
$compilerDownloadLink = "https://github.com/stpatrick2016/mql5-compiler/blob/master/engine/metaeditor64.exe?raw=true"
55
Trace-VstsEnteringInvocation $MyInvocation
66

77
try {
@@ -30,6 +30,11 @@ try {
3030
{
3131
Write-Host "Metatrader compiler not found. Downloading from $compilerDownloadLink"
3232
[System.IO.Directory]::CreateDirectory([System.IO.Path]::GetDirectoryName($metaEditorPath)) | Out-Null
33+
34+
#fix the TLS issues, see here: https://stackoverflow.com/questions/41618766/powershell-invoke-webrequest-fails-with-ssl-tls-secure-channel
35+
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
36+
37+
#faster than Invoke-WebRequest, performance-wise
3338
(New-Object System.Net.WebClient).DownloadFile($compilerDownloadLink, $metaEditorPath)
3439
}
3540
}
11.7 KB
Loading

vsts-extension/vss-extension.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifestVersion": 1,
33
"id": "stpatrick-tfs-build-tasks-mql5",
44
"name": "MetaTrader 5 build tasks",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"publisher": "philip-patrick",
77
"targets": [
88
{
@@ -14,7 +14,7 @@
1414
"Build and release"
1515
],
1616
"icons": {
17-
"default": "CompileMql5Task/icon.png"
17+
"default": "images/extension-icon.png"
1818
},
1919
"files": [
2020
{

0 commit comments

Comments
 (0)