How to build IDEA CE source code to an installation package?

Answered

Hi, 

I want to build IDEA CE source code to an installation package which others can install it on their own computer.

 

I tried two ways but failed:

1. Build intellij-core.zip target in idea_community.gant, it gives me a zip file with many jar files.

2. Use cmake to run native/IdeaWin32/build.cmd, it only gives me a IdeaWin32.dll.

 

So, what is right way to build an installation package?

0
6 comments

You need to run 'default' target from idea_community.gant. You can do it by executing 'ant' command, see build.xml file for details. I've updated README.md accordingly.

0

The 'default' target from idea_community.gant build FAILED. 

 

I download IDEA source code with tag 173, but I cannot find the 173 tag on https://github.com/jetBrains/adt-tools-base. Then I download the latest adt-tools-base code. The error is "Error:(21, 33) java: package com.android.builder.model does not exist". I have no idea why.

0

Why do you check out adt-tools-base repository from Github? It's recommended to checkout it from git.jetbrains.org, see getPlugins.bat.

0

I cannot download code through git protocol in office, so I checked out from Github. I think it's wrong. 

Last night, I checked out from git.jetbrains.org at home, and copy it to my company. Now, the default target in  idea_community.gant gives me an error:

F:/project_git/intellij-community-173/plugins/git4idea/src/org/jetbrains/git4idea/ssh/GitXmlRpcSshService.java:20:
package net.i2p.crypto.eddsa does not exist

 

I have added eddsa-0.2.0.jar in all SDKs' classpath. And compile GitXmlRpcSshService.java is ok, compile module git4idea is ok, too. But the default target still failed with the same error.

0

UPDATE

Status:Finally build  successful. I added eddsa-0.2.0.jar as library dependencies for git4idea before, now I removed it and added it as a jar file dependencies.  I have no idea why. The two ways should be the same result, but the build passed.

 

Question: Even though the build is ok, it does not give me a installation package. There is a directory named dist.win, it's size is only 7 Mb, how can I make the output together to give someone else to install?

0

CLOSED

 

It my fault, I found the installation package. It's under directory out/idea-ce/artifacts.

 

Thanks for Nikolay's hints.

0

Please sign in to leave a comment.