diff --git a/modules/run.js b/modules/run.js index 33367f3..2807e20 100644 --- a/modules/run.js +++ b/modules/run.js @@ -8,7 +8,7 @@ let runCMD = vscode.commands.registerCommand('ftc-for-vs-code.runApp', async fun var terminal = null; const runCommand = process.platform == 'darwin' || process.platform == 'linux' ? - `.\\gradlew installRelease ${vscode.workspace.getConfiguration('ftc-for-vs-code.ftc-for-vs-code').get('useADB') == true ? '&& adb shell monkey -p com.qualcomm.ftcrobotcontroller 1' : ''}` + `./gradlew installRelease ${vscode.workspace.getConfiguration('ftc-for-vs-code.ftc-for-vs-code').get('useADB') == true ? '&& adb shell monkey -p com.qualcomm.ftcrobotcontroller 1' : ''}` : `./gradlew.bat installRelease ${vscode.workspace.getConfiguration('ftc-for-vs-code.ftc-for-vs-code').get('useADB') == true ? '&& adb shell monkey -p com.qualcomm.ftcrobotcontroller 1' : ''}` if (!fs.existsSync(path.join(vscode.workspace.workspaceFolders[0].uri.fsPath, 'local.properties'))) { const andriodSdkPath = process.env.ANDROID_HOME || process.env.ANDROID_SDK_ROOT || await vscode.window.showInputBox({ title: 'Android SDK Path', prompt: "Enter the path of your Android SDK path. On Windows, it is sometimes C://Android/", ignoreFocusOut: true }) @@ -45,4 +45,4 @@ function findProjectDir() { return newlist; } -module.exports = runCMD \ No newline at end of file +module.exports = runCMD