diff --git a/Content.Packaging/ClientPackaging.cs b/Content.Packaging/ClientPackaging.cs index 4651164d7f0..0aafab5ef58 100644 --- a/Content.Packaging/ClientPackaging.cs +++ b/Content.Packaging/ClientPackaging.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using System.IO.Compression; using Robust.Packaging; using Robust.Packaging.AssetProcessing; @@ -10,7 +10,6 @@ namespace Content.Packaging; public static class ClientPackaging { - private static readonly bool UseSecrets = File.Exists(Path.Combine("Secrets", "CorvaxSecrets.sln")); // Corvax-Secrets /// /// Be advised this can be called from server packaging during a HybridACZ build. /// @@ -35,24 +34,6 @@ await ProcessHelpers.RunCheck(new ProcessStartInfo "/m" } }); - if (UseSecrets) - { - await ProcessHelpers.RunCheck(new ProcessStartInfo - { - FileName = "dotnet", - ArgumentList = - { - "build", - Path.Combine("Secrets","Content.Corvax.Client", "Content.Corvax.Client.csproj"), - "-c", "Release", - "--nologo", - "/v:m", - "/t:Rebuild", - "/p:FullRelease=true", - "/m" - } - }); - } } logger.Info("Packaging client..."); @@ -84,40 +65,15 @@ public static async Task WriteResources( var inputPass = graph.Input; - // Corvax-Secrets-Start: Add Corvax interfaces to Magic ACZ - var assemblies = new List { "Content.Client", "Content.Shared", "Content.Shared.Database", "Content.Corvax.Interfaces.Client", "Content.Corvax.Interfaces.Shared" }; - if (UseSecrets) - assemblies.AddRange(new[] { "Content.Corvax.Shared", "Content.Corvax.Client" }); - // Corvax-Secrets-End - await RobustSharedPackaging.WriteContentAssemblies( inputPass, contentDir, "Content.Client", - assemblies, // Corvax-Secrets + new[] { "Content.Client", "Content.Shared", "Content.Shared.Database" }, cancel: cancel); - await WriteClientResources(contentDir, pass, cancel); // Corvax-Secrets: Support content resource ignore to ignore server-only prototypes + await RobustClientPackaging.WriteClientResources(contentDir, pass, cancel); inputPass.InjectFinished(); } - - // Corvax-Secrets-Start - public static IReadOnlySet ContentClientIgnoredResources { get; } = new HashSet - { - "CorvaxSecretsServer" - }; - - private static async Task WriteClientResources( - string contentDir, - AssetPass pass, - CancellationToken cancel = default) - { - var ignoreSet = RobustClientPackaging.ClientIgnoredResources - .Union(RobustSharedPackaging.SharedIgnoredResources) - .Union(ContentClientIgnoredResources).ToHashSet(); - - await RobustSharedPackaging.DoResourceCopy(Path.Combine(contentDir, "Resources"), pass, ignoreSet, cancel: cancel); - } - // Corvax-Secrets-End } diff --git a/Content.Shared/Administration/Events/PanicBunkerChangedEvent.cs b/Content.Shared/Administration/Events/PanicBunkerChangedEvent.cs index 372bb4fb78f..f545f096e33 100644 --- a/Content.Shared/Administration/Events/PanicBunkerChangedEvent.cs +++ b/Content.Shared/Administration/Events/PanicBunkerChangedEvent.cs @@ -12,7 +12,7 @@ public sealed class PanicBunkerStatus public bool ShowReason; public int MinAccountAgeMinutes; public int MinOverallMinutes; - public bool DenyVpn; // Corvax-VPNGuard + //public bool DenyVpn; // Corvax-VPNGuard } [Serializable, NetSerializable] diff --git a/Resources/ConfigPresets/Corvax/athara.toml b/Resources/ConfigPresets/Corvax/athara.toml index 836b8501ae9..fbef948a76a 100644 --- a/Resources/ConfigPresets/Corvax/athara.toml +++ b/Resources/ConfigPresets/Corvax/athara.toml @@ -11,7 +11,7 @@ enabled = true show_reason = true min_account_age = 0 min_overall_minutes = 0 -deny_vpn = true +#deny_vpn = true #FIX ADT enable_without_admins = true disable_with_admins = true diff --git a/Resources/ConfigPresets/Corvax/elysium.toml b/Resources/ConfigPresets/Corvax/elysium.toml index 0d72f98b82a..8d34b73c504 100644 --- a/Resources/ConfigPresets/Corvax/elysium.toml +++ b/Resources/ConfigPresets/Corvax/elysium.toml @@ -11,7 +11,7 @@ enabled = true show_reason = true min_account_age = 0 min_overall_minutes = 0 -deny_vpn = true +#deny_vpn = true #ADT Fix enable_without_admins = true disable_with_admins = true diff --git a/Resources/ConfigPresets/Corvax/main.toml b/Resources/ConfigPresets/Corvax/main.toml index 7241bcde3d5..891726a7a49 100644 --- a/Resources/ConfigPresets/Corvax/main.toml +++ b/Resources/ConfigPresets/Corvax/main.toml @@ -11,7 +11,7 @@ enabled = true show_reason = true min_account_age = 0 min_overall_minutes = 0 -deny_vpn = true +#deny_vpn = true # Fix ADT enable_without_admins = true disable_with_admins = true diff --git a/Resources/ConfigPresets/Corvax/nebula.toml b/Resources/ConfigPresets/Corvax/nebula.toml index 9051e4cc3a6..bad6a9d9a6a 100644 --- a/Resources/ConfigPresets/Corvax/nebula.toml +++ b/Resources/ConfigPresets/Corvax/nebula.toml @@ -11,7 +11,7 @@ enabled = true show_reason = true min_account_age = 0 min_overall_minutes = 0 -deny_vpn = true +#deny_vpn = true # FIX ADT enable_without_admins = true disable_with_admins = true diff --git a/Resources/ConfigPresets/Corvax/solaris.toml b/Resources/ConfigPresets/Corvax/solaris.toml index cbd31f7f664..424aa4a078e 100644 --- a/Resources/ConfigPresets/Corvax/solaris.toml +++ b/Resources/ConfigPresets/Corvax/solaris.toml @@ -11,7 +11,7 @@ enabled = true show_reason = true min_account_age = 0 min_overall_minutes = 0 -deny_vpn = true +#deny_vpn = true #ADT Fix enable_without_admins = true disable_with_admins = true