Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const program = new Command();
program
.name('flycli')
.description('CLI tool for Betaflight flight controller interaction')
.version('1.3.1');
.version('1.4.0');

program
.command('scan')
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flycli",
"version": "1.3.1",
"version": "1.4.0",
"description": "A reliable CLI tool for Betaflight flight controller interaction and automation.",
"license": "MIT",
"keywords": [
Expand Down Expand Up @@ -36,8 +36,8 @@
],
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand",
"test:bdd": "node --experimental-vm-modules node_modules/.bin/cucumber-js",
"test:hw": "node --experimental-vm-modules node_modules/.bin/cucumber-js --profile hw",
"test:bdd": "node --experimental-vm-modules node_modules/@cucumber/cucumber/bin/cucumber-js",
"test:hw": "node --experimental-vm-modules node_modules/@cucumber/cucumber/bin/cucumber-js --profile hw",
"test:full": "npm run test && npm run test:bdd && npm run test:hw",
"pretest": "npm run lint",
"lint": "eslint .",
Expand Down
5 changes: 5 additions & 0 deletions src/infrastructure/cad/EnvironmentManager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'fs/promises';
import path from 'path';

/**
* @module EnvironmentManager
Expand All @@ -16,6 +17,10 @@ const WINDOWS_PATHS = [
'C:\\Program Files\\FreeCAD 0.21\\bin\\FreeCAD.exe',
'C:\\Program Files\\FreeCAD 0.20\\bin\\FreeCAD.exe',
'C:\\Program Files\\FreeCAD 1.0\\bin\\FreeCAD.exe',
// Per-user installations
path.join(process.env.LOCALAPPDATA || '', 'Programs', 'FreeCAD 1.0', 'bin', 'freecad.exe'),
path.join(process.env.LOCALAPPDATA || '', 'Programs', 'FreeCAD 0.21', 'bin', 'freecad.exe'),
path.join(process.env.LOCALAPPDATA || '', 'Programs', 'FreeCAD 0.22', 'bin', 'freecad.exe'),
];

const UNIX_PATHS = [
Expand Down
Loading
Loading