Skip to content

Commit

Permalink
use zip files for faster win install
Browse files Browse the repository at this point in the history
Revert "use zip files for faster win install"

This reverts commit a992bbe.

Update installer.ts

Update installer.js
  • Loading branch information
IanButterworth committed Nov 17, 2023
1 parent 84c4368 commit 0483d1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/installer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function getDesiredFileExts(): [string, boolean, string] {
let fileExt2: string

if (osPlat == 'win32') {
fileExt1 = 'exe'
fileExt1 = 'zip'
hasFileExt2 = false
fileExt2 = ''
} else if (osPlat == 'darwin') {
Expand Down Expand Up @@ -235,7 +235,7 @@ export async function installJulia(versionInfo, version: string, arch: string):
case 'win32':
if (version.endsWith('nightly') || semver.gtr(version, '1.3', {includePrerelease: true})) {
// The installer changed in 1.4: https://github.com/JuliaLang/julia/blob/ef0c9108b12f3ae177c51037934351ffa703b0b5/NEWS.md#build-system-changes
await exec.exec('powershell', ['-Command', `Start-Process -FilePath ${juliaDownloadPath} -ArgumentList "/SILENT /dir=${path.join(process.cwd(), tempInstallDir)}" -NoNewWindow -Wait`])
await exec.exec('powershell', ['-Command', `Expand-Archive -Path ${juliaDownloadPath} -DestinationPath ${tempInstallDir}`])
} else {
await exec.exec('powershell', ['-Command', `Start-Process -FilePath ${juliaDownloadPath} -ArgumentList "/S /D=${path.join(process.cwd(), tempInstallDir)}" -NoNewWindow -Wait`])
}
Expand Down

0 comments on commit 0483d1d

Please sign in to comment.