Compare commits

..

2 Commits

Author SHA1 Message Date
Gregory Mitchell
a137832311
Don't Replace Underscores 2024-10-19 15:42:29 -05:00
Gregory Mitchell
3419d2fd8e
Change Distribution to \jbrsdk\ 2024-10-19 15:38:12 -05:00
3 changed files with 7 additions and 6 deletions

4
dist/setup/index.js vendored
View File

@ -124624,7 +124624,7 @@ class JetBrainsDistribution extends base_installer_1.JavaBase {
vstring = tag.substring(tag.lastIndexOf('-') + 1);
break;
case 1:
vstring = tag.substring(2).replace(/-/g, '').replace(/_/g, '.');
vstring = tag.substring(2).replace(/-/g, '');
break;
case undefined: // 0
vstring = tag.substring(3);
@ -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,

View File

@ -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:

View File

@ -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';
@ -137,7 +138,7 @@ export class JetBrainsDistribution extends JavaBase {
vstring = tag.substring(tag.lastIndexOf('-') + 1);
break;
case 1:
vstring = tag.substring(2).replace(/-/g, '').replace(/_/g, '.');
vstring = tag.substring(2).replace(/-/g, '');
break;
case undefined: // 0
vstring = tag.substring(3);
@ -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,