Skip to content

Commit

Permalink
fix macos, list files to find the bug in linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Nov 23, 2023
1 parent 07c8dac commit a951032
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bindings/updater/nodejs/__test__/index.spec.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import test from "ava";
import { writeFile, stat, readFile, rename } from "fs/promises";
import { writeFile, stat, readFile, rename, readdir } from "fs/promises";
import { join, extname, format, parse } from "path";
import { execa } from "execa";
import { fileURLToPath } from "url";
Expand Down Expand Up @@ -79,8 +79,10 @@ test("it works", async (t) => {
};

for (const [updaterFormat, outPackagePath] of packgePaths("1.0.0")) {
const info = parse(outUpdaterPath);
console.log(await readdir(info.dir));
const outUpdaterPath = (await stat(outPackagePath)).isDirectory()
? `${outPackagePath}${extname(extoutPackagePath)}.tar.gz`
? `${outPackagePath}${extname(outPackagePath)}.tar.gz`
: outPackagePath;

const signaturePath = format({ name: outUpdaterPath, ext: ".sig" });
Expand Down

0 comments on commit a951032

Please sign in to comment.