Skip to content

Commit

Permalink
Add tags and copy readme file when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Delsin-Yu committed May 18, 2024
1 parent a513beb commit 3dbfc07
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ApplicationPublisher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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\"";
Expand All @@ -14,14 +16,15 @@
Console.WriteLine(
$"""
Publishing version: {programVersion},
Readme Path: {readmePath},
Project Path: {projectPath},
Publish Path: {publishPath},
Godot Path: {args[0]}
"""
);

Directory.CreateDirectory(publishDir);

File.Copy(readmePath, Path.Combine(publishDir, readmeFileName));

var processStartInfo = new ProcessStartInfo
{
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!-- markdownlint-disable MD010 -->
# 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
Expand All @@ -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.
Expand Down

0 comments on commit 3dbfc07

Please sign in to comment.