Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
8LWXpg committed Dec 27, 2024
1 parent 4cc3827 commit f87dbdd
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 76 deletions.
125 changes: 63 additions & 62 deletions HackMD/HackMD.csproj
Original file line number Diff line number Diff line change
@@ -1,70 +1,71 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<useWPF>true</useWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Community.PowerToys.Run.Plugin.HackMD</AssemblyName>
<RootNamespace>Community.PowerToys.Run.Plugin.HackMD</RootNamespace>
<Version>$([System.Text.RegularExpressions.Regex]::Match([System.IO.File]::ReadAllText('.\plugin.json'), '"Version": "(\S+)"').Groups[1].Value)</Version>
<Platforms>x64;ARM64</Platforms>
<Title>PowerToys Run HackMD plugin</Title>
<Product>PowerToys Run HackMD plugin</Product>
<Authors>8LWXpg</Authors>
<RepositoryUrl>https://github.com/8LWXpg/PowerToysRun-HackMD</RepositoryUrl>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net9.0-windows</TargetFramework>
<useWPF>true</useWPF>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AssemblyName>Community.PowerToys.Run.Plugin.HackMD</AssemblyName>
<RootNamespace>Community.PowerToys.Run.Plugin.HackMD</RootNamespace>
<PluginJson>$([System.IO.File]::ReadAllText('$(MSBuildProjectDirectory)/plugin.json'))</PluginJson>
<Version>$([System.Text.RegularExpressions.Regex]::Match($(PluginJson), '"Version": "(\S+)"').Groups[1].Value)</Version>
<Platforms>x64;ARM64</Platforms>
<Title>PowerToys Run HackMD plugin</Title>
<Product>PowerToys Run HackMD plugin</Product>
<Authors>8LWXpg</Authors>
<RepositoryUrl>https://github.com/8LWXpg/PowerToysRun-HackMD</RepositoryUrl>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugSymbols>true</DebugSymbols>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<DebugSymbols>true</DebugSymbols>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
</PropertyGroup>

<ItemGroup>
<Reference Include="PowerToys.Common.UI">
<HintPath>.\Lib\PowerToys.Common.UI.dll</HintPath>
</Reference>
<Reference Include="PowerToys.ManagedCommon">
<HintPath>.\Lib\PowerToys.ManagedCommon.dll</HintPath>
</Reference>
<Reference Include="PowerToys.Settings.UI.Lib">
<HintPath>.\Lib\PowerToys.Settings.UI.Lib.dll</HintPath>
</Reference>
<Reference Include="Wox.Infrastructure">
<HintPath>.\Lib\Wox.Infrastructure.dll</HintPath>
</Reference>
<Reference Include="Wox.Plugin">
<HintPath>.\Lib\Wox.Plugin.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Reference Include="PowerToys.Common.UI">
<HintPath>.\Lib\PowerToys.Common.UI.dll</HintPath>
</Reference>
<Reference Include="PowerToys.ManagedCommon">
<HintPath>.\Lib\PowerToys.ManagedCommon.dll</HintPath>
</Reference>
<Reference Include="PowerToys.Settings.UI.Lib">
<HintPath>.\Lib\PowerToys.Settings.UI.Lib.dll</HintPath>
</Reference>
<Reference Include="Wox.Infrastructure">
<HintPath>.\Lib\Wox.Infrastructure.dll</HintPath>
</Reference>
<Reference Include="Wox.Plugin">
<HintPath>.\Lib\Wox.Plugin.dll</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<None Include="plugin.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<PackageReference Include="LazyCache" Version="2.4.0" />
<None Update="Images\*.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include="plugin.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<PackageReference Include="LazyCache" Version="2.4.0" />
<None Update="Images\*.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion HackMD/debug.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sudo {
$ptPath = 'C:\Program Files\PowerToys'
$projectName = 'HackMD'
$safeProjectName = 'HackMD'
$debug = '.\bin\x64\Debug\net8.0-windows'
$debug = '.\bin\x64\Debug\net9.0-windows'
$dest = "$env:LOCALAPPDATA\Microsoft\PowerToys\PowerToys Run\Plugins\$projectName"
$files = @(
"Community.PowerToys.Run.Plugin.$safeProjectName.deps.json",
Expand Down
24 changes: 12 additions & 12 deletions HackMD/plugin.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"ID": "7ce12aff470442158be4b7c5d02ef63e",
"ActionKeyword": "hm",
"Disabled": false,
"IsGlobal": false,
"Name": "HackMD",
"Author": "8LWXpg",
"Version": "1.1.0",
"Language": "csharp",
"Website": "https://github.com/8LWXpg/PowerToysRun-HackMD",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.HackMD.dll",
"IcoPathDark": "Images\\HackMD.dark.png",
"IcoPathLight": "Images\\HackMD.light.png"
"ID": "7ce12aff470442158be4b7c5d02ef63e",
"ActionKeyword": "hm",
"Disabled": false,
"IsGlobal": false,
"Name": "HackMD",
"Author": "8LWXpg",
"Version": "1.2.0",
"Language": "csharp",
"Website": "https://github.com/8LWXpg/PowerToysRun-HackMD",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.HackMD.dll",
"IcoPathDark": "Images\\HackMD.dark.png",
"IcoPathLight": "Images\\HackMD.light.png"
}
2 changes: 1 addition & 1 deletion HackMD/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ git push --tags

Remove-Item ./out/*.zip -Recurse -Force -ErrorAction Ignore
foreach ($arch in $archs) {
$releasePath = "./bin/$arch/Release/net8.0-windows"
$releasePath = "./bin/$arch/Release/net9.0-windows"

dotnet build -c Release /p:Platform=$arch

Expand Down

0 comments on commit f87dbdd

Please sign in to comment.