Rename AzuresPackager to BrikPackager
Renamed all project files, namespaces, classes, and references from AzuresPackager to BrikPackager for consistency and rebranding. Updated CLI usage messages and publish script to reflect the new name.
This commit is contained in:
parent
72f9f3292d
commit
a1609582da
@ -6,7 +6,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
<PackageId>AzuresPackager</PackageId>
|
<PackageId>BrikPackager</PackageId>
|
||||||
<Version>0.0.2</Version>
|
<Version>0.0.2</Version>
|
||||||
<Authors>Azures04</Authors>
|
<Authors>Azures04</Authors>
|
||||||
|
|
||||||
18
Cli.cs
18
Cli.cs
@ -1,4 +1,4 @@
|
|||||||
namespace AzuresPackager.Cli;
|
namespace BrikPackager.Cli;
|
||||||
|
|
||||||
public class Program {
|
public class Program {
|
||||||
public static void Main(string[] args) {
|
public static void Main(string[] args) {
|
||||||
@ -12,7 +12,7 @@ public class Program {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!arguments.ContainsKey("--action") || !arguments.ContainsKey("--input") || !arguments.ContainsKey("--output") || !arguments.ContainsKey("--key")) {
|
if (!arguments.ContainsKey("--action") || !arguments.ContainsKey("--input") || !arguments.ContainsKey("--output") || !arguments.ContainsKey("--key")) {
|
||||||
Console.WriteLine("Usage: AzuresPackager.Cli --action <[pack/unpack]> --input <inputPath> --output <outputPath> --key <byte>");
|
Console.WriteLine("Usage: BrikPackager.Cli --action <[pack/unpack]> --input <inputPath> --output <outputPath> --key <byte>");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -27,24 +27,24 @@ public class Program {
|
|||||||
switch (arguments["--action"]) {
|
switch (arguments["--action"]) {
|
||||||
case "pack":
|
case "pack":
|
||||||
try {
|
try {
|
||||||
Console.WriteLine($"[AzuresPackager] Packaging : {source} -> {output} (Key: {key})");
|
Console.WriteLine($"[BrikPackager] Packaging : {source} -> {output} (Key: {key})");
|
||||||
Packager.Pack(source, output, key);
|
Packager.Pack(source, output, key);
|
||||||
Console.WriteLine("[AzuresPackager] Success");
|
Console.WriteLine("[BrikPackager] Success");
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Console.WriteLine($"[AzuresPackager] Error : {ex.Message}");
|
Console.WriteLine($"[BrikPackager] Error : {ex.Message}");
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "unpack":
|
case "unpack":
|
||||||
try {
|
try {
|
||||||
Console.WriteLine($"[AzuresPackager] Unpackaging : {source} -> {output} (Key: {key})");
|
Console.WriteLine($"[BrikPackager] Unpackaging : {source} -> {output} (Key: {key})");
|
||||||
AzuresPackage azp = new AzuresPackage(source, key);
|
BrikPackage azp = new BrikPackage(source, key);
|
||||||
azp.Unpack(output);
|
azp.Unpack(output);
|
||||||
Console.WriteLine("[AzuresPackager] Success");
|
Console.WriteLine("[BrikPackager] Success");
|
||||||
Environment.Exit(0);
|
Environment.Exit(0);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
Console.WriteLine($"[AzuresPackager] Error : {ex.Message}");
|
Console.WriteLine($"[BrikPackager] Error : {ex.Message}");
|
||||||
Environment.Exit(1);
|
Environment.Exit(1);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -1,15 +1,12 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using SharpCompress.Archives;
|
|
||||||
using SharpCompress.Common;
|
|
||||||
using SharpCompress.Writers;
|
|
||||||
|
|
||||||
namespace AzuresPackager;
|
namespace BrikPackager;
|
||||||
|
|
||||||
public class AzuresPackage : IDisposable {
|
public class BrikPackage : IDisposable {
|
||||||
private readonly byte[] _data;
|
private readonly byte[] _data;
|
||||||
private readonly byte _key;
|
private readonly byte _key;
|
||||||
|
|
||||||
public AzuresPackage(string filePath, byte key) {
|
public BrikPackage(string filePath, byte key) {
|
||||||
_key = key;
|
_key = key;
|
||||||
_data = File.ReadAllBytes(filePath);
|
_data = File.ReadAllBytes(filePath);
|
||||||
Decode();
|
Decode();
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
clear
|
Clear-Host
|
||||||
$version = "0.0.2"
|
$version = "0.0.2"
|
||||||
|
|
||||||
Write-Host "`r`n[Task 1/4] Cleaning project..." -ForegroundColor Magenta
|
Write-Host "`r`n[Task 1/4] Cleaning project..." -ForegroundColor Magenta
|
||||||
@ -14,4 +14,4 @@ Write-Host "`r`n[Task 4/4] Packing project..." -ForegroundColor Magenta
|
|||||||
dotnet pack --version $version
|
dotnet pack --version $version
|
||||||
|
|
||||||
Write-Host "`r`n[Task 5/4] Publishing project..." -ForegroundColor Magenta
|
Write-Host "`r`n[Task 5/4] Publishing project..." -ForegroundColor Magenta
|
||||||
dotnet nuget push --source AzuresGitea "bin\Debug\AzuresPackager.$version.nupkg" --skip-duplicate
|
dotnet nuget push --source AzuresGitea "bin\Debug\BrikPackager.$version.nupkg" --skip-duplicate
|
||||||
Loading…
x
Reference in New Issue
Block a user