Skip to content

Commit 7323c15

Browse files
Use elevator NuGet assets for Windows release packaging (#4567)
* Use elevator NuGet package for bundled DLL * update gsudo license urls * Bump elevator package to 2.6.1.1
1 parent 69b1954 commit 7323c15

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

InstallerExtras/CodeDependencies.iss

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,20 +232,29 @@ begin
232232
Dependency_Add('vcredist2022' + Dependency_ArchSuffix + '.exe',
233233
'/passive /norestart',
234234
'Visual C++ 2015-2022 Redistributable (x64)' + Dependency_ArchTitle,
235-
Dependency_String('https://aka.ms/vs/17/release/vc_redist.x64.exe', 'https://aka.ms/vs/17/release/vc_redist.x64.exe'),
235+
Dependency_String('https://aka.ms/vc14/vc_redist.x64.exe', 'https://aka.ms/vc14/vc_redist.x64.exe'),
236236
'', False, False);
237237
end;
238238
end;
239239
240240
241241
procedure Dependency_AddWebView2;
242+
var
243+
WebView2URL, WebView2Title: String;
242244
begin
243245
// https://developer.microsoft.com/en-us/microsoft-edge/webview2
244246
if not RegValueExists(HKLM, Dependency_String('SOFTWARE', 'SOFTWARE\WOW6432Node') + '\Microsoft\EdgeUpdate\Clients\{F3017226-FE2A-4295-8BDF-00C3A9A7E4C5}', 'pv') then begin
247+
if IsARM64 then begin
248+
WebView2URL := 'https://go.microsoft.com/fwlink/?linkid=2099616';
249+
WebView2Title := 'WebView2 Runtime (ARM64)';
250+
end else begin
251+
WebView2URL := 'https://go.microsoft.com/fwlink/?linkid=2124701';
252+
WebView2Title := 'WebView2 Runtime (x64)';
253+
end;
245254
Dependency_Add('MicrosoftEdgeWebview2Setup.exe',
246255
'/silent /install',
247-
'WebView2 Runtime (x64)',
248-
'https://go.microsoft.com/fwlink/?linkid=2124701',
256+
WebView2Title,
257+
WebView2URL,
249258
'', False, False);
250259
end;
251260
end;

src/UniGetUI.Core.Data/Licenses.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public static class LicenseData
9393
{ "GSudo", new Uri("https://github.com/gerardog/gsudo/blob/master/LICENSE.txt") },
9494
{
9595
"UniGetUI Elevator",
96-
new Uri("https://github.com/marticliment/GSudo-for-UniGetUI/blob/main/LICENSE.txt")
96+
new Uri("https://github.com/Devolutions/gsudo-distro/blob/master/LICENSE")
9797
},
9898
{ "Icons", new Uri("https://icons8.com/license") },
9999
};
@@ -131,7 +131,7 @@ public static class LicenseData
131131
{ "vcpkg", new Uri("https://github.com/microsoft/vcpkg") },
132132
// Other
133133
{ "GSudo", new Uri("https://github.com/gerardog/gsudo/") },
134-
{ "UniGetUI Elevator", new Uri("https://github.com/marticliment/GSudo-for-UniGetUI/") },
134+
{ "UniGetUI Elevator", new Uri("https://github.com/Devolutions/gsudo-distro") },
135135
{ "Icons", new Uri("https://icons8.com") },
136136
};
137137
}
-65.5 KB
Binary file not shown.

src/UniGetUI/UniGetUI.csproj

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
<ElevatorPackageArchitecture Condition="'$(ElevatorPackageArchitecture)' == ''"
3535
>x64</ElevatorPackageArchitecture
3636
>
37-
<ElevatorPackageExePath>$(PkgDevolutions_UniGetUI_Elevator)\runtimes\win-$(ElevatorPackageArchitecture)\native\UniGetUI Elevator.exe</ElevatorPackageExePath>
37+
<ElevatorPackageNativePath>$(PkgDevolutions_UniGetUI_Elevator)\runtimes\win-$(ElevatorPackageArchitecture)\native</ElevatorPackageNativePath>
38+
<ElevatorPackageExePath>$(ElevatorPackageNativePath)\UniGetUI Elevator.exe</ElevatorPackageExePath>
39+
<ElevatorPackageDllPath>$(ElevatorPackageNativePath)\getfilesiginforedist.dll</ElevatorPackageDllPath>
3840
</PropertyGroup>
3941

4042
<PropertyGroup>
@@ -71,6 +73,10 @@
7173
Condition="!Exists('$(ElevatorPackageExePath)')"
7274
Text="NuGet elevator executable not found at '$(ElevatorPackageExePath)'. Ensure package restore has completed for Devolutions.UniGetUI.Elevator."
7375
/>
76+
<Error
77+
Condition="!Exists('$(ElevatorPackageDllPath)')"
78+
Text="NuGet elevator dependency DLL not found at '$(ElevatorPackageDllPath)'. Ensure package restore has completed for Devolutions.UniGetUI.Elevator."
79+
/>
7480
</Target>
7581

7682
<ItemGroup>
@@ -151,7 +157,7 @@
151157
<PackageReference Include="Octokit" Version="14.0.0" />
152158
<PackageReference
153159
Include="Devolutions.UniGetUI.Elevator"
154-
Version="2.6.1"
160+
Version="2.6.1.1"
155161
GeneratePathProperty="true"
156162
ExcludeAssets="build;buildTransitive"
157163
/>
@@ -365,10 +371,14 @@
365371
<Pack>false</Pack>
366372
</Content>
367373
<Content
368-
Update="Assets\Utilities\getfilesiginforedist.dll"
369-
Condition="'$(Platform)' == 'x64'"
374+
Include="$(ElevatorPackageDllPath)"
375+
Link="Assets\Utilities\getfilesiginforedist.dll"
376+
Condition="Exists('$(ElevatorPackageDllPath)')"
370377
>
371378
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
379+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
380+
<Visible>false</Visible>
381+
<Pack>false</Pack>
372382
</Content>
373383
<Content Update="Assets\Utilities\install_scoop.cmd">
374384
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>

0 commit comments

Comments
 (0)