From dcd91a1f79be5bde7bb418b0eaa83d03f11d41fe Mon Sep 17 00:00:00 2001 From: Oliver Eisenhut Date: Fri, 25 Oct 2024 17:47:03 +0200 Subject: [PATCH] fix: use `path` instead of `path/posix` for publishing binaries (#8631) --- .changeset/wet-hats-drum.md | 5 +++++ packages/electron-publish/src/httpPublisher.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/wet-hats-drum.md diff --git a/.changeset/wet-hats-drum.md b/.changeset/wet-hats-drum.md new file mode 100644 index 00000000000..0a75b3cc5a9 --- /dev/null +++ b/.changeset/wet-hats-drum.md @@ -0,0 +1,5 @@ +--- +"electron-publish": patch +--- + +fix: Remove path from published binaries diff --git a/packages/electron-publish/src/httpPublisher.ts b/packages/electron-publish/src/httpPublisher.ts index e744eb8d112..e5cb9496425 100644 --- a/packages/electron-publish/src/httpPublisher.ts +++ b/packages/electron-publish/src/httpPublisher.ts @@ -1,7 +1,7 @@ import { Arch } from "builder-util" import { stat } from "fs-extra" import { ClientRequest } from "http" -import { basename } from "path/posix" +import { basename } from "path" import { Publisher } from "./publisher" import { PublishContext, UploadTask } from "."