Skip to content

Commit 1e546c8

Browse files
author
Mindaugas Veblauskas
committed
Merge branch 'release/3.0.7'
2 parents 7194fcc + a129ccd commit 1e546c8

File tree

134 files changed

+2947
-1250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+2947
-1250
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,7 @@ resharper_arrange_this_qualifier_highlighting=hint
285285

286286
# IDE1006: Naming Styles
287287
dotnet_diagnostic.ide1006.severity=warning
288+
289+
# Ignore that our code is compatible only with Windows
290+
# CA1416: Validate platform compatibility
291+
dotnet_diagnostic.CA1416.severity = none

.gitlab-ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,19 @@ build-release:
4545
- echo "Building native dependencies..."
4646
- 'c:\nuget\nuget.exe restore ProtonVPN.InstallActions.sln'
4747
- cmd.exe /c BuildDependencies.bat
48+
- cmd.exe /c BuildGoSrp.bat src\bin\win-x64\publish\Resources
4849
- dotnet publish src\ProtonVPN.MarkupValidator\ProtonVPN.MarkupValidator.csproj --arch x64 -c Release --no-self-contained -o src\bin
4950
- echo "Downloading translations from crowdin..."
5051
- python ci\main.py lint-languages
5152
- python ci\main.py add-commit-hash $env:CI_COMMIT_SHORT_SHA
5253
- python ci\main.py defaultConfig
5354
- echo "Publishing release..."
54-
- dotnet publish ProtonVpn.sln --arch x64 -c Release --no-self-contained --verbosity q -o src\bin
55+
- dotnet publish ProtonVpn.sln -c Release -r win-x64 --self-contained
5556
- msbuild src\ProtonVPN.NativeHost\NativeHost.vcxproj /p:Configuration=Release /p:Platform=x64
5657
artifacts:
5758
expire_in: 1 day
5859
paths:
59-
- src/bin
60+
- src/bin/win-x64/publish
6061
- src/ProtonVPN.NativeHost/bin
6162
only:
6263
- master
@@ -72,18 +73,19 @@ build-debug:
7273
- echo "Building native dependencies..."
7374
- 'c:\nuget\nuget.exe restore ProtonVPN.InstallActions.sln'
7475
- cmd.exe /c BuildDependencies.bat
76+
- cmd.exe /c BuildGoSrp.bat src\bin\win-x64\publish\Resources
7577
- dotnet publish src\ProtonVPN.MarkupValidator\ProtonVPN.MarkupValidator.csproj --arch x64 -c Release --no-self-contained -o src\bin
7678
- echo "Downloading translations from crowdin..."
7779
- python ci\main.py lint-languages
7880
- python ci\main.py add-commit-hash $env:CI_COMMIT_SHORT_SHA
7981
- python ci\main.py defaultConfig
8082
- echo "Publishing debug..."
81-
- dotnet publish ProtonVpn.sln --arch x64 -c Debug --no-self-contained --verbosity q -o src\bin
83+
- dotnet publish ProtonVpn.sln -c Debug -r win-x64 --self-contained
8284
- msbuild src\ProtonVPN.NativeHost\NativeHost.vcxproj /p:Configuration=Release /p:Platform=x64
8385
artifacts:
8486
expire_in: 1 day
8587
paths:
86-
- src/bin
88+
- src/bin/win-x64/publish
8789
- src/ProtonVPN.NativeHost/bin
8890
except:
8991
- master
@@ -96,6 +98,7 @@ tests:
9698
tags:
9799
- windows-dot-net
98100
script:
101+
- cmd.exe /c BuildGoSrp.bat src\bin\Resources
99102
- dotnet restore ProtonVpn.sln
100103
- dotnet build ProtonVpn.sln
101104
- coverlet src\bin --target "dotnet" --targetargs "test ProtonVpn.sln -l ""console;verbosity=normal"" --filter ""TestCategory!=UI&TestCategory!=Connection"" --no-restore --no-build" --format cobertura --output .\coverage-reports --exclude "[*.Tests*]*" --exclude "[ProtonVPN.MarkupValidator]*" --exclude "[TestTools*]*" --exclude "[*.Installers]*"
@@ -185,7 +188,7 @@ ui-test:
185188
- $SCREENSHOT_PATH
186189
- "results/*"
187190
expire_in: 1 weeks
188-
191+
189192
connection-test:
190193
stage: ui-test
191194
tags:
@@ -210,7 +213,7 @@ connection-test:
210213
- $SCREENSHOT_PATH
211214
- "results/*"
212215
expire_in: 1 weeks
213-
216+
214217
win-11-test:
215218
stage: ui-test
216219
when: manual

BuildDependencies.bat

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
set outputDir=..\bin\Resources\
1+
set outputDir=..\bin\win-x64\publish\Resources\
22
set platformToolset=v143
33
set GOARCH=amd64
44

55
msbuild src\ProtonVPN.IpFilter\ProtonVPN.IpFilter.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=x64 /p:Configuration=Release /p:OutDir=%outputDir%
66
msbuild src\ProtonVPN.NetworkUtil\ProtonVPN.NetworkUtil.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=x64 /p:Configuration=Release /p:OutDir=%outputDir%
7-
msbuild src\ProtonVPN.InstallActions\ProtonVPN.InstallActions.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=Win32 /p:Configuration=Release
8-
msbuild src\ProtonVPN.InstallActions\ProtonVPN.InstallActions.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=x64 /p:Configuration=Release
9-
10-
::GoSrp.dll
11-
pushd %~dp0\src\srp\windows\cshared
12-
set fn=GoSrp
13-
set gn=main.go
14-
set CGO_ENABLED=1
15-
go build -buildmode=c-shared -v -ldflags="-s -w" -o ..\..\..\bin\Resources\%fn%.dll %gn%
7+
msbuild src\ProtonVPN.InstallActions\ProtonVPN.InstallActions.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=Win32 /p:Configuration=Release /p:OutDir=%outputDir%..\
8+
msbuild src\ProtonVPN.InstallActions\ProtonVPN.InstallActions.vcxproj /p:PlatformToolset=%platformToolset% /p:Platform=x64 /p:Configuration=Release /p:OutDir=%outputDir%..\
169

1710
::LocalAgent.dll
1811
pushd %~dp0\src\ProtonVPN.LocalAgent\localAgentWin
1912
set GOOS=windows
2013
set GO111MODULE=off
2114
set CGO_CFLAGS=-O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601
2215
set CC=x86_64-w64-mingw32-gcc
23-
go build -buildmode c-shared -ldflags="-w -s" -trimpath -v -o "..\..\bin\Resources\LocalAgent.dll" || exit /b 1
16+
go build -buildmode c-shared -ldflags="-w -s" -trimpath -v -o "..\..\bin\win-x64\publish\Resources\LocalAgent.dll" || exit /b 1

BuildGoSrp.bat

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pushd %~dp0\src\srp\windows\cshared
2+
set CGO_ENABLED=1
3+
go build -buildmode=c-shared -v -ldflags="-s -w" -o GoSrp.dll main.go
4+
echo F| xcopy GoSrp.dll %~dp0%1\GoSrp.dll

Setup/CodeDependencies.iss

Lines changed: 0 additions & 269 deletions
This file was deleted.

Setup/NetCoreCheckCA.dll

-143 KB
Binary file not shown.

Setup/NetCoreCheck_x64.exe

-143 KB
Binary file not shown.

0 commit comments

Comments
 (0)