Replies: 1 comment 4 replies
-
@robertsLando Any help please |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
May be my question won't be clear. Because I'm not a expert in this nodejs or pkg.
What I want to do is : Pack appium(mobile automation library) and it's drivers(android,ios) inside the node exe file and ship it to the user's machine. Appium is the main app and it will use the drivers. So, appium has a code that says where to look for the drivers in the following path : "\node_modules@appium\support\build\lib\env.js". Following is the code: exports.DEFAULT_APPIUM_HOME = path_1.default.resolve((0, os_1.homedir)(), '.appium');
As per the above code, it looks for the drivers in the user's home directory. But I want it to use the driver which is packed inside the exe file. how to do that?
Below is my package.json which includes all the files in the node_modules(I HOPE):
{
"name": "appium",
"version": "2.5.1",
"description": "Appium Server",
"main": "index.js",
"scripts": {
"test": "appium"
},
"bin": {
"appium": "./index.js"
},
"author": "Test user",
"license": "ISC",
"dependencies": {
"appium": "^2.5.1",
"appium-uiautomator2-driver": "^3.0.2",
"appium-xcuitest-driver": "^7.3.1"
},
"pkg": {
"targets": [
"node16-win-x64"
],
"assets": [
"./node_modules/**/*"
],
"outputPath": "dist"
}
}
Beta Was this translation helpful? Give feedback.
All reactions