./build-package [-f <flavor>] [-p <platform>] [-v <version>] -u
build-package will create a platform-specific package of Jetbrain's
Intellij IDEA. The packages can be installed using platform
specific/native tools and/or distributed from local package repositories.
It currently only supports building packages of the development builds of IDEA, either by finding and downloading the latest version directly from Jetbrain's servers or by being pointed to a build output directory and use that.
If you provide an idea.license file, this license is applied to the genereated package. This allows to generate a certified package for the Ultimate edition of the IDE.
The IDEA flavor to package. 'flavor' can be one of 'IU' and 'IC' for IDEA Ultimate or IDEA Community Edition respectively.
This option will be stored in
$HOME/.intellij-idea-dpkgso you don't have to specifiy it in the next run.
Force a build of a package, even if there is a package with the same version in the repository.
The operating system platform to build the package for. Can be one of 'debian' and 'solaris'. The platform-specific tools has to be available to do cross-build.
'debian' will build a package for any of the Debian based Linux distributions, including Debian and Ubuntu.
'solaris' will build a package for Solaris 8 to 10. The package itself will work on later versions of Solaris and OpenSolaris but uses the 'old style' packaging tools (pkgadd, pkgmk, etc)
Sets to be the input directory when creating the package. This is used to build packages from custom builds of IDEA.
Note that you have to specify the version explicitly.
Updates the package repository with the appropriate command for the platform.
For debian this means dpkg-scanpackages, for solaris bldcat is used.
The version of the build to use. If not specified the script will automatically find and download the latest EAP build of IDEA 2017.2 from http://confluence.jetbrains.com/display/IDEADEV/IDEA+2017.2+EAP
To build a pkgutil repository run bldcat like this:
bldcat repository/solaris/`uname -p`/`uname -r`
make sure you have the
pkgutilplus package installed
Example 1: Creating a package of the latest Ultimate Edition.
The flavor can be overridden with
-f. This option will also be
remembered for the next run.
Example 2: Creating a Solaris package of the latest Ultimate Edition.
./build-package -f IU -p solaris
Example 3: Creating a Debian package of the 95.4 build of the Community Edition.
./build-package -f IC -p debian -v 95.4
Example 4: Creating a Debian from a custom build of IDEA:
./build-package -p debian -f IC -v 1.2.3 -s idea-IC-95.54
The scripts are not bullet proof, so there might certainly be bugs in them. The scripts also depend on jetbrains to not change the way they package and distribute the tar files.
If you find a bug, please file a bug on GitHub: http://github.com/trygvis/intellij-idea-dpkg/issues