Skip to content

Commit 086a489

Browse files
author
Mindaugas Veblauskas
committed
Merge branch 'release/3.5.3'
2 parents da36f1a + 1498ca1 commit 086a489

File tree

127 files changed

+1951
-10758
lines changed

Some content is hidden

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

127 files changed

+1951
-10758
lines changed

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# ownership: loose
2+
* @ProtonVPN/groups/windows-developers

Setup/SetupBase.iss

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,11 @@ Source: "..\{#SourcePath}\*.deps.json"; DestDir: "{app}\{#VersionFolder}";
8383
Source: "..\{#SourcePath}\*.dll.config"; DestDir: "{app}\{#VersionFolder}";
8484
Source: "..\{#SourcePath}\Resources\ProtonVPN.InstallActions.dll"; DestDir: "{app}\{#VersionFolder}"; Flags: signonce;
8585

86-
Source: "..\{#SourcePath}\en-US\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\en-US"; Flags: signonce;
8786
Source: "..\{#SourcePath}\cs-CZ\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\cs-CZ"; Flags: signonce;
8887
Source: "..\{#SourcePath}\de-DE\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\de-DE"; Flags: signonce;
8988
Source: "..\{#SourcePath}\fa-IR\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\fa-IR"; Flags: signonce;
9089
Source: "..\{#SourcePath}\fr-FR\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\fr-FR"; Flags: signonce;
9190
Source: "..\{#SourcePath}\nl-NL\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\nl-NL"; Flags: signonce;
92-
Source: "..\{#SourcePath}\hr-HR\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\hr-HR"; Flags: signonce;
9391
Source: "..\{#SourcePath}\id-ID\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\id-ID"; Flags: signonce;
9492
Source: "..\{#SourcePath}\it-IT\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\it-IT"; Flags: signonce;
9593
Source: "..\{#SourcePath}\pl-PL\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\pl-PL"; Flags: signonce;
@@ -110,7 +108,6 @@ Source: "..\{#SourcePath}\zh-TW\ProtonVPN.Translations.resources.dll"; DestDir:
110108
Source: "..\{#SourcePath}\sv-SE\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\sv-SE"; Flags: signonce;
111109
Source: "..\{#SourcePath}\ja-JP\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\ja-JP"; Flags: signonce;
112110
Source: "..\{#SourcePath}\sk-SK\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\sk-SK"; Flags: signonce;
113-
Source: "..\{#SourcePath}\nn-NO\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\nn-NO"; Flags: signonce;
114111
Source: "..\{#SourcePath}\nb-NO\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\nb-NO"; Flags: signonce;
115112
Source: "..\{#SourcePath}\sl-SI\ProtonVPN.Translations.resources.dll"; DestDir: "{app}\{#VersionFolder}\sl-SI"; Flags: signonce;
116113

@@ -354,7 +351,7 @@ begin
354351
ProductDriveCheckBox.Left := ScaleX(Padding);
355352
ProductDriveCheckBox.Width := ScaleX(14);
356353
ProductDriveCheckBox.Height := ScaleY(14);
357-
ProductDriveCheckBox.Checked := not IsProductDriveInstalled and not IsArm64; // Drive doesn't work on arm64
354+
ProductDriveCheckBox.Checked := not IsProductDriveInstalled;
358355
359356
ProductDriveImage := TBitmapImage.Create(ProductDrivePanel);
360357
ProductDriveImage.Parent := ProductDrivePanel;
@@ -386,8 +383,7 @@ begin
386383
ProductDrivePanelOverlay.Transparent := True;
387384
ProductDrivePanelOverlay.OnClick := @OnProductDriveClick;
388385
389-
// Drive doesn't work on arm64
390-
if IsProductDriveInstalled or IsArm64 then begin
386+
if IsProductDriveInstalled then begin
391387
ProductDrivePanel.Visible := False;
392388
ProductDrivePanel.Height := 0;
393389
ProductPadding := 0;

ci/build-scripts/guest_hole_server_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def load():
3030
random.shuffle(non_secure_core_logical_servers)
3131

3232
servers_str: str = ""
33-
unique_entries: array = []
33+
unique_entries: list = []
3434

3535
for logical_server in non_secure_core_logical_servers:
3636
server = logical_server['Servers'][0]
@@ -51,7 +51,7 @@ def load():
5151

5252
servers_str = servers_str.lstrip(',')
5353

54-
with open('.\Setup\GuestHoleServers.json', 'w') as file:
54+
with open(r'.\Setup\GuestHoleServers.json', 'w') as file:
5555
file.write("".join(['[', servers_str, ']']))
5656

5757
print('Finished updating guest hole servers json')

ci/build-scripts/installer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import re
33
import subprocess
4-
import pathlib
54

65
def build(version, hash, setupFile):
76

@@ -21,7 +20,7 @@ def createSetupFile(version, hash):
2120
with open(baseSetupFile, 'r') as file:
2221
fileData = file.read()
2322

24-
fileData = re.sub('(#define MyAppVersion \")([0-9+]\.[0-9+]\.[0-9+])(\".+)', rf'\g<1>{version}\3', fileData, 1, flags = re.M | re.DOTALL)
23+
fileData = re.sub(r'(#define MyAppVersion \")([0-9+]\.[0-9+]\.[0-9+])(\".+)', rf'\g<1>{version}\3', fileData, 1, flags = re.M | re.DOTALL)
2524

2625
if hash:
2726
fileData = fileData.replace('#define Hash ""', "#define Hash \"{hash}\"".format(hash=hash))

ci/build-scripts/main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
import os
44
import argparse
55
import win32api
6-
import config
76
import installer
87
import ssh
98
import guest_hole_server_loader
109
import slack
1110
import hashlib
12-
from pathlib import Path
1311

1412
def get_sha256(file_path):
1513
sha256_hash = hashlib.sha256()
@@ -74,13 +72,13 @@ def print_sha256(file_path):
7472

7573
if 'BTI' in build_path:
7674
installer_filename = 'ProtonVPN_v{semVersion}_{platform}_BTI.exe'.format(semVersion=semVersion, platform=args.platform)
77-
installer_path = os.path.join('.\Setup\Installers', installer_filename)
75+
installer_path = os.path.join(r'.\Setup\Installers', installer_filename)
7876

7977
print_sha256(installer_path)
8078
sys.exit(err)
8179

8280
elif args.command == 'add-commit-hash':
83-
path = '.\src\GlobalAssemblyInfo.cs'
81+
path = r'.\src\GlobalAssemblyInfo.cs'
8482
with open(path, 'r') as file:
8583
content = file.read()
8684
matches = re.search(r"AssemblyVersion\(\"([0-9]+.[0-9]+.[0-9]+)", content)

ci/build-scripts/slack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def send():
1212
if len(files) > 0:
1313
installer_path = files[0]
1414
try:
15-
result = client.files_upload(
16-
channels=os.environ.get("SLACK_CHANNEL_ID"),
15+
result = client.files_upload_v2(
16+
channel=os.environ.get("SLACK_CHANNEL_ID"),
1717
initial_comment=os.environ.get("CI_COMMIT_MESSAGE"),
1818
file=installer_path,
1919
)

ci/build-scripts/ssh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import os
22

33
def prepare(key):
4-
path = '{userprofile}\.ssh'.format(userprofile=os.getenv('userprofile'))
4+
path = os.path.join(os.getenv('userprofile'), '.ssh')
55
os.makedirs(path, exist_ok=True)
6-
f = open(path + '\id_rsa', 'w', newline='\n')
6+
f = open(os.path.join(path, 'id_rsa'), 'w', newline='\n')
77
f.write(key)
88
f.write('\n')
99
f.close()

ci/python-libs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pywin32==228
22
requests==2.24.0
3-
slack_sdk==3.15.2
3+
slack_sdk==3.34.0
-211 KB
Binary file not shown.

sign/ProtonVPN.CalloutDriver.sys

-21.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)