devicely 2.1.6 → 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.
package/lib/server.js CHANGED
@@ -74,14 +74,14 @@ function findScriptFile(filename) {
74
74
 
75
75
  const filenameWithoutExt = filename.replace(/\.sh$/, '');
76
76
 
77
- // List of paths to try in order (prioritize compiled binaries)
77
+ // List of paths to try in order (prioritize .sh files for cross-platform compatibility)
78
78
  const pathsToTry = [
79
- // NPM package: compiled binary (no .sh extension) - PRODUCTION
80
- path.join(__dirname, '../scripts/shell/', filenameWithoutExt),
81
- // NPM package: .sh file (if not compiled)
82
- path.join(__dirname, '../scripts/shell/', filename),
83
- // Development location (project root)
79
+ // Development location (project root) - .sh file
84
80
  path.join(__dirname, '../../', filename),
81
+ // NPM package: .sh file (cross-platform)
82
+ path.join(__dirname, '../scripts/shell/', filename),
83
+ // NPM package: compiled binary (may not work on all platforms)
84
+ path.join(__dirname, '../scripts/shell/', filenameWithoutExt),
85
85
  // Try in lib directory itself (backup)
86
86
  path.join(__dirname, filename),
87
87
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devicely",
3
- "version": "2.1.6",
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": {