Skip to content

Commit

Permalink
Merge pull request #84 from hsz/main
Browse files Browse the repository at this point in the history
Adjust JetBrains distribution configuration
  • Loading branch information
HanSolo committed Aug 16, 2023
2 parents 28166b5 + 91e532a commit 850c54c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/io/foojay/api/distribution/JetBrains.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class JetBrains implements Distribution {
private static final SignatureType SIGNATURE_TYPE = SignatureType.NONE;
private static final HashAlgorithm SIGNATURE_ALGORITHM = HashAlgorithm.NONE;
private static final String SIGNATURE_URI = "";
private static final String OFFICIAL_URI = "https://confluence.jetbrains.com/display/JBR/JetBrains+Runtime";
private static final String OFFICIAL_URI = "https://github.com/JetBrains/JetBrainsRuntime";

private static final Pattern JBRSDK_PATTERN = Pattern.compile("JBRSDK\\s+\\|\\s+\\[([0-9a-zA-Z_.-]+)\\]\\(([0-9a-z:/._-]+)\\)");
private static final Matcher JBRSDK_MATCHER = JBRSDK_PATTERN.matcher("");
Expand Down Expand Up @@ -189,8 +189,6 @@ public List<Pkg> getAllPkgs(final boolean onlyNewPkgs) {
String strippedDownloadLink = "";
if (downloadLink.startsWith("https://cache-redirector")) {
strippedDownloadLink = downloadLink.replaceAll("\\?_.*", "");
} else if (downloadLink.startsWith("https://bintray.com")) {
strippedDownloadLink = downloadLink.replaceFirst("https://bintray.com/jetbrains/intellij-jbr/download_file\\?file_path=", "");
}
if (strippedDownloadLink.isEmpty()) { continue; }

Expand Down

0 comments on commit 850c54c

Please sign in to comment.