chore: fetch mise compressed
This commit is contained in:
parent
943808f3f1
commit
c20c9ebb8b
3 changed files with 15 additions and 3 deletions
8
dist/index.js
generated
vendored
8
dist/index.js
generated
vendored
|
@ -62533,7 +62533,13 @@ async function setupMise(version) {
|
|||
: `https://mise.jdx.dev/mise-latest-${getOS()}-${os.arch()}`;
|
||||
if (getOS() === 'windows') {
|
||||
const zipPath = path.join(os.tmpdir(), 'mise.zip');
|
||||
await exec.exec('curl', ['-fsSL', `${url}.zip`, '--output', zipPath]);
|
||||
await exec.exec('curl', [
|
||||
'--compressed',
|
||||
'-fsSL',
|
||||
`${url}.zip`,
|
||||
'--output',
|
||||
zipPath
|
||||
]);
|
||||
await exec.exec('unzip', [zipPath, '-d', os.tmpdir()]);
|
||||
await io.mv(path.join(os.tmpdir(), 'mise/bin/mise.exe'), miseBinPath);
|
||||
}
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -123,7 +123,13 @@ async function setupMise(version: string): Promise<void> {
|
|||
: `https://mise.jdx.dev/mise-latest-${getOS()}-${os.arch()}`
|
||||
if (getOS() === 'windows') {
|
||||
const zipPath = path.join(os.tmpdir(), 'mise.zip')
|
||||
await exec.exec('curl', ['-fsSL', `${url}.zip`, '--output', zipPath])
|
||||
await exec.exec('curl', [
|
||||
'--compressed',
|
||||
'-fsSL',
|
||||
`${url}.zip`,
|
||||
'--output',
|
||||
zipPath
|
||||
])
|
||||
await exec.exec('unzip', [zipPath, '-d', os.tmpdir()])
|
||||
await io.mv(path.join(os.tmpdir(), 'mise/bin/mise.exe'), miseBinPath)
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue