Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions modules/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
Expand Down Expand Up @@ -45,4 +45,4 @@ function findProjectDir() {
return newlist;

}
module.exports = runCMD
module.exports = runCMD