Skip to content

Commit

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

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

const signaturePath = format({ name: outUpdaterPath, ext: ".sig" });
Expand Down Expand Up @@ -156,7 +156,7 @@ test("it works", async (t) => {
? "updater-app-test.exe"
: isMacos
? "PackagerAppUpdaterTestNodejs.app/Contents/MacOS/cargo-packager-updater-app-test"
: `updater-app-test_${version}_x86_64.AppImage`,
: `updater-app-test_0.1.0_x86_64.AppImage`,
);

// wait until the update is finished and the new version has been installed
Expand Down

0 comments on commit f6ed751

Please sign in to comment.