-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.ps1
More file actions
26 lines (19 loc) · 914 Bytes
/
build.ps1
File metadata and controls
26 lines (19 loc) · 914 Bytes
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
& .\clean.bat
$properties = Get-Content "pom.properties" | Out-String | ConvertFrom-StringData;
# Protobufs
Write-Output "Downloading protobufs library...";
$protoFile = "protobufs-$($properties.protobufsVersion).dll";
if (Test-Path $protoFile) {
Remove-Item $protoFile;
}
$client = new-object System.Net.WebClient
$client.DownloadFile("http://prak.mff.cuni.cz:8081/artifactory/libs-release/protobufs-$($properties.protobufsVersion).dll", $protoFile);
Move-Item -force $protoFile FruitonClient/Assets/Libraries/protobufs.dll
# Kernel
Write-Output "Downloading kernel library...";
$kernelFile = "protobufs-$($properties.kernelVersion).dll";
if (Test-Path $kernelFile) {
Remove-Item $kernelFile;
}
$client.DownloadFile("http://prak.mff.cuni.cz:8081/artifactory/libs-release/kernel-$($properties.kernelVersion).dll", $kernelFile);
Move-Item -force $kernelFile FruitonClient/Assets/Libraries/kernel.dll