From 3419d2fd8e6a750389f90436a0ccb4ea09d8c70e Mon Sep 17 00:00:00 2001 From: Gregory Mitchell <54124162+gmitch215@users.noreply.github.com> Date: Sat, 19 Oct 2024 15:38:12 -0500 Subject: [PATCH] Change Distribution to \`jbrsdk\` --- dist/setup/index.js | 2 +- docs/advanced-usage.md | 2 +- src/distributions/jetbrains/installer.ts | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 76cd09f..62ab199 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -124636,7 +124636,7 @@ class JetBrainsDistribution extends base_installer_1.JavaBase { const semver = vsplit[0]; const build = +vsplit[1]; // Construct URL - const url = `https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_jcef-${semver}-${platform}-${arch}-b${build}.tar.gz`; + const url = `https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-${semver}-${platform}-${arch}-b${build}.tar.gz`; return { tag_name: tag, semver: semver, diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index a1a8441..8a41088 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -173,7 +173,7 @@ steps: ``` ### JetBrains -**NOTE:** JetBrains only provides jdk and is only available for LTS versions 11 or later. +**NOTE:** JetBrains only provides jdk and is only available for LTS versions 11 or later. JCEF is not bundled with this distribution. ```yaml steps: diff --git a/src/distributions/jetbrains/installer.ts b/src/distributions/jetbrains/installer.ts index df6651b..b0f5622 100644 --- a/src/distributions/jetbrains/installer.ts +++ b/src/distributions/jetbrains/installer.ts @@ -2,8 +2,9 @@ import * as core from '@actions/core'; import * as tc from '@actions/tool-cache'; import fs from 'fs'; -import path from 'path'; +import path, {resolve} from 'path'; import semver from 'semver'; +import https from 'https'; import {JavaBase} from '../base-installer'; import {IJetBrainsRawVersion, IJetBrainsVersion} from './models'; @@ -151,7 +152,7 @@ export class JetBrainsDistribution extends JavaBase { const build = +vsplit[1]; // Construct URL - const url = `https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk_jcef-${semver}-${platform}-${arch}-b${build}.tar.gz`; + const url = `https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-${semver}-${platform}-${arch}-b${build}.tar.gz`; return { tag_name: tag,