Skip to content

Commit

Permalink
Fix msys2
Browse files Browse the repository at this point in the history
  • Loading branch information
hasufell committed Dec 15, 2024
1 parent 2d88d99 commit 99e7974
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ghcup/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ export async function main(opts: Opts) {
core.debug(`ghcup bindir is ${bindir}`)
core.addPath(bindir);

if (platform.platform == 'win32') {
const ghcup_msys2 = process.env['GHCUP_MSYS2'] ?? 'C:\\msys64';
core.exportVariable('GHCUP_MSYS2', ghcup_msys2);
core.debug(`GHCUP_MSYS2 is ${ghcup_msys2}`)
}

await exec.exec(ghcupPath, [
'config', 'set', 'url-source', JSON.stringify(opts.release_channels)
]);
Expand Down

0 comments on commit 99e7974

Please sign in to comment.