forked from vpnhood/VpnHood
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPublishApps.ps1
72 lines (59 loc) · 1.95 KB
/
PublishApps.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
param(
[Parameter(Mandatory=$true)][object]$bump,
[Parameter(Mandatory=$true)][object]$nugets,
[Parameter(Mandatory=$true)][object]$winClient,
[Parameter(Mandatory=$true)][object]$android,
[Parameter(Mandatory=$true)][object]$server,
[Parameter(Mandatory=$true)][object]$distribute
);
$nugets = $nugets -eq "1";
$android = $android -eq "1";
$androidConnect = $androidConnect -eq "1";
$distribute = $distribute -eq "1";
$winClient = $winClient -eq "1";
$server = $server -eq "1";
. "$PSScriptRoot/Core/Common.ps1" -bump $bump
# clean all
& $msbuild "$solutionDir" /p:Configuration=Release /t:Clean /verbosity:$msverbosity;
$noclean = $true;
$noPushNuget = !$nugets
Remove-Item "$packagesRootDir/ReleaseNote.txt" -ErrorAction Ignore;
# rebuild libraries
& "$solutionDir/VpnHood.Common/_publish.ps1";
& "$solutionDir/VpnHood.Tunneling/_publish.ps1";
& "$solutionDir/VpnHood.Client/_publish.ps1";
& "$solutionDir/VpnHood.Client.Device.Android/_publish.ps1";
& "$solutionDir/VpnHood.Client.Device/_publish.ps1";
& "$solutionDir/VpnHood.Client.Device.WinDivert/_publish.ps1";
& "$solutionDir/VpnHood.Client.App/_publish.ps1";
& "$solutionDir/VpnHood.Client.App.WebServer/_publish.ps1";
& "$solutionDir/VpnHood.Server/_publish.ps1";
& "$solutionDir/VpnHood.Server.Access/_publish.ps1";
# publish client
if ($winClient)
{
& "$solutionDir/VpnHood.Client.App.Win/_publish.ps1";
}
# publish server
if ($server)
{
& "$solutionDir/VpnHood.Server.App.Net/Pub/publish_win.ps1";
& "$solutionDir/VpnHood.Server.App.Net/Pub/publish_linux_x64.ps1";
& "$solutionDir/VpnHood.Server.App.Net/Pub/publish_linux_arm64.ps1";
& "$solutionDir/VpnHood.Server.App.Net/Pub/publish_docker.ps1" -distribute $distribute;
}
# publish android
if ($android)
{
& "$solutionDir/VpnHood.Client.App.Android/_publish.ps1";
}
# publish android
if ($androidConnect)
{
& "$solutionDir/VpnHood.Client.App.Android.connect/_publish.ps1";
}
# distribute
if ($distribute)
{
& "$PSScriptRoot/PublishToGitHub.ps1";
}