-
Notifications
You must be signed in to change notification settings - Fork 6
/
install.ps1
33 lines (28 loc) · 1.78 KB
/
install.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
$modules = "$home\Documents\WindowsPowerShell\Modules"
Write-Host "Installing modules into your user profile: $modules"
Write-Host "Installing AppRolla module"
New-Item "$modules\AppRolla" -ItemType Directory -Force | Out-Null
(New-Object Net.WebClient).DownloadFile("https://raw.github.com/AppVeyor/AppRolla/master/AppRolla.psm1", "$modules\AppRolla\AppRolla.psm1")
Write-Host "Installing AppVeyor module"
New-Item "$modules\AppVeyor" -ItemType Directory -Force | Out-Null
(New-Object Net.WebClient).DownloadFile("https://raw.github.com/AppVeyor/AppVeyor-PowerShell/master/AppVeyor.psm1", "$modules\AppVeyor\AppVeyor.psm1")
$path = Resolve-Path .\
Write-Host "Downloading deployment scripts to the current directory: $path"
(New-Object Net.WebClient).DownloadFile("https://raw.github.com/AppVeyor/Deployment/master/configure.ps1", "$path\configure.ps1")
(New-Object Net.WebClient).DownloadFile("https://raw.github.com/AppVeyor/Deployment/master/deploy.ps1", "$path\deploy.ps1")
if(-not (Test-Path "$path\project.ps1"))
{
(New-Object Net.WebClient).DownloadFile("https://raw.github.com/AppVeyor/Deployment/master/project.ps1", "$path\project.ps1")
}
# add registry settings
$settingsPath = "HKCU:\SOFTWARE\AppVeyor\Deployment"
if(-not (Test-Path $settingsPath))
{
New-Item -Path $settingsPath –Force | Out-Null
New-ItemProperty -Path $settingsPath -Name ApiAccessKey -Value "" | Out-Null
New-ItemProperty -Path $settingsPath -Name ApiSecretKey -Value "" | Out-Null
New-ItemProperty -Path $settingsPath -Name Project -Value "" | Out-Null
New-ItemProperty -Path $settingsPath -Name Version -Value "" | Out-Null
New-ItemProperty -Path $settingsPath -Name ServerUsername -Value "administrator" | Out-Null
New-ItemProperty -Path $settingsPath -Name ServerPassword -Value "" | Out-Null
}