Refactor module URL construction for cross-platform support

This commit is contained in:
CodeGhost21
2026-01-29 18:57:42 +05:30
committed by GitHub
parent 6e7c2c68a0
commit 1254362acc
+2 -1
View File
@@ -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();