Skip to content

Commit c8fdb59

Browse files
committed
Adjust for new dev build naming scheme.
1 parent 40947ba commit c8fdb59

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

dist/main/index.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/graalvm.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export async function setUpGraalVMRelease(
5555
javaVersion: string
5656
): Promise<string> {
5757
const isEE = gdsToken.length > 0
58-
const toolName = determineToolName(isEE, javaVersion)
58+
const toolName = determineToolName(isEE, version, javaVersion)
5959
let downloader: () => Promise<string>
6060
if (isEE) {
6161
downloader = async () => downloadGraalVMEE(gdsToken, version, javaVersion)
@@ -124,15 +124,18 @@ function determineGraalVMIdentifier(
124124
version: string,
125125
javaVersion: string
126126
): string {
127-
return `graalvm-${isEE ? 'ee' : 'ce'}-java${javaVersion}-${
128-
c.GRAALVM_PLATFORM
129-
}-${c.GRAALVM_ARCH}-${version}`
127+
return `${determineToolName(isEE, version, javaVersion)}-${
128+
c.GRAALVM_ARCH
129+
}-${version}`
130130
}
131131

132-
function determineToolName(isEE: boolean, javaVersion: string): string {
133-
return `graalvm-${isEE ? 'ee' : 'ce'}-java${javaVersion}-${
134-
c.GRAALVM_PLATFORM
135-
}`
132+
function determineToolName(
133+
isEE: boolean,
134+
version: string,
135+
javaVersion: string
136+
): string {
137+
const infix = isEE ? 'ee' : version === c.VERSION_DEV ? 'community' : 'ce'
138+
return `graalvm-${infix}-java${javaVersion}-${c.GRAALVM_PLATFORM}`
136139
}
137140

138141
async function downloadGraalVMCE(

0 commit comments

Comments
 (0)