ios-device-lib
Advanced tools
Comparing version 0.8.0 to 0.9.0-alpha.0
@@ -17,4 +17,18 @@ "use strict"; | ||
getBinaryPath() { | ||
if(os.platform() === "darwin") { | ||
// on mac ios-device-lib is a universal binary (x86_64 & arm64) | ||
return path.resolve(__dirname, "bin/darwin/ios-device-lib") | ||
} | ||
if (os.platform() === "win32" || os.platform() === "win64") { | ||
return path.resolve(__dirname,`bin/win32/${os.arch()}ios-device-lib`) | ||
} | ||
} | ||
startReadingData() { | ||
this._chProc = spawn(path.join(__dirname, "bin", os.platform(), os.arch(), "ios-device-lib").replace("app.asar", "app.asar.unpacked")); | ||
this._chProc = spawn( | ||
// replace app.asar to allow spawning from electron | ||
this.getBinaryPath().replace("app.asar", "app.asar.unpacked") | ||
); | ||
@@ -21,0 +35,0 @@ const stdinMessageUnpackStream = new MessageUnpackStream(); |
{ | ||
"name": "ios-device-lib", | ||
"version": "0.8.0", | ||
"version": "0.9.0-alpha.0", | ||
"description": "", | ||
@@ -10,3 +10,4 @@ "types": "./typings/ios-device-lib.d.ts", | ||
"mocha": "mocha", | ||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha" | ||
"test": "istanbul cover ./node_modules/mocha/bin/_mocha", | ||
"prepare": "husky install" | ||
}, | ||
@@ -29,5 +30,10 @@ "repository": { | ||
"chai": "4.2.0", | ||
"husky": "^5.1.3", | ||
"istanbul": "0.4.5", | ||
"lint-staged": "^10.5.4", | ||
"mocha": "5.2.0" | ||
}, | ||
"lint-staged": { | ||
"*.{cpp,h}": "clang-format -style=llvm -i" | ||
} | ||
} |
20067330
25
422
5