From 1254362acca7cbe8547d7d77eaee90bbc4ae2523 Mon Sep 17 00:00:00 2001 From: CodeGhost21 <164498022+CodeGhost21@users.noreply.github.com> Date: Thu, 29 Jan 2026 18:57:42 +0530 Subject: [PATCH] Refactor module URL construction for cross-platform support --- .github/workflows/package-and-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-and-publish.yml b/.github/workflows/package-and-publish.yml index 9567c6e19..bf52c5356 100644 --- a/.github/workflows/package-and-publish.yml +++ b/.github/workflows/package-and-publish.yml @@ -197,7 +197,8 @@ jobs: with: script: | const workspacePath = process.env.GITHUB_WORKSPACE.replace(/\\/g, '/'); - const moduleUrl = `file:///${workspacePath}/deploy/prepareTauriConfig.js`; + const prefix = workspacePath.startsWith('/') ? 'file://' : 'file:///'; + const moduleUrl = `${prefix}${workspacePath}/deploy/prepareTauriConfig.js`; const { default: prepareTauriConfig } = await import(moduleUrl) const config = prepareTauriConfig();