@walkerch/wxecho 1.0.1 → 1.0.3

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/dist/cli.js CHANGED
@@ -345,7 +345,7 @@ var PKG_ROOT2 = process.env.WXECHO_ROOT ? path3.resolve(process.env.WXECHO_ROOT)
345
345
  var PY_DIR2 = path3.join(PKG_ROOT2, "py");
346
346
  async function runKeys() {
347
347
  const opts = this.opts();
348
- const outputFile = opts.output || "all_keys.json";
348
+ const outputFile = opts.output || path3.join(PY_DIR2, "all_keys.json");
349
349
  const binaryPath = path3.join(PY_DIR2, "find_all_keys_macos");
350
350
  console.log("\u6B63\u5728\u4ECE\u5FAE\u4FE1\u8FDB\u7A0B\u63D0\u53D6\u5BC6\u94A5...\n");
351
351
  console.log("\u6CE8\u610F\uFF1A\u6B64\u64CD\u4F5C\u9700\u8981\uFF1A");
@@ -371,7 +371,14 @@ function findCC() {
371
371
  function compileBinary() {
372
372
  return new Promise((resolve2, reject) => {
373
373
  const ccPath = findCC();
374
+ let sysroot = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk";
375
+ try {
376
+ sysroot = execSync("xcrun --show-sdk-path", { encoding: "utf8" }).trim();
377
+ } catch {
378
+ }
374
379
  const compile = spawn2(ccPath, [
380
+ "-isysroot",
381
+ sysroot,
375
382
  "-O2",
376
383
  "-o",
377
384
  path3.join(PY_DIR2, "find_all_keys_macos"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@walkerch/wxecho",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "macOS native chat history export tool with local database decryption support",
5
5
  "keywords": [
6
6
  "macos",
Binary file