From 44dd0805e2adbc95a4e6841b69bffeb12ccdeff2 Mon Sep 17 00:00:00 2001
From: zznty <94796179+zznty@users.noreply.github.com>
Date: Sun, 9 Oct 2022 17:54:36 +0700
Subject: [PATCH] get rid of old ci files
---
CHANGELOG.md | 33 ---
Jenkins/get-version.ps1 | 5 -
Jenkins/jenkins-grab-se.ps1 | 26 ---
Jenkinsfile | 55 -----
Setup (run before opening solution).bat | 13 --
Torch.Client.Tests/Properties/AssemblyInfo.cs | 17 --
Torch.Client.Tests/Torch.Client.Tests.csproj | 51 -----
.../TorchClientReflectionTest.cs | 94 ---------
Torch.Client.Tests/app.config | 11 -
.../Manager/MultiplayerManagerClient.cs | 32 ---
.../Manager/MultiplayerManagerLobby.cs | 95 ---------
Torch.Client/Program.cs | 194 ------------------
Torch.Client/Properties/AssemblyInfo.cs | 17 --
Torch.Client/Properties/Resources.Designer.cs | 63 ------
Torch.Client/Properties/Resources.resx | 117 -----------
Torch.Client/Properties/Settings.Designer.cs | 26 ---
Torch.Client/Properties/Settings.settings | 7 -
Torch.Client/Torch.Client.csproj | 122 -----------
Torch.Client/TorchClient.cs | 92 ---------
Torch.Client/TorchClientConfig.cs | 34 ---
Torch.Client/TorchConsoleScreen.cs | 63 ------
Torch.Client/TorchSettingsScreen.cs | 38 ----
Torch.Client/UI/TorchMainMenuScreen.cs | 56 -----
Torch.Client/UI/TorchNavScreen.cs | 49 -----
Torch.Client/UI/TorchSettingsScreen.cs | 25 ---
Torch.Client/app.config | 11 -
Torch.Client/torchicon.ico | Bin 16958 -> 0 bytes
Torch.sln | 1 -
TransformOnBuild.targets | 9 -
appveyor.yml | 65 ------
30 files changed, 1421 deletions(-)
delete mode 100644 CHANGELOG.md
delete mode 100644 Jenkins/get-version.ps1
delete mode 100644 Jenkins/jenkins-grab-se.ps1
delete mode 100644 Jenkinsfile
delete mode 100644 Setup (run before opening solution).bat
delete mode 100644 Torch.Client.Tests/Properties/AssemblyInfo.cs
delete mode 100644 Torch.Client.Tests/Torch.Client.Tests.csproj
delete mode 100644 Torch.Client.Tests/TorchClientReflectionTest.cs
delete mode 100644 Torch.Client.Tests/app.config
delete mode 100644 Torch.Client/Manager/MultiplayerManagerClient.cs
delete mode 100644 Torch.Client/Manager/MultiplayerManagerLobby.cs
delete mode 100644 Torch.Client/Program.cs
delete mode 100644 Torch.Client/Properties/AssemblyInfo.cs
delete mode 100644 Torch.Client/Properties/Resources.Designer.cs
delete mode 100644 Torch.Client/Properties/Resources.resx
delete mode 100644 Torch.Client/Properties/Settings.Designer.cs
delete mode 100644 Torch.Client/Properties/Settings.settings
delete mode 100644 Torch.Client/Torch.Client.csproj
delete mode 100644 Torch.Client/TorchClient.cs
delete mode 100644 Torch.Client/TorchClientConfig.cs
delete mode 100644 Torch.Client/TorchConsoleScreen.cs
delete mode 100644 Torch.Client/TorchSettingsScreen.cs
delete mode 100644 Torch.Client/UI/TorchMainMenuScreen.cs
delete mode 100644 Torch.Client/UI/TorchNavScreen.cs
delete mode 100644 Torch.Client/UI/TorchSettingsScreen.cs
delete mode 100644 Torch.Client/app.config
delete mode 100644 Torch.Client/torchicon.ico
delete mode 100644 TransformOnBuild.targets
delete mode 100644 appveyor.yml
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 73b7085..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# Torch 1.1.229.265
-* Features
- - Added more lenient version parsing for plugins (v#.# should work)
- - Added countdown option to restart command (!restart [seconds])
-* Fixes
- - General fixes to work with the latest SE version
- - Fixed config changes not saving
- - (hopefully) Fixed issue causing crashes on servers using the Windows Classic theme
-
-# Torch 1.1.207.7
-* Notes
- - This release makes significant changes to TorchConfig.xml. It has been renamed to Torch.cfg and has different options.
-* Features
- - Plugins, Torch, and the DS can now all update automatically
- - Changed command prefix to !
- - Added manual save command (thanks to Maldark)
- - Added restart command
- - Improved instance creation: now creates an entire skeleton instance with blank config
- - Added instance name to console title
-* Fixes
- - Optimized UI so it's snappier and freezes less often
- - Fixed NetworkManager.RaiseEvent overload that had an off-by-one bug
- - Fixed chat window so it automatically scrolls down
-
-# Torch 1.0.182.329
- * Improved logging, logs now to go the Logs folder and aren't deleted on start
- * Fixed chat tab not enabling with -autostart
- * Fixed player list
- * Watchdog time-out is now configurable in TorchConfig.xml
- * Fixed infinario log spam
- * Fixed crash when sending empty message from chat tab
- * Fixed permissions on Torch commands
- * Changed plugin StoragePath to the current instance path (per-instance configs)
\ No newline at end of file
diff --git a/Jenkins/get-version.ps1 b/Jenkins/get-version.ps1
deleted file mode 100644
index 8650739..0000000
--- a/Jenkins/get-version.ps1
+++ /dev/null
@@ -1,5 +0,0 @@
-$buildSalt = $Env:BUILD_NUMBER
-$branchName = $Env:BRANCH_NAME
-$gitSimpleVersion = git describe --tags --abbrev=0
-$simpleVersionStandard = echo $gitSimpleVersion | Select-String -Pattern "([0-9]+)\.([0-9]+)\.([0-9]+)" | % {$_.Matches} | %{$_.Groups[1].Value+"."+$_.Groups[2].Value+"."+$_.Groups[3].Value}
-Write-Host "$simpleVersionStandard.$buildSalt"
\ No newline at end of file
diff --git a/Jenkins/jenkins-grab-se.ps1 b/Jenkins/jenkins-grab-se.ps1
deleted file mode 100644
index ea820af..0000000
--- a/Jenkins/jenkins-grab-se.ps1
+++ /dev/null
@@ -1,26 +0,0 @@
-pushd
-
-$steamData = "C:/Steam/Data/"
-$steamCMDPath = "C:/Steam/steamcmd/"
-$steamCMDZip = "C:/Steam/steamcmd.zip"
-
-if (!(Test-Path $steamData)) {
- mkdir "$steamData"
-}
-if (!(Test-Path $steamCMDPath)) {
- if (!(Test-Path $steamCMDZip)) {
- Invoke-WebRequest -OutFile $steamCMDZip https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
- }
- Expand-Archive $steamCMDZip -DestinationPath $steamCMDPath
-}
-& "$steamCMDPath/steamcmd.exe" "+login anonymous" "+force_install_dir $steamData" "+app_update 298740" "+quit"
-
-$dataPath = $steamData.Replace("/", "\");
-$contentPath = "$dataPath\Content";
-if (Test-Path $contentPath) {
- Remove-Item -LiteralPath $contentPath -Force -Recurse
-}
-
-cmd /S /C mklink /J .\GameBinaries $dataPath\DedicatedServer64
-
-popd
diff --git a/Jenkinsfile b/Jenkinsfile
deleted file mode 100644
index 39ae44a..0000000
--- a/Jenkinsfile
+++ /dev/null
@@ -1,55 +0,0 @@
-def packageAndArchive(buildMode, packageName) {
- zipFile = "bin\\${packageName}.zip"
- packageDir = "publish"
-
- bat 'powershell -Command { Compress-Archive -Path ${packageDir}\\* -DestinationPath ${zipFile} }'
- archiveArtifacts artifacts: zipFile, caseSensitive: false, onlyIfSuccessful: true
-}
-
-node('windows') {
- stage('Checkout') {
- checkout scm
- bat 'git pull https://github.com/TorchAPI/Torch/ ${env.BRANCH_NAME} --tags'
- }
-
- stage('Acquire SE') {
- bat 'powershell -File Jenkins/jenkins-grab-se.ps1'
- }
-
- stage('Build') {
- dotnetVersion = bat(returnStdout: true, script: '@powershell -NonInteractive -NoLogo -NoProfile -File Jenkins/get-version.ps1').trim()
- infoVersion = "${dotnetVersion}-${env.BRANCH_NAME}"
- currentBuild.description = infoVersion
-
- bat 'dotnet publish .\\Torch.Server\\Torch.Server.csproj -p:PackageVersion=${dotnetVersion} -p:InformationalVersion=${infoVersion} --self-contained -f net6-windows -r win-x64 -c Release -o .\\publish\\'
- }
-
- stage('Archive') {
- //archiveArtifacts artifacts: "bin/x64/${buildMode}/Torch*", caseSensitive: false, fingerprint: true, onlyIfSuccessful: true
-
- packageAndArchive(buildMode, "torch-server")
-
- /*packageAndArchive(buildMode, "torch-client", "Torch.Server*")*/
- }
-
- /* Disabled because they fail builds more often than they detect actual problems
- stage('Test') {
- bat 'IF NOT EXIST reports MKDIR reports'
- bat "\"packages/xunit.runner.console.2.2.0/tools/xunit.console.exe\" \"bin-test/x64/${buildMode}/Torch.Tests.dll\" \"bin-test/x64/${buildMode}/Torch.Server.Tests.dll\" \"bin-test/x64/${buildMode}/Torch.Client.Tests.dll\" -parallel none -xml \"reports/Torch.Tests.xml\""
-
- step([
- $class: 'XUnitBuilder',
- thresholdMode: 1,
- thresholds: [[$class: 'FailedThreshold', failureThreshold: '1']],
- tools: [[
- $class: 'XUnitDotNetTestType',
- deleteOutputFiles: true,
- failIfNotNew: true,
- pattern: 'reports/*.xml',
- skipNoTestFiles: false,
- stopProcessingIfError: true
- ]]
- ])
- }
- */
-}
diff --git a/Setup (run before opening solution).bat b/Setup (run before opening solution).bat
deleted file mode 100644
index 38c267e..0000000
--- a/Setup (run before opening solution).bat
+++ /dev/null
@@ -1,13 +0,0 @@
-:: This script creates a symlink to the game binaries to account for different installation directories on different systems.
-
-@echo off
-set /p path="Please enter the folder location of your SpaceEngineersDedicated.exe: "
-cd %~dp0
-mklink /J GameBinaries "%path%"
-if errorlevel 1 goto Error
-echo Done! You can now open the Torch solution without issue.
-goto End
-:Error
-echo An error occured creating the symlink.
-:End
-pause
diff --git a/Torch.Client.Tests/Properties/AssemblyInfo.cs b/Torch.Client.Tests/Properties/AssemblyInfo.cs
deleted file mode 100644
index 137a623..0000000
--- a/Torch.Client.Tests/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-[assembly: AssemblyTitle("Torch Client Tests")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Torch")]
-[assembly: AssemblyCopyright("Copyright © Torch API 2017")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: ComVisible(false)]
-
-#if DEBUG
-[assembly: AssemblyConfiguration("Debug")]
-#else
-[assembly: AssemblyConfiguration("Release")]
-#endif
\ No newline at end of file
diff --git a/Torch.Client.Tests/Torch.Client.Tests.csproj b/Torch.Client.Tests/Torch.Client.Tests.csproj
deleted file mode 100644
index cf64ce4..0000000
--- a/Torch.Client.Tests/Torch.Client.Tests.csproj
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
- net461
- 1591,0649
- Torch Client Tests
- Torch
- Copyright © Torch API 2017
- false
- MinimumRecommendedRules.ruleset
- $(SolutionDir)\bin-test\$(Platform)\$(Configuration)\
-
-
- full
-
-
- pdbonly
- $(SolutionDir)\bin-test\$(Platform)\$(Configuration)\Torch.Client.Tests.xml
-
-
-
-
-
-
-
-
-
-
-
-
- all
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Torch.Client.Tests/TorchClientReflectionTest.cs b/Torch.Client.Tests/TorchClientReflectionTest.cs
deleted file mode 100644
index 80cb47f..0000000
--- a/Torch.Client.Tests/TorchClientReflectionTest.cs
+++ /dev/null
@@ -1,94 +0,0 @@
-using System;
-using System.Collections.Generic;
-using Torch.Client;
-using Torch.Tests;
-using Torch.Utils;
-using Xunit;
-
-namespace Torch.Client.Tests
-{
- public class TorchClientReflectionTest
- {
- static TorchClientReflectionTest()
- {
- TestUtils.Init();
- }
-
- private static ReflectionTestManager _manager;
-
- private static ReflectionTestManager Manager()
- {
- if (_manager != null)
- return _manager;
-
- return _manager = new ReflectionTestManager().Init(typeof(TorchClient).Assembly);
- }
-
- public static IEnumerable