luarenamer: init at 5.10.1

This commit is contained in:
nanoyaki
2026-01-15 10:29:46 +01:00
parent 605694c5d0
commit 3495148bb0
3 changed files with 116 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
[
{
"pname": "KeraLua",
"version": "1.4.5",
"hash": "sha256-O3ozcLw1IVc6ssc3SZfPIvp5s0+xLyLuTZw6qrjyEyE="
},
{
"pname": "Microsoft.Extensions.DependencyInjection",
"version": "8.0.0",
"hash": "sha256-+qIDR8hRzreCHNEDtUcPfVHQdurzWPo/mqviCH78+EQ="
},
{
"pname": "Microsoft.Extensions.DependencyInjection.Abstractions",
"version": "8.0.0",
"hash": "sha256-75KzEGWjbRELczJpCiJub+ltNUMMbz5A/1KQU+5dgP8="
},
{
"pname": "Microsoft.Extensions.Logging.Abstractions",
"version": "8.0.0",
"hash": "sha256-Jmddjeg8U5S+iBTwRlVAVLeIHxc4yrrNgqVMOB7EjM4="
},
{
"pname": "NLua",
"version": "1.7.5",
"hash": "sha256-1s8cc1RqKnfwafhxpBhOdkr8ZteNjt5fBN2sfLy4e5k="
},
{
"pname": "Shoko.Plugin.Abstractions",
"version": "5.2.0",
"hash": "sha256-tNLOeum4rc30OEWRiH1zTzLk5+1MfSEOfvkON1MU/SY="
}
]
+35
View File
@@ -0,0 +1,35 @@
diff --git a/LuaRenamer/LuaRenamer.csproj b/LuaRenamer/LuaRenamer.csproj
index c4f0508..b9e001c 100644
--- a/LuaRenamer/LuaRenamer.csproj
+++ b/LuaRenamer/LuaRenamer.csproj
@@ -33,30 +33,4 @@
</None>
</ItemGroup>
- <Target Name="GetGitAssemblyVersion" BeforeTargets="GetAssemblyVersion">
- <Exec Command="git describe --match &quot;v[0-9]*.[0-9]*.[0-9]*&quot; --tags --abbrev=7 --long --dirty --always" ConsoleToMsBuild="true">
- <Output TaskParameter="ConsoleOutput" PropertyName="GitInfo" />
- </Exec>
-
- <PropertyGroup Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(GitInfo)', '\d+\.\d+\.\d+'))">
- <Version>$([System.Text.RegularExpressions.Regex]::Match('$(GitInfo)', '\d+\.\d+\.\d+'))</Version>
- <InformationalVersion>$(GitInfo)</InformationalVersion>
- </PropertyGroup>
- </Target>
-
- <Target Name="PackageForRelease" AfterTargets="Publish">
- <PropertyGroup>
- <ZipDir>$(PublishDir)ZipDir/</ZipDir>
- <ZipDestination>$(PublishDir)../$(ProjectName)_$([MSBuild]::ValueOrDefault("$(RuntimeIdentifier)","Portable"))_$(GitInfo).zip</ZipDestination>
- </PropertyGroup>
-
- <ItemGroup>
- <ZipOut Include="$(PublishDir)**/*" />
- </ItemGroup>
-
- <Copy SourceFiles="@(ZipOut)" DestinationFolder="$(ZipDir)$(ProjectName)/%(RecursiveDir)" />
- <ZipDirectory SourceDirectory="$(ZipDir)" DestinationFile="$(ZipDestination)" Overwrite="true" />
- <RemoveDir Directories="$(ZipDir)" />
- </Target>
-
</Project>
+49
View File
@@ -0,0 +1,49 @@
# SPDX-FileCopyrightText: 2025-2026 Hana Kretzer <hanakretzer@nanoyaki.space>
#
# SPDX-License-Identifier: MIT
{
lib,
buildDotnetModule,
fetchFromGitHub,
dotnet-sdk_8,
dotnet-aspnetcore_8,
nix-update-script,
}:
buildDotnetModule (finalAttrs: {
pname = "luarenamer";
version = "5.10.1";
src = fetchFromGitHub {
owner = "Mik1ll";
repo = "LuaRenamer";
tag = "v${finalAttrs.version}";
hash = "sha256-ZN7o9q3APgc7vL+IRpk6Phd0Btpzyqdp53aoGp6sA8o=";
};
patches = [
./nozip.patch
];
dotnet-sdk = dotnet-sdk_8;
dotnet-runtime = dotnet-aspnetcore_8;
nugetDeps = ./deps.json;
projectFile = "LuaRenamer/LuaRenamer.csproj";
executables = [ ];
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/Mik1ll/LuaRenamer";
changelog = "https://github.com/Mik1ll/LuaRenamer/releases/tag/${finalAttrs.src.tag}";
description = "Plugin for Shoko that allows users to rename their collection using Lua";
license = [
lib.licenses.gpl3
lib.licenses.lgpl3
];
maintainers = with lib.maintainers; [ nanoyaki ];
inherit (dotnet-sdk_8.meta) platforms;
};
})