Skip to content

Commit

Permalink
Archiver 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NaoUnderscore committed Sep 15, 2024
1 parent 76ecfdd commit 74cb69d
Show file tree
Hide file tree
Showing 13 changed files with 290 additions and 525 deletions.
13 changes: 0 additions & 13 deletions .idea/.idea.EXILED-DLL-Archiver/.idea/.gitignore

This file was deleted.

25 changes: 0 additions & 25 deletions EXILED-DLL-Archiver.sln

This file was deleted.

14 changes: 0 additions & 14 deletions EXILED-DLL-Archiver/App.config

This file was deleted.

261 changes: 0 additions & 261 deletions EXILED-DLL-Archiver/EXILED-DLL-Archiver.csproj

This file was deleted.

3 changes: 0 additions & 3 deletions EXILED-DLL-Archiver/FodyWeavers.xml

This file was deleted.

116 changes: 0 additions & 116 deletions EXILED-DLL-Archiver/Program.cs

This file was deleted.

36 changes: 0 additions & 36 deletions EXILED-DLL-Archiver/Properties/AssemblyInfo.cs

This file was deleted.

57 changes: 0 additions & 57 deletions EXILED-DLL-Archiver/packages.config

This file was deleted.

16 changes: 16 additions & 0 deletions Exiled.Archiver.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exiled.Archiver", "Exiled.Archiver\Exiled.Archiver.csproj", "{F06B686A-4A0F-497F-9A1B-5F249691B409}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F06B686A-4A0F-497F-9A1B-5F249691B409}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F06B686A-4A0F-497F-9A1B-5F249691B409}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F06B686A-4A0F-497F-9A1B-5F249691B409}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F06B686A-4A0F-497F-9A1B-5F249691B409}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
32 changes: 32 additions & 0 deletions Exiled.Archiver/Config.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#pragma warning disable CS8600
#pragma warning disable CS8604


namespace Exiled.Archiver
{
/// <summary>
/// Represents the configuration settings for the application.
/// </summary>
public class Config
{
/// <summary>
/// Gets or sets the paths configuration.
/// </summary>
public Paths Paths { get; set; }

/// <summary>
/// Gets or sets the list of plugin names for EXILED plugins.
/// </summary>
public List<string> Plugins { get; set; } = ["Exiled.CreditTags", "Exiled.CustomModules", "Exiled.Events", "Exiled.Permissions"];

/// <summary>
/// Gets or sets the list of dependency names for EXILED plugins.
/// </summary>
public List<string> PluginsDependencies { get; set; } = ["0Harmony", "System.ComponentModel.DataAnnotations", "Newtonsoft.Json"];

/// <summary>
/// Gets or sets the list of dependency names for NW plugins.
/// </summary>
public List<string> NWDependencies { get; set; } = ["Exiled.API", "SemanticVersioning", "Mono.Posix", "YamlDotNet"];
}
}
26 changes: 26 additions & 0 deletions Exiled.Archiver/Exiled.Archiver.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>
<InvariantGlobalization>true</InvariantGlobalization>
<Version>2.0.0</Version>
<Title>Exiled Archiver</Title>
<Authors>Exiled Team</Authors>
<Copyright>Exiled Team</Copyright>
<Company>Exiled Team</Company>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<FileVersion>2.0.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpZipLib" Version="1.4.2" />
</ItemGroup>

</Project>
38 changes: 38 additions & 0 deletions Exiled.Archiver/Paths.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#pragma warning disable CS8600
#pragma warning disable CS8604
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;

using ICSharpCode.SharpZipLib.GZip;
using ICSharpCode.SharpZipLib.Tar;

namespace Exiled.Archiver
{
/// <summary>
/// Contains paths configuration for plugin directories.
/// </summary>
public class Paths
{
/// <summary>
/// Gets or sets the path to the EXILED plugins directory.
/// </summary>
public string ExiledPluginsPath { get; set; }

/// <summary>
/// Gets or sets the path to the EXILED plugins dependencies directory.
/// </summary>
public string ExiledPluginsDepsPath { get; set; }

/// <summary>
/// Gets or sets the path to the NW plugins directory.
/// </summary>
public string NWPluginPath { get; set; }

/// <summary>
/// Gets or sets the path to the NW plugins dependencies directory.
/// </summary>
public string NWPluginDepsPath { get; set; }
}
}
Loading

0 comments on commit 74cb69d

Please sign in to comment.