2023-01-05 13:16:21 +01:00
|
|
|
import BasePrereleaseNodejs from '../base-distribution-prerelease';
|
|
|
|
import {NodeInputs} from '../base-models';
|
|
|
|
export default class CanaryBuild extends BasePrereleaseNodejs {
|
|
|
|
protected distribution = 'v8-canary';
|
|
|
|
constructor(nodeInfo: NodeInputs) {
|
|
|
|
super(nodeInfo);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected getDistributionUrl(): string {
|
2025-02-19 19:10:42 +05:30
|
|
|
if (this.nodeInfo.mirrorURL) {
|
|
|
|
if (this.nodeInfo.mirrorURL != '') {
|
|
|
|
return this.nodeInfo.mirrorURL;
|
|
|
|
} else {
|
|
|
|
if (this.nodeInfo.mirrorURL === '') {
|
|
|
|
throw new Error(
|
|
|
|
'Mirror URL is empty. Please provide a valid mirror URL.'
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
throw new Error('Mirror URL is not a valid');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
return 'https://nodejs.org/download/v8-canary';
|
|
|
|
}
|
2023-01-05 13:16:21 +01:00
|
|
|
}
|
|
|
|
}
|