-
Notifications
You must be signed in to change notification settings - Fork 35
/
make-dist.ps1
36 lines (31 loc) · 1.23 KB
/
make-dist.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
function CopyFolder($project, $dest){
$temp = mkdir $dest -Force
Get-ChildItem -Recurse $project -Force -ErrorAction SilentlyContinue -File `
| Where-Object {
($_.PSIsContainer -eq $false) `
-and !($_.Name.Contains(".vshost.")) `
-and !($_.Name.Contains("Tests")) `
-and !($_.Name.EndsWith((".pdb"))) `
`
} `
| ForEach-Object { Copy-Item $_.FullName -Destination $dest }
}
# Build directories
$temp = mkdir ./binaries -Force
$temp = mkdir ./binaries/net40 -Force
$temp = mkdir ./binaries/netcore -Force
$config = "Release"
$net = "bin/$config/"
$net40 = "bin/$config/net40"
$netcore = "bin/$config/netcoreapp1.0"
$netstandard13 = "bin/$config/netstandard1.3"
# Copy SweMini
CopyFolder "./Programs/SweMini/$net40" "./binaries/net40/"
CopyFolder "./Programs/SweMini/$netcore" "./binaries/netcore/SweMini"
CopyFolder "./SwissEphNet/$netstandard13" "./binaries/netcore/SweMini"
# Copy SweTest
CopyFolder "./Programs/SweTest/$net40" "./binaries/net40/"
CopyFolder "./Programs/SweTest/$netcore" "./binaries/netcore/SweTest"
CopyFolder "./SwissEphNet/$netstandard13" "./binaries/netcore/SweTest"
# Copy SweWin
CopyFolder "./Programs/SweWin/$net" "./binaries/net40/"