From 33e21d4e5901fa91a1db241fc687c98b2fd25ede Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Mon, 28 Oct 2024 00:45:45 -0700 Subject: [PATCH] powershell --- .github/workflows/mobsf-test.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/mobsf-test.yml b/.github/workflows/mobsf-test.yml index 620d15a99..6d4746c58 100644 --- a/.github/workflows/mobsf-test.yml +++ b/.github/workflows/mobsf-test.yml @@ -68,13 +68,17 @@ jobs: - name: Windows debug if: startsWith(matrix.os, 'windows') run: | - poetry run python mobsf/MobSF/tools_download.py "%USERPROFILE%\.MobSF" - set JAVA_HOME=%JAVA_HOME_21_X64% - set PATH=%JAVA_HOME%\bin;%PATH% - echo JAVA_HOME is set to %JAVA_HOME% - echo PATH is updated with JAVA_HOME\bin + & "C:\Users\runneradmin\.MobSF\tools\jadx\jadx-1.5.0\bin\jadx.bat" + $env:JAVA_HOME = $env:JAVA_HOME_21_X64 + + $env:PATH = "$env:JAVA_HOME\bin;$env:PATH" + + Write-Host "JAVA_HOME is set to $env:JAVA_HOME" + Write-Host "PATH is updated with $env:JAVA_HOME\bin" + java -version - "%USERPROFILE%\.MobSF\tools\jadx\jadx-1.5.0\bin\jadx.bat" + + & "C:\Users\runneradmin\.MobSF\tools\jadx\jadx-1.5.0\bin\jadx.bat" - name: Unit Tests on Ubuntu, macOS and Windows run: |