diff --git a/dist/setup/index.js b/dist/setup/index.js index b62c7db6..6fc61c52 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -124940,7 +124940,8 @@ class SemeruDistribution extends base_installer_1.JavaBase { } findPackageForDownload(version) { return __awaiter(this, void 0, void 0, function* () { - if (!supportedArchitectures.includes(this.architecture)) { + const arch = this.distributionArchitecture(); + if (!supportedArchitectures.includes(arch)) { throw new Error(`Unsupported architecture: ${this.architecture} is not supported for IBM Semeru ${this.version} on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.`); } if (!this.stable) { @@ -125000,7 +125001,7 @@ class SemeruDistribution extends base_installer_1.JavaBase { getAvailableVersions() { return __awaiter(this, void 0, void 0, function* () { const platform = this.getPlatformOption(); - const arch = this.architecture; + const arch = this.distributionArchitecture(); const imageType = this.packageType; const versionRange = encodeURI('[1.0,100.0]'); // retrieve all available versions const releaseType = this.stable ? 'ga' : 'ea'; diff --git a/src/distributions/semeru/installer.ts b/src/distributions/semeru/installer.ts index 0271150d..8bcc067a 100644 --- a/src/distributions/semeru/installer.ts +++ b/src/distributions/semeru/installer.ts @@ -34,7 +34,9 @@ export class SemeruDistribution extends JavaBase { protected async findPackageForDownload( version: string ): Promise { - if (!supportedArchitectures.includes(this.architecture)) { + const arch = this.distributionArchitecture(); + + if (!supportedArchitectures.includes(arch)) { throw new Error( `Unsupported architecture: ${this.architecture} is not supported for IBM Semeru ${this.version} on your current OS version. Please refer to IBM Semeru documentation or support resources to verify compatibility with your OS.` ); @@ -123,7 +125,7 @@ export class SemeruDistribution extends JavaBase { public async getAvailableVersions(): Promise { const platform = this.getPlatformOption(); - const arch = this.architecture; + const arch = this.distributionArchitecture(); const imageType = this.packageType; const versionRange = encodeURI('[1.0,100.0]'); // retrieve all available versions const releaseType = this.stable ? 'ga' : 'ea';