Skip to content

Commit 7fb5b23

Browse files
committed
support 6pack dotnet tool
1 parent 515f0b5 commit 7fb5b23

File tree

6 files changed

+32
-61
lines changed

6 files changed

+32
-61
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: dotnet test -c Release --no-build --verbosity normal
3232

3333
- name: publish to local
34-
run: dotnet publish src/DotFastLZ.Packaging.Tools -c Release --framework net8.0 --no-restore --no-self-contained --output working-temp
34+
run: dotnet publish src/6pack -c Release --framework net8.0 --no-restore --no-self-contained --output working-temp
3535

3636
- name: version
3737
id: version
@@ -46,7 +46,7 @@ jobs:
4646
- name: Zip
4747
run: |
4848
cd working-temp
49-
zip -r ../DotFastLZ.Packaging.Tools-${{ steps.version.outputs.version}}.zip ./
49+
zip -r ../6pack-${{ steps.version.outputs.version}}.zip ./
5050
if: success()
5151

5252
- uses: release-drafter/release-drafter@master
@@ -60,7 +60,7 @@ jobs:
6060
uses: softprops/action-gh-release@v1
6161
with:
6262
files: |
63-
DotFastLZ.Packaging.Tools-${{ steps.version.outputs.version}}.zip
63+
6pack-${{ steps.version.outputs.version}}.zip
6464
env:
6565
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666

DotFastLZ.sln

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Compression", "sr
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Packaging", "src\DotFastLZ.Packaging\DotFastLZ.Packaging.csproj", "{95E2DEFC-180E-4EAC-84CD-583DE1AAD587}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Packaging.Tools", "src\DotFastLZ.Packaging.Tools\DotFastLZ.Packaging.Tools.csproj", "{A843203D-30DB-4CA4-9F6D-F03E9F1038C1}"
13-
EndProject
1412
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{87EE9A81-1074-4466-AF83-6A059185A8E9}"
1513
EndProject
1614
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Compression.Tests", "test\DotFastLZ.Compression.Tests\DotFastLZ.Compression.Tests.csproj", "{FD482722-B4F3-4D05-8AAA-8EA228888C05}"
@@ -19,6 +17,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Packaging.Tests",
1917
EndProject
2018
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotFastLZ.Resource", "src\DotFastLZ.Resource\DotFastLZ.Resource.csproj", "{A64E2087-E40B-45C0-9084-F00A213D8FBC}"
2119
EndProject
20+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "6pack", "src\6pack\6pack.csproj", "{73921309-6ED4-4099-A434-680FF5AF2D94}"
21+
EndProject
2222
Global
2323
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2424
Debug|Any CPU = Debug|Any CPU
@@ -36,10 +36,6 @@ Global
3636
{FD482722-B4F3-4D05-8AAA-8EA228888C05}.Debug|Any CPU.Build.0 = Debug|Any CPU
3737
{FD482722-B4F3-4D05-8AAA-8EA228888C05}.Release|Any CPU.ActiveCfg = Release|Any CPU
3838
{FD482722-B4F3-4D05-8AAA-8EA228888C05}.Release|Any CPU.Build.0 = Release|Any CPU
39-
{A843203D-30DB-4CA4-9F6D-F03E9F1038C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
40-
{A843203D-30DB-4CA4-9F6D-F03E9F1038C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
41-
{A843203D-30DB-4CA4-9F6D-F03E9F1038C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
42-
{A843203D-30DB-4CA4-9F6D-F03E9F1038C1}.Release|Any CPU.Build.0 = Release|Any CPU
4339
{95E2DEFC-180E-4EAC-84CD-583DE1AAD587}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
4440
{95E2DEFC-180E-4EAC-84CD-583DE1AAD587}.Debug|Any CPU.Build.0 = Debug|Any CPU
4541
{95E2DEFC-180E-4EAC-84CD-583DE1AAD587}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -52,13 +48,17 @@ Global
5248
{A64E2087-E40B-45C0-9084-F00A213D8FBC}.Debug|Any CPU.Build.0 = Debug|Any CPU
5349
{A64E2087-E40B-45C0-9084-F00A213D8FBC}.Release|Any CPU.ActiveCfg = Release|Any CPU
5450
{A64E2087-E40B-45C0-9084-F00A213D8FBC}.Release|Any CPU.Build.0 = Release|Any CPU
51+
{73921309-6ED4-4099-A434-680FF5AF2D94}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{73921309-6ED4-4099-A434-680FF5AF2D94}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{73921309-6ED4-4099-A434-680FF5AF2D94}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{73921309-6ED4-4099-A434-680FF5AF2D94}.Release|Any CPU.Build.0 = Release|Any CPU
5555
EndGlobalSection
5656
GlobalSection(NestedProjects) = preSolution
5757
{C20491BC-E472-4F09-B29C-DD7BF853C1C4} = {642F4CE7-0431-49D4-9BDE-E663C13C7792}
5858
{FD482722-B4F3-4D05-8AAA-8EA228888C05} = {87EE9A81-1074-4466-AF83-6A059185A8E9}
59-
{A843203D-30DB-4CA4-9F6D-F03E9F1038C1} = {642F4CE7-0431-49D4-9BDE-E663C13C7792}
6059
{95E2DEFC-180E-4EAC-84CD-583DE1AAD587} = {642F4CE7-0431-49D4-9BDE-E663C13C7792}
6160
{15F8F8E3-2D89-4487-AAFB-3B617470342E} = {87EE9A81-1074-4466-AF83-6A059185A8E9}
6261
{A64E2087-E40B-45C0-9084-F00A213D8FBC} = {642F4CE7-0431-49D4-9BDE-E663C13C7792}
62+
{73921309-6ED4-4099-A434-680FF5AF2D94} = {642F4CE7-0431-49D4-9BDE-E663C13C7792}
6363
EndGlobalSection
6464
EndGlobal

README.md

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
<h1 align="center">DotFastLZ</h1>
2-
<p align="center"><i>
3-
DotFastLZ is C# fastlz, a port of <a href="https://github.com/ariya/FastLZ">ariya/FastLZ</a><br/>
4-
DotFastLZ can be used in Unity3D, C# server, network packet, game data
5-
</i></p>
1+
# DotFastLZ
2+
*DotFastLZ is C# fastlz, a port of [ariya/FastLZ](https://github.com/ariya/FastLZ)*
3+
*DotFastLZ can be used in Unity3D, C# server, network packet, game data*
64

75
---
8-
<p align="center">
9-
<img alt="![GitHub License]" src="https://img.shields.io/github/license/ikpil/DotFastLZ?style=for-the-badge">
10-
<img alt="Languages" src="https://img.shields.io/github/languages/top/ikpil/DotFastLZ?style=for-the-badge">
11-
<img alt="GitHub repo size" src="https://img.shields.io/github/repo-size/ikpil/DotFastLZ?style=for-the-badge">
12-
<a href="https://github.com/ikpil/DotFastLZ"><img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/ikpil/DotFastLZ?style=for-the-badge&logo=github"></a>
13-
<a href="https://github.com/ikpil/DotFastLZ/actions/workflows/dotnet.yml"><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/ikpil/DotFastLZ/dotnet.yml?style=for-the-badge&logo=github"></a>
14-
<a href="https://github.com/ikpil/DotFastLZ/actions/workflows/codeql.yml"><img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/ikpil/DotFastLZ/codeql.yml?style=for-the-badge&logo=github&label=CODEQL"></a>
15-
<a href="https://github.com/ikpil/DotFastLZ/commits"><img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/ikpil/DotFastLZ?style=for-the-badge&logo=github"></a>
16-
<a href="https://github.com/ikpil/DotFastLZ/issues"><img alt="GitHub issues" src="https://img.shields.io/github/issues-raw/ikpil/DotFastLZ?style=for-the-badge&logo=github&color=44cc11"></a>
17-
<a href="https://github.com/ikpil/DotFastLZ/issues"><img alt="GitHub closed issues" src="https://img.shields.io/github/issues-closed-raw/ikpil/DotFastLZ?style=for-the-badge&logo=github&color=a371f7"></a>
18-
<a href="https://www.nuget.org/packages/DotFastLZ.Compression"><img alt="NuGet Version" src="https://img.shields.io/nuget/vpre/DotFastLZ.Compression?style=for-the-badge&logo=nuget"></a>
19-
<a href="https://www.nuget.org/packages/DotFastLZ.Compression"><img alt="NuGet Downloads" src="https://img.shields.io/nuget/dt/DotFastLZ.Compression?style=for-the-badge&logo=nuget"></a>
20-
<a href="https://visitorbadge.io/status?path=ikpil%2FDotFastLZ"><img alt="Visitors" src="https://api.visitorbadge.io/api/daily?path=ikpil%2FDotFastLZ&countColor=%23263759"></a>
21-
<a href="https://github.com/sponsors/ikpil"><img alt="GitHub Sponsors" src="https://img.shields.io/github/sponsors/ikpil?style=for-the-badge&logo=GitHub-Sponsors&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fikpil"></a>
22-
</p>
6+
7+
![GitHub License](https://img.shields.io/github/license/ikpil/DotFastLZ?style=for-the-badge)
8+
![Languages](https://img.shields.io/github/languages/top/ikpil/DotFastLZ?style=for-the-badge)
9+
![GitHub repo size](https://img.shields.io/github/repo-size/ikpil/DotFastLZ?style=for-the-badge)
10+
[![GitHub Repo stars](https://img.shields.io/github/stars/ikpil/DotFastLZ?style=for-the-badge&logo=github)](https://github.com/ikpil/DotFastLZ)
11+
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ikpil/DotFastLZ/dotnet.yml?style=for-the-badge&logo=github)](https://github.com/ikpil/DotFastLZ/actions/workflows/dotnet.yml)
12+
[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ikpil/DotFastLZ/codeql.yml?style=for-the-badge&logo=github&label=CODEQL)](https://github.com/ikpil/DotFastLZ/actions/workflows/codeql.yml)
13+
[![GitHub commit activity](https://img.shields.io/github/commit-activity/m/ikpil/DotFastLZ?style=for-the-badge&logo=github)](https://github.com/ikpil/DotFastLZ/commits)
14+
[![GitHub issues](https://img.shields.io/github/issues-raw/ikpil/DotFastLZ?style=for-the-badge&logo=github&color=44cc11)](https://github.com/ikpil/DotFastLZ/issues)
15+
[![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/ikpil/DotFastLZ?style=for-the-badge&logo=github&color=a371f7)](https://github.com/ikpil/DotFastLZ/issues)
16+
[![NuGet Version](https://img.shields.io/nuget/vpre/DotFastLZ.Compression?style=for-the-badge&logo=nuget)](https://www.nuget.org/packages/DotFastLZ.Compression)
17+
[![NuGet Downloads](https://img.shields.io/nuget/dt/DotFastLZ.Compression?style=for-the-badge&logo=nuget)](https://www.nuget.org/packages/DotFastLZ.Compression)
18+
[![Visitors](https://api.visitorbadge.io/api/daily?path=ikpil%2FDotFastLZ&countColor=%23263759)](https://visitorbadge.io/status?path=ikpil%2FDotFastLZ)
19+
[![GitHub Sponsors](https://img.shields.io/github/sponsors/ikpil?style=for-the-badge&logo=GitHub-Sponsors&link=https%3A%2F%2Fgithub.com%2Fsponsors%2Fikpil)](https://github.com/sponsors/ikpil)
2320

2421
---
2522

@@ -46,7 +43,7 @@ for (int level = 1; level <= 2; ++level)
4643
}
4744
```
4845

49-
## Usage: DotFastLZ.Compression.Packaging ##
46+
## Usage: DotFastLZ.Compression.Packaging
5047
```csharp
5148
const string targetFileName = "soruce.txt";
5249
string packagingFileName = targetFileName + ".fastlz";
@@ -56,7 +53,7 @@ SixPack.PackFile(2, targetFileName, packagingFileName, Console.Write);
5653
SixPack.UnpackFile(packagingFileName, Console.Write);
5754
```
5855

59-
## Usage: DotFastLZ.Packaging.Tools ##
56+
## Usage: 6pack
6057
```shell
6158
$ dotnet tool install --global 6pack
6259
$ dotnet tool 6pack --help

src/DotFastLZ.Packaging.Tools/DotFastLZ.Packaging.Tools.csproj renamed to src/6pack/6pack.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
55
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
66
<AssemblyName>6pack</AssemblyName>
77
<ToolCommandName>6pack</ToolCommandName>
88
<PackAsTool>true</PackAsTool>
9-
<PackageId>DotFastLZ.Packaging.Tools</PackageId>
9+
<PackageId>6pack</PackageId>
1010
<PackageReadmeFile>README.md</PackageReadmeFile>
1111
<Authors>ikpil</Authors>
1212
<Description>DotFastLZ - a port of FastLZ, Small and portable byte-aligned LZ77 compression for C#, Unity3D</Description>
Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,8 @@
1-
/*
2-
6PACK - file compressor using FastLZ (lightning-fast compression library)
3-
Copyright (C) 2007-2020 Ariya Hidayat <[email protected]>
4-
Copyright (C) 2023 Choi Ikpil <[email protected]> https://github.com/ikpil/DotFastLz
5-
6-
Permission is hereby granted, free of charge, to any person obtaining a copy
7-
of this software and associated documentation files (the "Software"), to deal
8-
in the Software without restriction, including without limitation the rights
9-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
copies of the Software, and to permit persons to whom the Software is
11-
furnished to do so, subject to the following conditions:
12-
13-
The above copyright notice and this permission notice shall be included in
14-
all copies or substantial portions of the Software.
15-
16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22-
THE SOFTWARE.
23-
*/
24-
25-
using System;
1+
using System;
262
using System.IO;
273
using DotFastLZ.Compression;
284
using DotFastLZ.Packaging;
295

30-
namespace DotFastLZ.Packaging.Tools;
31-
326
public static class Program
337
{
348
public static int Main(string[] args)
File renamed without changes.

0 commit comments

Comments
 (0)