@walkerch/wxecho 1.0.2 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +7 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -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.2",
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",