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 +6 -6
- package/package.json +1 -1
- package/scripts/shell/android_device_control.sh +848 -0
- package/scripts/shell/connect_android_usb_multi_final.sh +289 -0
- package/scripts/shell/connect_android_wireless.sh +58 -0
- package/scripts/shell/connect_android_wireless_multi_final.sh +476 -0
- package/scripts/shell/connect_ios_usb_multi_final.sh +4225 -0
- package/scripts/shell/connect_ios_wireless_multi_final.sh +4167 -0
- package/scripts/shell/create_production_scripts.sh +38 -0
- package/scripts/shell/install_uiautomator2.sh +93 -0
- package/scripts/shell/ios_device_control.sh +220 -0
- package/scripts/shell/organize_project.sh +59 -0
- package/scripts/shell/pre-publish-check.sh +238 -0
- package/scripts/shell/publish-to-npm.sh +366 -0
- package/scripts/shell/publish.sh +100 -0
- package/scripts/shell/setup.sh +121 -0
- package/scripts/shell/start.sh +59 -0
- package/scripts/shell/sync-to-npm-package-final.sh +60 -0
- package/scripts/shell/test-local-package.sh +95 -0
- package/scripts/shell/verify-shell-protection.sh +73 -0
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
|
|
77
|
+
// List of paths to try in order (prioritize .sh files for cross-platform compatibility)
|
|
78
78
|
const pathsToTry = [
|
|
79
|
-
//
|
|
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
|
];
|