@@ -40,27 +40,27 @@ jobs:
4040 python -m pip install --upgrade pip
4141 pip install MetaTrader5
4242
43- - name : Create MT5 portable configuration
44- run : |
45- # Create a portable MT5 directory
46- mkdir -p "$env:APPDATA\MetaTrader5Portable"
43+ # - name: Create MT5 portable configuration
44+ # run: |
45+ # # Create a portable MT5 directory
46+ # mkdir -p "$env:APPDATA\MetaTrader5Portable"
4747
48- # Set environment variables to make MT5 run in headless mode
49- echo "MT5_HEADLESS=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
50- echo "MT5_PORTABLE_PATH=$env:APPDATA\MetaTrader5Portable" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
48+ # # Set environment variables to make MT5 run in headless mode
49+ # echo "MT5_HEADLESS=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
50+ # echo "MT5_PORTABLE_PATH=$env:APPDATA\MetaTrader5Portable" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
5151
52- # Copy MT5 files to portable location if needed
53- if (-not (Test-Path "$env:APPDATA\MetaTrader5Portable\terminal64.exe")) {
54- Copy-Item -Path "C:\Program Files\MetaTrader 5\*" -Destination "$env:APPDATA\MetaTrader5Portable\" -Recurse
55- }
52+ # # Copy MT5 files to portable location if needed
53+ # if (-not (Test-Path "$env:APPDATA\MetaTrader5Portable\terminal64.exe")) {
54+ # Copy-Item -Path "C:\Program Files\MetaTrader 5\*" -Destination "$env:APPDATA\MetaTrader5Portable\" -Recurse
55+ # }
5656
57- # Verify portable setup
58- if (Test-Path "$env:APPDATA\MetaTrader5Portable\terminal64.exe") {
59- Write-Host "MetaTrader 5 portable setup created successfully"
60- } else {
61- Write-Error "MetaTrader 5 portable setup failed"
62- exit 1
63- }
57+ # # Verify portable setup
58+ # if (Test-Path "$env:APPDATA\MetaTrader5Portable\terminal64.exe") {
59+ # Write-Host "MetaTrader 5 portable setup created successfully"
60+ # } else {
61+ # Write-Error "MetaTrader 5 portable setup failed"
62+ # exit 1
63+ # }
6464
6565 - name : Test MT5 initialization
6666 run : |
0 commit comments