devicely 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/server.js +7 -5
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -72,14 +72,16 @@ function findConfigFile(filename) {
72
72
  function findScriptFile(filename) {
73
73
  const fs = require('fs');
74
74
 
75
- // List of paths to try in order
75
+ const filenameWithoutExt = filename.replace(/\.sh$/, '');
76
+
77
+ // List of paths to try in order (prioritize .sh files for cross-platform compatibility)
76
78
  const pathsToTry = [
77
- // Development location (project root)
79
+ // Development location (project root) - .sh file
78
80
  path.join(__dirname, '../../', filename),
79
- // NPM global install location - from lib/ to scripts/shell/
81
+ // NPM package: .sh file (cross-platform)
80
82
  path.join(__dirname, '../scripts/shell/', filename),
81
- // Try without .sh extension (compiled binaries)
82
- path.join(__dirname, '../scripts/shell/', filename.replace(/\.sh$/, '')),
83
+ // NPM package: compiled binary (may not work on all platforms)
84
+ path.join(__dirname, '../scripts/shell/', filenameWithoutExt),
83
85
  // Try in lib directory itself (backup)
84
86
  path.join(__dirname, filename),
85
87
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devicely",
3
- "version": "2.1.5",
3
+ "version": "2.1.7",
4
4
  "description": "Devicely - One Command, All Devices. AI Powered Mobile Automation for iOS and Android",
5
5
  "main": "lib/index.js",
6
6
  "bin": {