2015-03-07 19:45:47 +01:00
|
|
|
# intellij-idea-community
|
|
|
|
.deb Packages of IntelliJ IDEA Community Edition for Ubuntu
|
2015-03-07 23:03:26 +01:00
|
|
|
|
2017-12-01 16:03:48 +01:00
|
|
|
The latest upstream version is 2017.3 which is included in the package version 2017.3.
|
2015-03-30 11:23:57 +02:00
|
|
|
|
2015-03-07 23:03:26 +01:00
|
|
|
## Adding the ppa to Ubuntu
|
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-06-27 20:00:21 +02:00
|
|
|
sudo apt-add-repository ppa:mmk2410/intellij-idea
|
2015-12-13 14:17:00 +01:00
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install intellij-idea-community
|
|
|
|
```
|
2015-03-07 23:07:22 +01:00
|
|
|
|
2017-11-05 13:47:32 +01:00
|
|
|
## Report issues
|
|
|
|
|
2018-01-02 23:31:58 +01:00
|
|
|
You can report issues, questions or feedback here on GitLab. Please include which version your using.
|
2017-11-05 13:47:32 +01:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
## Updating the package
|
2015-03-07 23:07:22 +01:00
|
|
|
|
2017-12-01 16:03:48 +01:00
|
|
|
To update the version follow these steps. Replace all instances of `[year].[major].[minor]` with the new version numbers (e.g., 2017.3++).
|
2015-05-17 12:33:13 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
1. Fork the repo
|
2016-10-06 11:04:43 +02:00
|
|
|
2. Create your own feature branch
|
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-10-08 20:24:07 +02:00
|
|
|
git checkout -b version-[year].[major].[minor]
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
3. Rename the following
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-12-01 16:03:48 +01:00
|
|
|
mv intellij-idea-community_2017.3 intellij-idea-community_[year].[major].[minor]
|
|
|
|
mv intellij-idea-community_2017.3.orig.tar.gz intellij-idea-community_[year].[major].[minor].orig.tar.gz
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
4. Edit the README.md and update the version numbers
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
5. Go into the build files directory
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-10-08 20:24:07 +02:00
|
|
|
cd intellij-idea-community_[year].[major].[minor]/debian
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
6. Edit the changelog file and prepend a new changelog entry. You can just copy an old one and update the values in it
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
7. Edit the preinst file and update the download url. Normally this is done by updating the version number
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
8. Go one directory back
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
|
|
|
cd ..
|
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
9. Run the following command to build the package for testing purposes
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
|
|
|
debuild -us -uc
|
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
10. Go another directory back
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
|
|
|
cd ..
|
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
11. Remove the old files
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-12-01 16:03:48 +01:00
|
|
|
rm intellij-idea-community_2017.3-1*
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
12. Install the package to test it
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-10-08 20:24:07 +02:00
|
|
|
sudo dpkg -i intellij-idea-community_[year].[major].[minor]_all.deb
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2016-10-20 22:54:32 +02:00
|
|
|
13. If everything works, add yourself to the CONTRIBUTORS.txt
|
|
|
|
|
|
|
|
14. Commit your changes
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
|
|
|
git add -A
|
2017-10-08 20:24:07 +02:00
|
|
|
git commit -m "Version [year].[major].[minor]"
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2016-10-20 22:54:32 +02:00
|
|
|
15. Push to the branch
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2017-10-08 20:24:07 +02:00
|
|
|
git push origin version-[year].[major].[minor]
|
2015-12-13 14:17:00 +01:00
|
|
|
```
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2016-10-20 22:54:32 +02:00
|
|
|
16. Create new pull request
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2017-11-05 13:47:32 +01:00
|
|
|
### Automatically do steps 2 to 12
|
2017-08-30 11:52:46 +02:00
|
|
|
|
2020-03-29 13:25:35 +02:00
|
|
|
Run `./update-new-version.sh "$new-version"`
|
|
|
|
|
|
|
|
Where `$new-version` is in the format `[year].[major].[minor]`.
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2017-11-05 13:47:32 +01:00
|
|
|
### Setting up the build environment
|
2016-10-06 11:04:43 +02:00
|
|
|
|
2017-08-30 11:52:46 +02:00
|
|
|
Run `sudo apt install devscripts debhelper`.
|