mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-25 07:18:02 +00:00
feat(cli): discover Bash for Windows runners
Use Pi-style Bash discovery and launch behavior, exercise the packaged CLI shell, and wait for pending ZIP metadata reads before closing cancelled downloads.
This commit is contained in:
@@ -44,12 +44,6 @@ export async function resolveRunnerConfig(options: RunnerOptions) {
|
||||
return { url, key: key.trim(), cwd, srt: options.srt ? path.resolve(options.srt) : undefined }
|
||||
}
|
||||
|
||||
export function runnerShell(platform = process.platform): string {
|
||||
return platform === 'win32'
|
||||
? path.win32.join(process.env.SystemRoot ?? 'C:\\Windows', 'System32', 'cmd.exe')
|
||||
: '/bin/sh'
|
||||
}
|
||||
|
||||
/** Commands inherit baseline OS settings and explicitly supplied skill variables, never CLI credentials. */
|
||||
export function commandEnv(extra: Record<string, string> = {}, inherit = true): NodeJS.ProcessEnv {
|
||||
const env: NodeJS.ProcessEnv = {}
|
||||
|
||||
Reference in New Issue
Block a user