mirror of
https://github.com/actions/setup-java.git
synced 2025-04-18 00:46:45 +00:00
run format and build
This commit is contained in:
parent
eed97a9597
commit
d98fd1728d
2 changed files with 6 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue