-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtoolsList.sh
58 lines (47 loc) · 1.27 KB
/
toolsList.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
declare -A tools
declare -A toolsDir
declare -A toolsIcon
declare -A toolsExec
declare -A toolsFolderTarget
declare -A toolsAppName
declare -A toolsComment
declare -A toolsCategory
declare -A toolsStartupWMClass
tools=(
[intellij]="1,$(curl -sL "https://data.services.jetbrains.com/products/releases?code=IIU&latest=true&type=release" | grep -oP '"linux":{"link":"\K[^"]+')"
[vscode]="2,https://code.visualstudio.com/sha/download?build=stable&os=linux-x64"
)
mainFolder="/opt"
toolsDir=(
[intellij]="1,$mainFolder/intellij"
[vscode]="2,$mainFolder/vscode"
)
toolsIcon=(
[intellij]="1,${toolsDir[intellij]#*,}/bin/idea.png"
[vscode]="2,com.visualstudio.code.oss"
)
toolsExec=(
[intellij]="1,${toolsDir[intellij]#*,}/bin/idea.sh"
[vscode]="2,code-oss --unity-launch %F"
)
toolsFolderTarget=(
[intellij]="1,/usr/local/bin/idea"
[vscode]="2,/usr/local/bin/code"
)
toolsAppName=(
[intellij]="1,Intellij-IDEA"
[vscode]="2,Visual-Code"
)
toolsComment=(
[intellij]="1,Powerful IDE for Java development"
[vscode]="2,Code Editing. Redefined"
)
toolsCategory=(
[intellij]="1,Development;IDE;"
[vscode]="2,Utility;TextEditor;Development;IDE;"
)
toolsStartupWMClass=(
[intellij]="1,jetbrains-idea"
[vscode]="2,vscode"
)