Skip to content

Commit 48211bd

Browse files
committed
chore: pack ready
1 parent c511f6e commit 48211bd

File tree

11 files changed

+111
-24
lines changed

11 files changed

+111
-24
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: build
2+
3+
on:
4+
release:
5+
types: [created]
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v4
19+
with:
20+
dotnet-version: 9.0.x
21+
22+
- name: Install dependencies
23+
run: dotnet restore src/UnlockerPatch/UnlockerPatch.csproj
24+
25+
- name: Build
26+
run: dotnet build src/UnlockerPatch/UnlockerPatch.csproj --configuration Release --no-restore

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 GenshinMatrix
3+
Copyright (c) 2024-2025 GenshinMatrix
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

UnlockerPatch.nuspec

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

package.cmd

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

src/UnlockerPatch/Logo.png

74.9 KB
Loading

src/UnlockerPatch/UnlockerPatch.csproj

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,55 @@
22

33
<PropertyGroup>
44
<TargetFramework>net8.0-windows</TargetFramework>
5+
<LangVersion>preview</LangVersion>
56
<ImplicitUsings>enable</ImplicitUsings>
67
<PublishAot>true</PublishAot>
78
<Nullable>enable</Nullable>
89
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
910
<PlatformTarget>x64</PlatformTarget>
11+
<Version>5.8.0</Version>
12+
<RootNamespace>$(AssemblyName)</RootNamespace>
13+
<PackageId>Fischless.UnlockerPatch</PackageId>
14+
<Authors>GenshinMatrix</Authors>
15+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
16+
<RepositoryUrl>https://github.com/GenshinMatrix/UnlockerPatch</RepositoryUrl>
17+
<PackageProjectUrl>https://github.com/GenshinMatrix/UnlockerPatch</PackageProjectUrl>
18+
<RepositoryType>git</RepositoryType>
19+
<PackageTags>ObservableCollections MVVM</PackageTags>
20+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
21+
<Description>Unlocker for Unity Patch</Description>
22+
<PackageIcon>Logo.png</PackageIcon>
23+
<PackageReadmeFile>README.md</PackageReadmeFile>
24+
<DebugType>portable</DebugType>
25+
<DebugSymbols>true</DebugSymbols>
26+
<AllowedOutputExtensionsInPackageBuildOutputFolder>.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
27+
<IncludeSymbols>true</IncludeSymbols>
28+
<EnableWindowsTargeting>true</EnableWindowsTargeting>
29+
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
30+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
1031
</PropertyGroup>
11-
32+
33+
<ItemGroup>
34+
<None Include=".\Logo.png">
35+
<Pack>True</Pack>
36+
<PackagePath>\</PackagePath>
37+
</None>
38+
<None Include="..\..\README.md">
39+
<Pack>True</Pack>
40+
<PackagePath>\</PackagePath>
41+
</None>
42+
<None Include="build\package.targets" Pack="True" PackagePath="\build\$(PackageId).targets" />
43+
<None Include="build\package.props" Pack="True" PackagePath="\build\$(PackageId).props" />
44+
<None Include="buildTransitive\package.targets" Pack="True" PackagePath="\buildTransitive\$(PackageId).targets" />
45+
<None Include="buildTransitive\package.props" Pack="True" PackagePath="\buildTransitive\$(PackageId).props" />
46+
<Content Include="..\UnlockerStub\x64\Release\UnlockerStub.dll">
47+
<Pack>True</Pack>
48+
<PackagePath>lib\net8.0-windows7.0\x64\UnlockerStub.dll</PackagePath>
49+
</Content>
50+
</ItemGroup>
51+
1252
<ItemGroup>
13-
<EmbeddedResource Include="Resources\UnlockerStub.dll" />
53+
<ProjectReference Include="..\UnlockerStub\UnlockerStub.vcxproj" />
1454
</ItemGroup>
1555

1656
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<PropertyGroup>
3+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
4+
<ShouldFixNuGetImportingBugForWpfProjects Condition=" '$(ShouldFixNuGetImportingBugForWpfProjects)' == '' ">True</ShouldFixNuGetImportingBugForWpfProjects>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<UnlockerPatchDllName>UnlockerPatch.dll</UnlockerPatchDllName>
4+
</PropertyGroup>
5+
6+
<Target Name="CopyUnlockerPatchDll" BeforeTargets="AfterCompile">
7+
<ItemGroup>
8+
<UnlockerPatchDll Include="$(MSBuildThisFileDirectory)..\lib\net8.0-windows7.0\x64\UnlockerPatch.dll" Condition="'$(PlatformTarget)' == 'x64'" />
9+
</ItemGroup>
10+
11+
<Copy SourceFiles="@(UnlockerPatchDll)" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="True" />
12+
</Target>
13+
</Project>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<PropertyGroup>
3+
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
4+
<ShouldFixNuGetImportingBugForWpfProjects Condition=" '$(ShouldFixNuGetImportingBugForWpfProjects)' == '' ">True</ShouldFixNuGetImportingBugForWpfProjects>
5+
</PropertyGroup>
6+
</Project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<PropertyGroup>
3+
<UnlockerPatchDllName>UnlockerPatch.dll</UnlockerPatchDllName>
4+
</PropertyGroup>
5+
6+
<Target Name="CopyUnlockerPatchDll" BeforeTargets="AfterCompile">
7+
<ItemGroup>
8+
<UnlockerPatchDll Include="$(MSBuildThisFileDirectory)..\lib\net8.0-windows7.0\x64\UnlockerPatch.dll" Condition="'$(PlatformTarget)' == 'x64'" />
9+
</ItemGroup>
10+
11+
<Copy SourceFiles="@(UnlockerPatchDll)" DestinationFolder="$(OutputPath)" SkipUnchangedFiles="True" />
12+
</Target>
13+
</Project>

0 commit comments

Comments
 (0)