mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
Refactor module URL construction for cross-platform support
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user