chore: fetch mise compressed

This commit is contained in:
Jeff Dickey 2024-10-27 20:18:38 -05:00
parent 943808f3f1
commit c20c9ebb8b
No known key found for this signature in database
GPG key ID: 584DADE86724B407
3 changed files with 15 additions and 3 deletions

8
dist/index.js generated vendored
View file

@ -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

File diff suppressed because one or more lines are too long

View file

@ -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 {