mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-16 21:16:53 +08:00
Unmount dmg file on macOS after copying files
This commit is contained in:
2
lib/installer.js
generated
2
lib/installer.js
generated
@@ -203,6 +203,8 @@ function installJulia(versionInfo, version, arch) {
|
||||
case 'darwin':
|
||||
yield exec.exec('hdiutil', ['attach', juliaDownloadPath]);
|
||||
yield exec.exec('/bin/bash', ['-c', `cp -a /Volumes/Julia-*/Julia-*.app/Contents/Resources/julia ${tempInstallDir}`]);
|
||||
// Unmount dmg file again to avoid issues on self-hosted runners
|
||||
yield exec.exec('hdiutil', ['unmount', juliaDownloadPath]);
|
||||
return path.join(tempInstallDir, 'julia');
|
||||
default:
|
||||
throw new Error(`Platform ${osPlat} is not supported`);
|
||||
|
||||
Reference in New Issue
Block a user