-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy path02-Install-Software.ps1
77 lines (65 loc) · 2.34 KB
/
02-Install-Software.ps1
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Write-Host @"
*=====================================================================================
Choco Auto Installer
This script is for setup new dev machine for mxtao.
The project is forked from Edi Wang's. The original address is https://github.com/EdiWang/EnvSetup
Feel free to modify it to fit your own requirements.
*=====================================================================================
"@
Write-Host "[WARNING] Ma de in China: some software like Google Chrome require the true Internet first" -ForegroundColor Yellow
$apps = @(
# ---------- language and sdks ----------
@(".Net Core SDK", "dotnetcore-sdk"),
@("Python", "python"),
@("Java SE 8.0.191 SDK", "jdk8"),
@("Java SE 11.0.1 SDK", "jdk11"),
@("Scala", "scala"),
# ---------- normal softwares ----------
@("7-Zip", "7zip.install"),
@("Google Chrome", "googlechrome"),
@("PotPlayer", "potplayer"),
@("SumatraPDF", "sumatrapdf"),
@("Tim", "tim"),
#@("Driver Booster"),
# ---------- tools for dev ----------
@("WinSCP", "winscp"),
@("FileZilla", "filezilla"),
@("Cmder Mini", "cmdermini"),
@("Rufus", "rufus"),
@("Git", "git"),
@("Docker Desktop", "docker-desktop"),
# ---------- editor or ide ----------
@("NotePad++", "notepadplusplus.install"),
@("Visual Studio Code", @(
"vscode",
"vscode-csharp",
"vscode-icons",
"vscode-mssql",
"vscode-powershell",
"vscode-docker",
"vscode-gitlens"
)),
@("Visual Studio 2017 Enterprise", "visualstudio2017enterprise"),
@("JetBrains ReSharper", "resharper"),
@("JetBrains IntelliJ IDEA (Ultimate Edition)", "intellijidea-ultimate")
)
function ChocoInstall($appName, $packageName) {
Write-Host ""
Write-Host "------------------------------------"
Write-Host "Installing $appName..."
Write-Host ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
if ($packageName -is [array]) {
foreach ($package in $packageName) {
choco install $package -y
}
}
else {
choco install $packageName -y
}
Write-Host "------------------------------------"
Write-Host ""
}
Write-Host "setting proxy for choco, you can unset it anytime" -BackgroundColor Yellow
choco config set proxy 127.0.0.1:1080
Write-Host "now start install apps"
ChocoInstall $apps