@absolutejs/absolute 0.20.0-beta.100 → 0.20.0-beta.101

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.
@@ -24719,6 +24719,14 @@ var signAab = (artifactPath, capture, jarsigner, signing) => {
24719
24719
  if (result.exitCode !== 0)
24720
24720
  throw new TypeError("jarsigner could not sign the Android App Bundle with the configured CI identity.");
24721
24721
  };
24722
+ var windowsJarsignerPath = (path, capture) => {
24723
+ const result = capture(["wslpath", "-w", path]);
24724
+ const translated = result.stdout.trim();
24725
+ if (result.exitCode !== 0 || !translated) {
24726
+ throw new TypeError(`Could not translate an Android signing path for the Windows JDK: ${path}`);
24727
+ }
24728
+ return translated;
24729
+ };
24722
24730
  var sha256File = async (path) => createHash4("sha256").update(await readFile5(path)).digest("hex");
24723
24731
  var fingerprintExpoAndroidProject = async (nativeDirectory) => {
24724
24732
  const root = await realpath2(nativeDirectory);
@@ -24836,13 +24844,19 @@ var buildAbsoluteAndroidRelease = async (options) => {
24836
24844
  throw new TypeError(`Android Gradle did not produce the expected App Bundle: ${artifactPath}`);
24837
24845
  }
24838
24846
  const capture = options.capture ?? defaultCapture;
24839
- const jarsigner = options.jarsigner === undefined ? Bun.which("jarsigner") : options.jarsigner;
24840
- let signed = verifyAabSignature(artifactPath, capture, jarsigner);
24841
- if (signed === false && options.signing) {
24847
+ const jarsigner = options.jarsigner === undefined ? Bun.which("jarsigner") ?? (host === "wsl" || host === "windows" ? Bun.which("jarsigner.exe") : null) : options.jarsigner;
24848
+ const usesWindowsJarsigner = host === "wsl" && jarsigner?.toLowerCase().endsWith(".exe");
24849
+ const signerArtifactPath = usesWindowsJarsigner ? windowsJarsignerPath(artifactPath, capture) : artifactPath;
24850
+ const signing = usesWindowsJarsigner && options.signing ? {
24851
+ ...options.signing,
24852
+ keystorePath: windowsJarsignerPath(options.signing.keystorePath, capture)
24853
+ } : options.signing;
24854
+ let signed = verifyAabSignature(signerArtifactPath, capture, jarsigner);
24855
+ if (signed === false && signing) {
24842
24856
  if (!jarsigner)
24843
24857
  throw new TypeError("Could not sign the Android App Bundle because jarsigner is unavailable.");
24844
- signAab(artifactPath, capture, jarsigner, options.signing);
24845
- signed = verifyAabSignature(artifactPath, capture, jarsigner);
24858
+ signAab(signerArtifactPath, capture, jarsigner, signing);
24859
+ signed = verifyAabSignature(signerArtifactPath, capture, jarsigner);
24846
24860
  if (!signed)
24847
24861
  throw new TypeError("Android App Bundle signature verification failed after CI signing.");
24848
24862
  }
@@ -41205,5 +41219,5 @@ export {
41205
41219
  writeAbsoluteMobileUpdateRegistry
41206
41220
  };
41207
41221
 
41208
- //# debugId=F9E3EF5E6450400964756E2164756E21
41222
+ //# debugId=E20E65274897005764756E2164756E21
41209
41223
  //# sourceMappingURL=index.js.map