mirror of
https://github.com/actions/setup-java.git
synced 2025-05-21 01:41:46 +00:00
run format and build
This commit is contained in:
parent
eed97a9597
commit
d98fd1728d
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -123970,7 +123970,8 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
||||
let javaArchivePath = yield tc.downloadTool(javaRelease.url);
|
||||
core.info(`Extracting Java archive...`);
|
||||
const extension = (0, util_1.getDownloadArchiveExtension)();
|
||||
if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) {
|
||||
if (process.platform === 'win32' &&
|
||||
(this.architecture === 'arm64' || this.architecture === 'aarch64')) {
|
||||
const javaArchivePathRenamed = `${javaArchivePath}.zip`;
|
||||
yield fs_1.default.renameSync(javaArchivePath, javaArchivePathRenamed);
|
||||
javaArchivePath = javaArchivePathRenamed;
|
||||
|
@ -30,7 +30,10 @@ export class MicrosoftDistributions extends JavaBase {
|
||||
|
||||
core.info(`Extracting Java archive...`);
|
||||
const extension = getDownloadArchiveExtension();
|
||||
if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) {
|
||||
if (
|
||||
process.platform === 'win32' &&
|
||||
(this.architecture === 'arm64' || this.architecture === 'aarch64')
|
||||
) {
|
||||
const javaArchivePathRenamed = `${javaArchivePath}.zip`;
|
||||
await fs.renameSync(javaArchivePath, javaArchivePathRenamed);
|
||||
javaArchivePath = javaArchivePathRenamed;
|
||||
|
Loading…
Reference in New Issue
Block a user