Skip to content

Commit

Permalink
Update to 212.5284.40
Browse files Browse the repository at this point in the history
  • Loading branch information
CaKrome authored Sep 16, 2021
1 parent 40e0f67 commit c57e235
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions intellij-idea-build.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/bin/bash

intellij_idea_version=212.5080.55
intellij_idea_version=212.5284.40

# Download IntelliJ IDEA and Android plugin(required for building IntelliJ IDEA)

wget https://github.com/JetBrains/intellij-community/archive/refs/tags/idea/212.5080.55.tar.gz -O intellij-idea-source.tar.gz
git clone --depth 1 --branch idea/212.5080.55 git://git.jetbrains.org/idea/android.git
wget https://github.com/JetBrains/intellij-community/archive/refs/tags/idea/212.5284.40.tar.gz -O intellij-idea-source.tar.gz
git clone --depth 1 --branch idea/212.5284.40 git://git.jetbrains.org/idea/android.git

# Extract files

Expand All @@ -16,15 +16,22 @@ mv android intellij-community-idea-$intellij_idea_version

cd intellij-community-idea-$intellij_idea_version

# https://youtrack.jetbrains.com/issue/KTIJ-19348
patch -p0 -i kotlin_dist_for_ide.patch

# https://youtrack.jetbrains.com/issue/IDEA-276102
# https://youtrack.jetbrains.com/issue/IDEA-277775
patch -p0 -i skip_jps_build.patch

sed '/def targetOs =/c def targetOs = "linux"' -i build/dependencies/setupJbre.gradle
sed '/String targetOS/c String targetOS = OS_LINUX' -i platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy
sed -E 's|(<sysproperty key="jna.nosys")|<sysproperty key="intellij.build.target.os" value="linux" />\1|' -i build.xml
sed -E 's/-Xmx[0-9]+m/-XX:-UseGCOverheadLimit/' -i build.xml
sed -E 's/-Xmx[0-9]+m/-XX:-UseGCOverheadLimit -Didea.home.path=/' -i build.xml
echo $intellij_idea_version > build.txt

# Build

ant build
ant -Dintellij.build.target.os=linux build

# Clean up

Expand Down

0 comments on commit c57e235

Please sign in to comment.