索引:
参看代码 GitHub:
一、Linux (DeepinOS) 环境
1.官网下载
ideaIU-2018.1..tar.gz
2.解压
tar -zxvf ideaIU-2018.1..tar.gz -C ~/dev/Idea
3.设置执行权限
cd ~/dev/Idea/idea-IU-181.4668./bin
sudo chmod a=+rx ./idea.sh
4.安装
执行此 shell 前,可对 IDEA 进行 xxxx ,具体方法自行在网上搜索查看
sudo ./idea.sh
5.手动创建桌面快捷图标
.创建一个 idea.desktop 文件:
[Desktop Entry]
Name=IdeaIU
Comment=IdeaIU
Exec=env JAVA_HOME=/home/liumeng/dev/Java/jdk1..0_171 /home/liumeng/dev/Idea/idea-IU-181.4668./bin/idea.sh
Icon=/home/liumeng/dev/Idea/idea-IU-181.4668./bin/idea.png
Terminal=false
Type=Application
Categories=Application;
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-AppID=idea
.将文件放到 /usr/share/applications 中:
sudo cp ~/dev/Idea/idea-IU-181.4668./bin/idea.desktop /usr/share/applications
蒙
2018-05-19 20:50 周六