From 3dbfc07ada8e9b342b81c41b38b8f1aa1f425780 Mon Sep 17 00:00:00 2001 From: DE-YU Date: Sat, 18 May 2024 20:25:21 +0800 Subject: [PATCH] Add tags and copy readme file when publishing --- ApplicationPublisher/Program.cs | 5 ++++- README.md | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ApplicationPublisher/Program.cs b/ApplicationPublisher/Program.cs index 68beb5d..3226fcb 100644 --- a/ApplicationPublisher/Program.cs +++ b/ApplicationPublisher/Program.cs @@ -6,6 +6,8 @@ var repoDir = Path.Combine(Environment.CurrentDirectory, "..", "..", "..", ".."); +const string readmeFileName = "README.md"; +var readmePath = Path.GetFullPath(Path.Combine(repoDir, readmeFileName)); var projectPath = Path.GetFullPath(Path.Combine(repoDir, "JsonPowerInspector")); var publishDir = Path.GetFullPath(Path.Combine(repoDir, "Build", $"Json Power Inspector v{programVersion}")); var publishPath = $"../Build/\"Json Power Inspector v{programVersion}\"/\"Json Power Inspector.exe\""; @@ -14,6 +16,7 @@ Console.WriteLine( $""" Publishing version: {programVersion}, + Readme Path: {readmePath}, Project Path: {projectPath}, Publish Path: {publishPath}, Godot Path: {args[0]} @@ -21,7 +24,7 @@ ); Directory.CreateDirectory(publishDir); - +File.Copy(readmePath, Path.Combine(publishDir, readmeFileName)); var processStartInfo = new ProcessStartInfo { diff --git a/README.md b/README.md index 5b0736c..a80b1e9 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ # Json Power Inspector for Typed Programing Languauge +[![GitHub Release](https://img.shields.io/github/v/release/Delsin-Yu/Json-Power-Inspector)](https://github.com/Delsin-Yu/Json-Power-Inspector/releases/latest) [![Stars](https://img.shields.io/github/stars/Delsin-Yu/Json-Power-Inspector?color=brightgreen)](https://github.com/Delsin-Yu/Json-Power-Inspector/stargazers) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/Delsin-Yu/Json-Power-Inspector/blob/main/LICENSE) + Json Power Inspector is a JSON editor that offers advanced GUI editing experience based on the serialization information created from a typed language. ## Using the application @@ -20,6 +22,8 @@ We provide a serializer Nuget package for `C#/dotnet8` developers, you are more ### Documentation for `JsonPowerInspector.Template` Nuget Package Users +[![NuGet Version](https://img.shields.io/nuget/v/JsonPowerInspector.Template)](https://www.nuget.org/packages/JsonPowerInspector.Template) ![NuGet Downloads](https://img.shields.io/nuget/dt/JsonPowerInspector.Template) + #### Usage - Install the [JsonPowerInspector.Template](https://www.nuget.org/packages/JsonPowerInspector.Template) Nuget package into the C# project that contains the data structure you wish to work with, for demonstration purpose, let's use this `MyItem` type as an example.