Skip to content

Commit

Permalink
Add support for PowerShell package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Dec 23, 2023
1 parent 6439d5c commit 013e8d0
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Package/Images/powershell_color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 33 additions & 2 deletions src/Package/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="9932MartCliment.WingetUIWidgets"
Publisher="CN=7054F010-7BE3-4163-B64E-D51DF58CF867"
Version="0.2.0.0" />
Version="0.3.0.0" />

<Properties>
<DisplayName>WingetUI Widgets (Preview)</DisplayName>
Expand All @@ -24,7 +24,7 @@
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
<!-- PackageDependency Name="Microsoft.WindowsAppRuntime.1.4" MinVersion="231008000" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" / -->
<PackageDependency Name="Microsoft.WindowsAppRuntime.1.4" MinVersion="1.4.0.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
</Dependencies>

<Resources>
Expand Down Expand Up @@ -278,6 +278,37 @@
</Definition>



<Definition Id="updates_powershell"
DisplayName="PowerShell updates"
Description="PowerShell modules that can be updated"
AllowMultiple="true">
<Capabilities>
<Capability>
<Size Name="medium" />
</Capability>
<Capability>
<Size Name="large" />
</Capability>
</Capabilities>
<ThemeResources>
<Icons>
<Icon Path="Images\powershell_color.png" />
</Icons>
<DarkMode>
<Screenshots>
<Screenshot Path="Images\WidgetCovers\powershell_dark.png" />
</Screenshots>
</DarkMode>
<LightMode>
<Screenshots>
<Screenshot Path="Images\WidgetCovers\powershell_light.png" />
</Screenshots>
</LightMode>
</ThemeResources>
</Definition>


</Definitions>
</WidgetProvider>
</uap3:Properties>
Expand Down
Binary file modified src/Package/WingetUIWidgetProviderPackage.assets.cache
Binary file not shown.
5 changes: 4 additions & 1 deletion src/Package/WingetUIWidgetProviderPackage.wapproj
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
<PropertyGroup>
<ProjectGuid>0cb7bf44-2619-4597-82c4-75f513345eba</ProjectGuid>
<TargetPlatformVersion>10.0.22621.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<TargetPlatformMinVersion>10.0.22000.0</TargetPlatformMinVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
<NoWarn>$(NoWarn);NU1702</NoWarn>
Expand Down Expand Up @@ -135,6 +135,7 @@
<Content Include="Images\LargeTile.scale-400.png" />
<Content Include="Images\node_color.png" />
<Content Include="Images\pip_color.png" />
<Content Include="Images\powershell_color.png" />
<Content Include="Images\scoop_color.png" />
<Content Include="Images\SmallTile.scale-100.png" />
<Content Include="Images\SmallTile.scale-125.png" />
Expand All @@ -156,6 +157,8 @@
<Content Include="Images\WidgetCovers\npm_light.png" />
<Content Include="Images\WidgetCovers\pip_dark.png" />
<Content Include="Images\WidgetCovers\pip_light.png" />
<Content Include="Images\WidgetCovers\powershell_dark.png" />
<Content Include="Images\WidgetCovers\powershell_light.png" />
<Content Include="Images\WidgetCovers\scoop_dark.png" />
<Content Include="Images\WidgetCovers\scoop_light.png" />
<Content Include="Images\WidgetCovers\winget_dark.png" />
Expand Down
4 changes: 4 additions & 0 deletions src/Package/WingetUIWidgetProviderPackage.wapproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<BadgeLogoSource>Y:\WingetUI-Store\media\icon.png</BadgeLogoSource>
<PackageLogoSource>Y:\WingetUI-Store\media\icon.png</PackageLogoSource>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<DebuggerFlavor>AppHostLocalDebugger</DebuggerFlavor>
<RemoteDebugEnabled>False</RemoteDebugEnabled>
</PropertyGroup>
</Project>
1 change: 1 addition & 0 deletions src/Templates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class Widgets
public const string Pip = "updates_pip";
public const string Npm = "updates_npm";
public const string Dotnet = "updates_dotnet";
public const string Powershell = "updates_powershell";
}

public class Templates
Expand Down
1 change: 1 addition & 0 deletions src/WingetUIConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ internal class WingetUIConnector
{Widgets.Pip, "Pip"},
{Widgets.Npm, "Npm"},
{Widgets.Dotnet, ".NET Tool"},
{Widgets.Powershell, "PowerShell"},
};

public WingetUIConnector()
Expand Down
16 changes: 16 additions & 0 deletions src/WingetUIWidgetProvider - Backup.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x64</Platforms>
<SignAssembly>False</SignAssembly>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
</ItemGroup>

</Project>
4 changes: 3 additions & 1 deletion src/WingetUIWidgetProvider.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<Platforms>AnyCPU;x64</Platforms>
<SignAssembly>False</SignAssembly>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231008000" />
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/WingetUIWidgetProvider.sln
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ Global
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|ARM.Build.0 = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|ARM64.ActiveCfg = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|ARM64.Build.0 = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x64.ActiveCfg = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x64.Build.0 = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x64.ActiveCfg = Release|x64
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x64.Build.0 = Release|x64
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x86.ActiveCfg = Release|Any CPU
{D8495D3C-3169-4A08-B0C4-F5EEE5117C0E}.Release|x86.Build.0 = Release|Any CPU
{0CB7BF44-2619-4597-82C4-75F513345EBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Expand Down

0 comments on commit 013e8d0

Please sign in to comment.