mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 09:56:46 +00:00
minor improvements
This commit is contained in:
parent
b2da088220
commit
cfdcd6827b
6 changed files with 15 additions and 14 deletions
|
@ -8,7 +8,7 @@ import semver from 'semver';
|
|||
import { JavaBase } from '../base-installer';
|
||||
import { IAdoptiumAvailableVersions } from './models';
|
||||
import { JavaInstallerOptions, JavaDownloadRelease, JavaInstallerResults } from '../base-models';
|
||||
import { macOSJavaContentDir } from '../../constants';
|
||||
import { MACOS_JAVA_CONTENT_POSTFIX } from '../../constants';
|
||||
import { extractJdkFile, getDownloadArchiveExtension } from '../../util';
|
||||
|
||||
export class AdoptiumDistribution extends JavaBase {
|
||||
|
@ -68,7 +68,7 @@ export class AdoptiumDistribution extends JavaBase {
|
|||
javaPath = await tc.cacheDir(archivePath, this.toolcacheFolderName, version, this.architecture);
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
javaPath = path.join(javaPath, macOSJavaContentDir);
|
||||
javaPath = path.join(javaPath, MACOS_JAVA_CONTENT_POSTFIX);
|
||||
}
|
||||
|
||||
return { version: javaRelease.version, path: javaPath };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue