diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 000000000..3bf2b1646
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,32 @@
+name: build
+
+on:
+ push:
+ pull_request:
+ workflow_call:
+
+jobs:
+ build:
+ runs-on: ubuntu-22.04
+ steps:
+ - uses: actions/checkout@v4
+ - uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@1.1.1
+
+ - uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@1.1.1
+ - uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@1.1.1
+ with:
+ output-file-name: RemoteTech
+ # The build step already copies the relevant files into GameData so we
+ # don't need to include the defaults here
+ artifacts: GameData
+ artifacts-exclude: dont-exclude-anything
+
+ - run: tree
+ - uses: actions/upload-artifact@v4
+ with:
+ path: /tmp/release/RemoteTech
+ name: RemoteTech
+ - uses: actions/upload-artifact@v4
+ with:
+ path: GameData/RemoteTech/Versioning/RemoteTech.version
+ name: RemoteTech.version
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 000000000..58fb415d2
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,41 @@
+name: release
+
+on:
+ release:
+ types:
+ - published
+
+env:
+ GITHUB_TOKEN: ${{ github.token }}
+
+jobs:
+ build:
+ uses: ./.github/workflows/build.yml
+
+ upload-release-assets:
+ runs-on: ubuntu-latest
+ needs: [build]
+ permissions:
+ contents: write
+
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/download-artifact@v4
+ with:
+ name: RemoteTech
+ path: RemoteTech
+ - uses: actions/download-artifact@v4
+ with:
+ name: RemoteTech.version
+ - run: tree
+
+ - name: Create Zip
+ run: |
+ cd RemoteTech
+ zip -r9 ../RemoteTech.zip *
+
+ - name: Upload Release Assets
+ run: |
+ gh release upload --clobber ${{ github.ref_name }} \
+ RemoteTech.zip \
+ RemoteTech.version
diff --git a/.gitignore b/.gitignore
index b152f076c..68d765860 100644
--- a/.gitignore
+++ b/.gitignore
@@ -162,5 +162,8 @@ $RECYCLE.BIN/
src/RemoteTech/*.dll
*.zip
GameData/RemoteTech/Plugins/RemoteTech.dll
+GameData/RemoteTech/Plugins/RemoteTech.pdb
+GameData/RemoteTech/Plugins/RemoteTech.xml
+GameData/RemoteTech/Versioning/RemoteTech.version
GameData/build.txt
src/RemoteTech/RemoteTech.sln.ide/
diff --git a/CI/.travis.yml b/CI/.travis.yml
deleted file mode 100644
index c2072fea4..000000000
--- a/CI/.travis.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-language: objective-c # force osx machines
-
-os:
- - osx
-
-env:
- global:
- - secure: OYC9Mq33uGyJTp/yb9IzXDzYRXuO2M29uXTpRYGJgfWlZaas73hVX1O4LBjHAdXXxPvo53XtGzA/1j5dP/PPRJqddowx0yxSIsUVXIRNNiWLXg2yN88qNn0GuiFwK3a1YRVFPQ9MjjFXvLB96TzNRJJBZW+gQvHKwI9g5cYtYvk=
- - secure: J/M1/WIRgP4GssMr9HS9k7Wr9XUqlo0S+olIVWvr8eY8jxxVbx+ONZbkkjKey2BvC1BRVtRXpbBe+YcPLYe7V1jG5mmm3Lc1B/x5WC54q4KKfoV53m+ARAtaHFYrJY2h4O+GLaysQoCwCG/tAt0GhJmgJgy9IojH4ojJjDOGHCE=
-
-notifications:
- slack: remotetech:UMyObqwkLCHGWqwBQ6ZVznxF
-
-before_install:
- - date -u
- - uname -a
- - export BUILDTAG=`git describe --abbrev=0 --tags`
- - env | sort | grep -v ZIPPASSWORD | grep -v GITHUB_TOKEN
-
-install:
- - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then echo "Should only be on OSX"; exit 1; fi
- - ./CI/travis.osx.install.deps.sh # it appears TRAVIS_OS_NAME is unset often, assume we're OSX if not linux
-
-script:
- - ./build.remotetech.sh
-
-# Custom deploy
-after_success:
- - ./CI/github.build.deploy.sh
\ No newline at end of file
diff --git a/CI/build.remotetech.sh b/CI/build.remotetech.sh
deleted file mode 100644
index 9e5ed5791..000000000
--- a/CI/build.remotetech.sh
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-
-SRCDIR=src/RemoteTech
-
-if [ ! -f "$SRCDIR/Assembly-CSharp-firstpass.dll" ] \
- || [ ! -f "$SRCDIR/Assembly-CSharp.dll" ] \
- || [ ! -f "$SRCDIR/UnityEngine.UI.dll" ] \
- || [ ! -f "$SRCDIR/UnityEngine.dll" ];
-then
- if [ "$TRAVIS_SECURE_ENV_VARS" = "false" ]; then
- # this should only happen for pull requests
- echo "Unable to build as the env vars have not been set. Can't decrypt the zip."
- exit 1; # can't decide if this should error
- fi
-
- if [[ ! -f dlls.zip ]]; then
- echo "Need to get dependency .dll's"
- wget -O dlls.zip "https://docs.google.com/uc?authuser=0&id=0B4Q6xg6PGh9vZ2RHNTh0ajFVbUE&export=download"
- fi
-
- if [ -z "$ZIPPASSWORD" ]; then
- if [ "$TRAVIS" = "true" ]; then
- echo "Password not set, on travis and DLL's missing, can't build";
- exit 1;
- else
- echo "Password required to decrypt the zip";
- unzip dlls.zip -d src/RemoteTech/ # this will prompt for a password
- fi
- else
- unzip -P "$ZIPPASSWORD" dlls.zip -d src/RemoteTech/
- fi
-
- rm -f dlls.zip
-fi
-
-cd src/RemoteTech && xbuild /p:Configuration=Release
-
diff --git a/CI/github.build.deploy.sh b/CI/github.build.deploy.sh
deleted file mode 100755
index 847d83d3c..000000000
--- a/CI/github.build.deploy.sh
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/bash
-
-# These should be set by Travis
-#TRAVIS_BUILD_NUMBER=1
-#TRAVIS_BRANCH=master
-#TRAVIS_REPO_SLUG="RemoteTechnologiesGroup/RemoteTech"
-#TRAVIS_COMMIT=master
-#GITHUB_TOKEN="Personal access token from https://github.com/settings/applications"
-#TRAVIS_PULL_REQUEST=false
-
-VERSION="build-${TRAVIS_BRANCH}-${TRAVIS_BUILD_NUMBER}"
-FILENAME=$(echo "${VERSION}.zip" | tr '/' '_') # else it will fail on branches like chore/travis
-
-python_parse_json() {
- # python errors are surpressed for when the key doesn't exist
- cat | python -c 'import sys,json;obj=json.load(sys.stdin);print obj[sys.argv[1]];' $1 2>/dev/null
-}
-
-if [ -z "$GITHUB_TOKEN" ] || [ -z "$TRAVIS_REPO_SLUG" ] \
- || [ -z "$TRAVIS_BUILD_NUMBER" ] || [ -z "$TRAVIS_BRANCH" ] \
- || [ -z "$TRAVIS_COMMIT" ]
-then
- echo "GITHUB_TOKEN, TRAVIS_REPO_SLUG, TRAVIS_BUILD_NUMBER and TRAVIS_COMMIT must be set in order to deploy";
- echo "Skipping deploy for now";
- exit 0; # prevent build failing if unset
-fi
-
-if [ "$TRAVIS_PULL_REQUEST" != "false" ]
-then
- echo "This is a pull request build, it doesn't need to be released."
- exit 0; # prevent build fail
-fi
-
-if [[ "$TRAVIS_BRANCH" == build* ]]
-then
- echo "We're already on a 'build branch' (or tag), don't need to deploy again";
- exit 0;
-fi
-
-echo "Copy the licence to the gamedata folder"
-cp "LICENSE.txt" "GameData/RemoteTech/LICENSE.txt"
-
-echo "Build ${TRAVIS_BUILD_NUMBER} from branch ${TRAVIS_BRANCH} in ${TRAVIS_REPO_SLUG}" > GameData/build.txt
-echo "Built from commit ${TRAVIS_COMMIT} with tag ${BUILDTAG}" >> GameData/build.txt
-echo "Creating ${FILENAME}"
-zip -r "${FILENAME}" GameData/
-
-echo "Attempting to create tag ${VERSION} on ${TRAVIS_REPO_SLUG}"
-API_JSON=$(printf '{"tag_name": "%s","target_commitish": "%s","name": "%s","body": "Automated pre-release of branch %s build %s","draft": false,"prerelease": true}' \
- $VERSION $TRAVIS_COMMIT $VERSION $TRAVIS_BRANCH $TRAVIS_BUILD_NUMBER)
-ADDRESS=$(printf 'https://api.github.com/repos/%s/releases?access_token=%s' $TRAVIS_REPO_SLUG $GITHUB_TOKEN)
-
-REPLY=$(curl --data "$API_JSON" "$ADDRESS");
-UPLOAD_ID=$(echo $REPLY | python_parse_json "id")
-ERRORS=$(echo $REPLY | python_parse_json "errors");
-
-if [ -n "$ERRORS" ] || [ -z "$REPLY" ] || [ -z "$UPLOAD_ID" ]
-then
- echo "ERROR: An error occured while setting the tag";
- echo $REPLY;
- exit 1;
-fi
-
-UPLOAD_URL="https://uploads.github.com/repos/${TRAVIS_REPO_SLUG}/releases/${UPLOAD_ID}/assets"
-
-echo "Uploading ${FILENAME} to GitHub repo ${UPLOAD_ID} (tag ${VERSION} on ${TRAVIS_REPO_SLUG})"
-REPLY=$(curl -H "Authorization: token ${GITHUB_TOKEN}" \
- -H "Accept: application/vnd.github.manifold-preview" \
- -H "Content-Type: application/zip" \
- --data-binary @${FILENAME} \
- "${UPLOAD_URL}?name=${FILENAME}")
-
-ERRORS=$(echo $REPLY | python_parse_json "errors")
-ASSET_ID=$(echo $REPLY | python_parse_json "id" )
-
-if [ -n "$ERRORS" ] || [ -z "$REPLY" ] || [ -z "$ASSET_ID" ]
-then
- echo "ERROR: An error occured while uploading the file to GitHub";
- echo $REPLY;
- exit 1;
-fi
-
-echo "Uploaded ${FILENAME} to ${TRAVIS_REPO_SLUG} as asset id ${ASSET_ID}"
diff --git a/CI/travis.osx.install.deps.sh b/CI/travis.osx.install.deps.sh
deleted file mode 100755
index c08292b45..000000000
--- a/CI/travis.osx.install.deps.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/bash
-set -ev
-
-MONO_VERSION="3.4.0"
-
-echo "Installing Mono ${MONO_VERSION}"
-wget "http://download.mono-project.com/archive/${MONO_VERSION}/macos-10-x86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg"
-sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target /
\ No newline at end of file
diff --git a/GameData/RemoteTech/RemoteTech.version b/GameData/RemoteTech/RemoteTech.version
deleted file mode 100644
index 1caf81131..000000000
--- a/GameData/RemoteTech/RemoteTech.version
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "NAME": "RemoteTech",
- "URL": "https://raw.githubusercontent.com/RemoteTechnologiesGroup/RemoteTech/master/GameData/RemoteTech/RemoteTech.version",
- "CHANGE_LOG_URL": "https://raw.githubusercontent.com/RemoteTechnologiesGroup/RemoteTech/master/CHANGES.md",
- "DOWNLOAD": "http://spacedock.info/mod/520/RemoteTech",
- "GITHUB":
- {
- "USERNAME": "RemoteTechnologiesGroup",
- "REPOSITORY": "RemoteTech",
- "ALLOW_PRE_RELEASE": false
- },
- "VERSION":{
- "MAJOR":1,
- "MINOR":9,
- "PATCH":12,
- "BUILD":0
- },
- "KSP_VERSION":{
- "MAJOR":1,
- "MINOR":12,
- "PATCH":1
- },
- "KSP_VERSION_MIN":{
- "MAJOR":1,
- "MINOR":12,
- "PATCH":0
- },
- "KSP_VERSION_MAX":{
- "MAJOR":1,
- "MINOR":12,
- "PATCH":1
- }
-}
diff --git a/RemoteTech.slnx b/RemoteTech.slnx
new file mode 100644
index 000000000..54c1e38a7
--- /dev/null
+++ b/RemoteTech.slnx
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/appveyor.yml b/appveyor.yml
deleted file mode 100644
index c032c8e13..000000000
--- a/appveyor.yml
+++ /dev/null
@@ -1,413 +0,0 @@
-# Master configuration is below
-# grep 'Develop configuration' to find the develop conf.
-
-#==============================================================================#
-# Master configuration #
-#==============================================================================#
-
-# configuration for "master" branch
-# build in Release mode and deploy to Github
--
- #---------------------------------#
- # general configuration #
- #---------------------------------#
-
- # version format (you need to bump it when changing version)
- version: 1.9.12
-
- # branches
- branches:
- # whitelist
- only:
- - master
- # blacklist
- except:
- - gh-pages
-
- # Do not build on tags (note: otherwise appveyor keeps looping on a release)
- # we simply want to build on a new push
- skip_tags: true
-
- #---------------------------------#
- # environment configuration #
- #---------------------------------#
-
- # Build worker image (VM template)
- image: Visual Studio 2015
-
- # scripts that are called at very beginning, before repo cloning
- init:
- - git config --global core.autocrlf input
-
- # clone directory
- clone_folder: c:\projects\RemoteTech
-
- # fetch repository as zip archive
- shallow_clone: true
-
- # environment variables
- environment:
- DLL_ARCH_PASS: # KSP DLLs archive password (secured)
- secure: vfhIenu/wQqC0Yuy4u4tOQ==
-
- matrix:
- # set this flag to immediately finish build once one of the jobs fails.
- fast_finish: true
-
- # scripts that run after cloning repository
- install:
- # Note: by default, all script lines are interpreted as batch
- - cmd: echo Install scripts
- # setup env. variables
- - cmd: echo %APPVEYOR_BUILD_FOLDER%
- - cmd: set DOWNLOAD_FOLDER=%APPVEYOR_BUILD_FOLDER%\..
- - cmd: set ARTIFACTS_FOLDER=%APPVEYOR_BUILD_FOLDER%\artifacts
- - cmd: set GAMEDATA_FOLDER=%APPVEYOR_BUILD_FOLDER%\GameData
- - cmd: set ASSEMBLY_FOLDER=%GAMEDATA_FOLDER%\RemoteTech\Plugins
- # download required KSP DLLs
- - cmd: curl -fsS -o%DOWNLOAD_FOLDER%\dlls.7z https://d237kiopfuf7h0.cloudfront.net/download/KSPDLL_1_12_2.zip
- # extract them
- - cmd: cd %DOWNLOAD_FOLDER% & dir
- - cmd: 7z.exe e -p%DLL_ARCH_PASS% -o%ASSEMBLY_FOLDER% %DOWNLOAD_FOLDER%\dlls.7z
- - cmd: cd %ASSEMBLY_FOLDER% & dir
-
- #---------------------------------#
- # build configuration #
- #---------------------------------#
-
- # build platform, i.e. x86, x64, Any CPU. This setting is optional.
- # to add several platforms to build matrix:
- platform:
- #- x86
- - Any CPU
-
- # build Configuration, i.e. Debug, Release, etc.
- configuration:
- - Release
-
- build:
- # enable MSBuild parallel builds
- parallel: true
- # path to Visual Studio solution or project
- project: .\src\RemoteTech\RemoteTech.sln
- # MSBuild verbosity level
- verbosity: normal
-
- # scripts to run before build
- before_build:
-
- # scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
- before_package:
- # delete KSP downloaded assembly files
- - cmd: del %ASSEMBLY_FOLDER%\Assembly-CSharp.dll
- - cmd: del %ASSEMBLY_FOLDER%\Assembly-CSharp-firstpass.dll
- - cmd: del %ASSEMBLY_FOLDER%\UnityEngine.dll
- - cmd: del %ASSEMBLY_FOLDER%\UnityEngine.*.dll
- - cmd: cd %ASSEMBLY_FOLDER% & dir
- - cmd: echo done!
-
- # scripts to run after build
- after_build:
- # go to the artifact folder and zip the build directory (KSP /GameData folder)
- - cmd: mkdir %ARTIFACTS_FOLDER%
- - cmd: 7z.exe a %ARTIFACTS_FOLDER%\RemoteTech.zip %GAMEDATA_FOLDER%
-
- # to run your custom scripts instead of automatic MSBuild
- build_script:
-
- # to disable automatic builds
- #build: off
-
- #---------------------------------#
- # artifacts configuration #
- #---------------------------------#
-
- artifacts:
- # pushing entire folder as a zip archive
- - path: artifacts\RemoteTech.zip
- name: rt_gd
-
- #---------------------------------#
- # deployment configuration #
- #---------------------------------#
-
- # to disable deployment
- #deploy: off
-
- # scripts to run before deployment
- before_deploy:
-
- # providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
- # provider names are case-sensitive!
- deploy:
- # Deploy to GitHub 'releases'
- - provider: GitHub
- # artfact we want to push on github
- artifact: rt_gd
- # release name pushed on github
- release: RemoteTech-$(appveyor_build_version)
- # auth token to push on github
- auth_token:
- secure: n+llubPy/E9M9wRI1EkEM+dTxzDem7dVCquHhNwHCokxKP42l2svIO9deKnClD4y
- # is it a draft release?
- draft: false
- # is a a pre-release?
- prerelease: false
- # which branch?
- on:
- branch: master
- # deploy on tag push only
- #appveyor_repo_tag: true
-
- # scripts to run after deployment
- after_deploy:
-
- # to run your custom scripts instead of provider deployments
- deploy_script:
-
- #---------------------------------#
- # global handlers #
- #---------------------------------#
-
- # on successful build
- on_success:
- #- do something
-
- # on build failure
- on_failure:
- #- do something
-
- # after build failure or success
- on_finish:
- #- do something
-
- #---------------------------------#
- # notifications #
- #---------------------------------#
-
- notifications:
-
- # Email
- #- provider: Email
- # to:
- # - user1@email.com
- # - user2@email.com
- # subject: 'Build {{status}}' # optional
- # message: "{{message}}, {{commitId}}, ..." # optional
- # on_build_status_changed: true
-
- # Github
- - provider: GitHubPullRequest
- auth_token:
- secure: n+llubPy/E9M9wRI1EkEM+dTxzDem7dVCquHhNwHCokxKP42l2svIO9deKnClD4y
-
- # Slack using webhook
- - provider: Slack
- incoming_webhook:
- secure: UYWbRjEf2f/AfPVych87UTtvwwEfdk/ukZQb+PnlGzL9h7fjoQhH0IDfYoLLSguO6uGIEilbfBohUg4znkjikaVcI8OoZVxcPwXnsJliKRI=
-
-#==============================================================================#
-# Develop configuration #
-#==============================================================================#
-
-# configuration for "develop" branch
-# build in Release mode and no
--
- #---------------------------------#
- # general configuration #
- #---------------------------------#
-
- # version format (you need to bump it when changing version)
- version: 1.9.12-{build}-{branch}
-
- # branches
- branches:
- # whitelist
- only:
- - develop
- # blacklist
- except:
- - gh-pages
-
- # Do not build on tags (note: otherwise appveyor keeps looping on a release)
- # we simply want to build on a new push
- skip_tags: true
-
- #---------------------------------#
- # environment configuration #
- #---------------------------------#
-
- # Build worker image (VM template)
- image: Visual Studio 2015
-
- # scripts that are called at very beginning, before repo cloning
- init:
- - git config --global core.autocrlf input
-
- # clone directory
- clone_folder: c:\projects\RemoteTech
-
- # fetch repository as zip archive
- shallow_clone: true
-
- # environment variables
- environment:
- DLL_ARCH_PASS: # KSP DLLs archive password (secured)
- secure: vfhIenu/wQqC0Yuy4u4tOQ==
-
- matrix:
- # set this flag to immediately finish build once one of the jobs fails.
- fast_finish: true
-
- # scripts that run after cloning repository
- install:
- # Note: by default, all script lines are interpreted as batch
- - cmd: echo Install scripts
- # setup env. variables
- - cmd: echo %APPVEYOR_BUILD_FOLDER%
- - cmd: set DOWNLOAD_FOLDER=%APPVEYOR_BUILD_FOLDER%\..
- - cmd: set ARTIFACTS_FOLDER=%APPVEYOR_BUILD_FOLDER%\artifacts
- - cmd: set GAMEDATA_FOLDER=%APPVEYOR_BUILD_FOLDER%\GameData
- - cmd: set ASSEMBLY_FOLDER=%GAMEDATA_FOLDER%\RemoteTech\Plugins
- # download required KSP DLLs
- - cmd: curl -fsS -o%DOWNLOAD_FOLDER%\dlls.7z https://d237kiopfuf7h0.cloudfront.net/download/KSPDLL_1_12_2.zip
- # extract them
- - cmd: cd %DOWNLOAD_FOLDER% & dir
- - cmd: 7z.exe e -p%DLL_ARCH_PASS% -o%ASSEMBLY_FOLDER% %DOWNLOAD_FOLDER%\dlls.7z
- - cmd: cd %ASSEMBLY_FOLDER% & dir
-
- #---------------------------------#
- # build configuration #
- #---------------------------------#
-
- # build platform, i.e. x86, x64, Any CPU. This setting is optional.
- # to add several platforms to build matrix:
- platform:
- #- x86
- - Any CPU
-
- # build Configuration, i.e. Debug, Release, etc.
- # to add several configurations to build matrix:
- configuration:
- - Release
-
- build:
- # enable MSBuild parallel builds
- parallel: true
- # path to Visual Studio solution or project
- project: .\src\RemoteTech\RemoteTech.sln
- # MSBuild verbosity level
- verbosity: detailed
-
- # scripts to run before build
- before_build:
-
- # scripts to run *after* solution is built and *before* automatic packaging occurs (web apps, NuGet packages, Azure Cloud Services)
- before_package:
- # delete KSP downloaded assembly files
- - cmd: del %ASSEMBLY_FOLDER%\Assembly-CSharp.dll
- - cmd: del %ASSEMBLY_FOLDER%\Assembly-CSharp-firstpass.dll
- - cmd: del %ASSEMBLY_FOLDER%\UnityEngine.dll
- - cmd: del %ASSEMBLY_FOLDER%\UnityEngine.*.dll
- - cmd: cd %ASSEMBLY_FOLDER% & dir
- - cmd: echo done!
-
- # scripts to run after build
- after_build:
- # go to the artifact folder and zip the build directory (KSP /GameData folder)
- - cmd: mkdir %ARTIFACTS_FOLDER%
- - cmd: 7z.exe a %ARTIFACTS_FOLDER%\RemoteTech.zip %GAMEDATA_FOLDER%
-
- # to run your custom scripts instead of automatic MSBuild
- build_script:
-
- # to disable automatic builds
- #build: off
-
- #---------------------------------#
- # artifacts configuration #
- #---------------------------------#
-
- artifacts:
- # pushing entire folder as a zip archive
- - path: artifacts\RemoteTech.zip
- name: rt_gd
-
- #---------------------------------#
- # deployment configuration #
- #---------------------------------#
-
- # to disable deployment
- #deploy: off
-
- # scripts to run before deployment
- before_deploy:
-
- # providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
- # provider names are case-sensitive!
- deploy:
- # Deploy to GitHub 'releases'
- - provider: GitHub
- # artfact we want to push on github
- artifact: rt_gd
- # release name pushed on github
- release: RemoteTech-$(appveyor_build_version)
- # auth token to push on github
- auth_token:
- secure: n+llubPy/E9M9wRI1EkEM+dTxzDem7dVCquHhNwHCokxKP42l2svIO9deKnClD4y
- # is it a draft release?
- draft: false
- # is a a pre-release?
- prerelease: true
- # which branch?
- on:
- branch: develop
- # deploy on tag push only
- appveyor_repo_tag: false
-
- # scripts to run after deployment
- after_deploy:
-
- # to run your custom scripts instead of provider deployments
- deploy_script:
-
- #---------------------------------#
- # global handlers #
- #---------------------------------#
-
- # on successful build
- on_success:
- #- do something
-
- # on build failure
- on_failure:
- #- do something
-
- # after build failure or success
- on_finish:
- #- do something
-
- #---------------------------------#
- # notifications #
- #---------------------------------#
-
- notifications:
-
- # Email
- #- provider: Email
- # to:
- # - user1@email.com
- # - user2@email.com
- # subject: 'Build {{status}}' # optional
- # message: "{{message}}, {{commitId}}, ..." # optional
- # on_build_status_changed: true
-
- # Github
- - provider: GitHubPullRequest
- auth_token:
- secure: n+llubPy/E9M9wRI1EkEM+dTxzDem7dVCquHhNwHCokxKP42l2svIO9deKnClD4y
-
- # Slack using webhook
- - provider: Slack
- incoming_webhook:
- secure: UYWbRjEf2f/AfPVych87UTtvwwEfdk/ukZQb+PnlGzL9h7fjoQhH0IDfYoLLSguO6uGIEilbfBohUg4znkjikaVcI8OoZVxcPwXnsJliKRI=
diff --git a/buildscripts/UnityDebug/Mono.Cecil.dll b/buildscripts/UnityDebug/Mono.Cecil.dll
deleted file mode 100644
index be4d91aac..000000000
Binary files a/buildscripts/UnityDebug/Mono.Cecil.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug/Mono.CompilerServices.SymbolWriter.dll b/buildscripts/UnityDebug/Mono.CompilerServices.SymbolWriter.dll
deleted file mode 100644
index 2d20022ee..000000000
Binary files a/buildscripts/UnityDebug/Mono.CompilerServices.SymbolWriter.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug/PlayerConnectionConfigFile b/buildscripts/UnityDebug/PlayerConnectionConfigFile
deleted file mode 100644
index b248614f4..000000000
--- a/buildscripts/UnityDebug/PlayerConnectionConfigFile
+++ /dev/null
@@ -1 +0,0 @@
-listen 4294967295 1 1
\ No newline at end of file
diff --git a/buildscripts/UnityDebug/pdb2mdb.exe b/buildscripts/UnityDebug/pdb2mdb.exe
deleted file mode 100644
index 054648355..000000000
Binary files a/buildscripts/UnityDebug/pdb2mdb.exe and /dev/null differ
diff --git a/buildscripts/UnityDebug/prepare-debug.bat b/buildscripts/UnityDebug/prepare-debug.bat
deleted file mode 100644
index 1a81155b4..000000000
--- a/buildscripts/UnityDebug/prepare-debug.bat
+++ /dev/null
@@ -1,13 +0,0 @@
-rem Generate the MDB file needed by UnityVS and Monodevelop for debugging
-
-@echo off
-
-rem get parameters that are passed by visual studio post build event
-SET TargetName=%1
-
-rem make sure the initial working directory is the one containing the current script
-SET scriptPath=%~dp0
-
-echo Generating Unity Monodevelop Debug file...
-echo %TargetName%.dll -^> %TargetName%.dll.mdb
-"%scriptPath%\pdb2mdb.exe" %TargetName%.dll
diff --git a/buildscripts/UnityDebug_2019/Mono.Cecil.dll b/buildscripts/UnityDebug_2019/Mono.Cecil.dll
deleted file mode 100644
index ffed707ce..000000000
Binary files a/buildscripts/UnityDebug_2019/Mono.Cecil.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/Mono.CompilerServices.SymbolWriter.dll b/buildscripts/UnityDebug_2019/Mono.CompilerServices.SymbolWriter.dll
deleted file mode 100644
index 3157ca574..000000000
Binary files a/buildscripts/UnityDebug_2019/Mono.CompilerServices.SymbolWriter.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/System.Core.dll b/buildscripts/UnityDebug_2019/System.Core.dll
deleted file mode 100644
index 879b1af84..000000000
Binary files a/buildscripts/UnityDebug_2019/System.Core.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/System.dll b/buildscripts/UnityDebug_2019/System.dll
deleted file mode 100644
index acaad9804..000000000
Binary files a/buildscripts/UnityDebug_2019/System.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/instructions.txt b/buildscripts/UnityDebug_2019/instructions.txt
deleted file mode 100644
index d9698cf19..000000000
--- a/buildscripts/UnityDebug_2019/instructions.txt
+++ /dev/null
@@ -1,12 +0,0 @@
-Quoted from JPLRepo
-1) Install 2019.2.2f1 to utilise these two exe's to convert the pdb to mdb:
-\Editor\Editor\Data\MonoBleedingEdge\bin\mono.exe
-\Editor\Editor\Data\MonoBleedingEdge\lib\mono\4.5\pdb2mdb.exe
-
-2) Unity No longer uses PlayerConnectionConfigFile instead you edit boot.config file (in the data directory where this file used to go) and add the line:
-player-connection-debug=1
-
-3) For the game exe. You must copy the WindowsPlayer.exe (rename if you want) UnityPlayer.dll and WinPixEventRuntime.dll into the KSP install directory.
-
-4) Execute this sequence:
-"C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\bin\mono.exe" "C:\Program Files\Unity\Editor\Data\MonoBleedingEdge\lib\mono\4.5\pdb2mdb.exe" "$(TargetFileName)"
\ No newline at end of file
diff --git a/buildscripts/UnityDebug_2019/mono-2.0-sgen.dll b/buildscripts/UnityDebug_2019/mono-2.0-sgen.dll
deleted file mode 100644
index 820efe214..000000000
Binary files a/buildscripts/UnityDebug_2019/mono-2.0-sgen.dll and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/mono.exe b/buildscripts/UnityDebug_2019/mono.exe
deleted file mode 100644
index 5ef20b8bd..000000000
Binary files a/buildscripts/UnityDebug_2019/mono.exe and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/pdb2mdb.exe b/buildscripts/UnityDebug_2019/pdb2mdb.exe
deleted file mode 100644
index dd822836d..000000000
Binary files a/buildscripts/UnityDebug_2019/pdb2mdb.exe and /dev/null differ
diff --git a/buildscripts/UnityDebug_2019/prepare-debug.bat b/buildscripts/UnityDebug_2019/prepare-debug.bat
deleted file mode 100644
index c4274eed1..000000000
--- a/buildscripts/UnityDebug_2019/prepare-debug.bat
+++ /dev/null
@@ -1,13 +0,0 @@
-rem Generate the MDB file needed by UnityVS and Monodevelop for debugging
-
-@echo off
-
-rem get parameters that are passed by visual studio post build event
-SET TargetName=%1
-
-rem make sure the initial working directory is the one containing the current script
-SET scriptPath=%~dp0
-
-echo Generating Unity Monodevelop Debug file...
-echo %TargetName%.dll -^> %TargetName%.dll.mdb
-"%scriptPath%\mono.exe" "%scriptPath%\pdb2mdb.exe" %TargetName%.dll
diff --git a/buildscripts/ZipPack/7za-License.txt b/buildscripts/ZipPack/7za-License.txt
deleted file mode 100644
index 7b8e9a04c..000000000
--- a/buildscripts/ZipPack/7za-License.txt
+++ /dev/null
@@ -1,31 +0,0 @@
- 7-Zip Extra
- ~~~~~~~~~~~
- License for use and distribution
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
- Copyright (C) 1999-2016 Igor Pavlov.
-
- 7-Zip Extra files are under the GNU LGPL license.
-
-
- Notes:
- You can use 7-Zip Extra on any computer, including a computer in a commercial
- organization. You don't need to register or pay for 7-Zip.
-
-
- GNU LGPL information
- --------------------
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You can receive a copy of the GNU Lesser General Public License from
- http://www.gnu.org/
-
diff --git a/buildscripts/ZipPack/7za.dll b/buildscripts/ZipPack/7za.dll
deleted file mode 100644
index d13a1df24..000000000
Binary files a/buildscripts/ZipPack/7za.dll and /dev/null differ
diff --git a/buildscripts/ZipPack/7za.exe b/buildscripts/ZipPack/7za.exe
deleted file mode 100644
index 8a5459808..000000000
Binary files a/buildscripts/ZipPack/7za.exe and /dev/null differ
diff --git a/buildscripts/ZipPack/build-package.bat b/buildscripts/ZipPack/build-package.bat
deleted file mode 100644
index 96edd6be0..000000000
--- a/buildscripts/ZipPack/build-package.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-rem Generate the zip Release package.
-rem Highly recommend to use a Continuous Integration service to pull source codes from repository, build, test, package and deploy
-
-@echo off
-
-rem get parameters that are passed by visual studio post build event
-SET TargetName=%1
-SET Dllversion=%~n2
-SET KSPversion=%3
-
-rem make sure the initial working directory is the one containing the current script
-SET scriptPath=%~dp0
-SET rootPath=%scriptPath%..\..\
-SET initialWD=%CD%
-
-echo Generating %TargetName% for %KSPversion% Release Package...
-xcopy /y "%initialWD%\%TargetName%.dll" %rootPath%GameData\%TargetName%\Plugins\%TargetName%.dll*
-
-IF EXIST %rootPath%package\ rd /s /q %rootPath%package
-mkdir %rootPath%package\GameData
-cd %rootPath%package\GameData
-
-echo Copying %rootPath%GameData files to package stage
-xcopy /y /E /Q %rootPath%GameData %rootPath%package\GameData
-
-echo.
-echo Compressing %TargetName% for %KSPversion% Release Package...
-IF EXIST "%rootPath%%TargetName%*_For_%KSPversion%.zip" del "%rootPath%%TargetName%*_For_%KSPversion%.zip"
-"%scriptPath%7za.exe" a "%rootPath%%TargetName%%Dllversion%_For_%KSPversion%.zip" %rootPath%package\GameData
-
-echo Deleting package stage
-rd /s /q %rootPath%package
diff --git a/buildscripts/lib/mono/4.5/mscorlib.dll b/buildscripts/lib/mono/4.5/mscorlib.dll
deleted file mode 100644
index 911f92c1d..000000000
Binary files a/buildscripts/lib/mono/4.5/mscorlib.dll and /dev/null differ
diff --git a/src/RemoteTech/Properties/AssemblyInfo.cs b/src/RemoteTech/Properties/AssemblyInfo.cs
deleted file mode 100644
index 9c8d831e8..000000000
--- a/src/RemoteTech/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("RemoteTech")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("RemoteTechnologiesGroup")]
-[assembly: AssemblyProduct("RemoteTech")]
-[assembly: AssemblyCopyright("Copyright © 2013-2021")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6466071c-8d09-42b1-ab24-aa485169e609")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-
-// Don't include the patch revision in the AssemblyVersion - as this will break any dependent
-// DLLs any time it changes. Breaking on a minor revision is probably acceptable - it's
-// unlikely that there wouldn't be other breaking changes on a minor version change.
-[assembly: AssemblyVersion("1.9")]
-[assembly: AssemblyFileVersion("1.9.12")]
-
-// Use KSPAssembly to allow other DLLs to make this DLL a dependency in a
-// non-hacky way in KSP. Format is (AssemblyProduct, major, minor), and it
-// does not appear to have a hard requirement to match the assembly version.
-[assembly: KSPAssembly("RemoteTech", 1, 9)]
diff --git a/src/RemoteTech/RemoteTech.csproj b/src/RemoteTech/RemoteTech.csproj
index 1d1e10253..e1e6f2c0e 100644
--- a/src/RemoteTech/RemoteTech.csproj
+++ b/src/RemoteTech/RemoteTech.csproj
@@ -1,224 +1,44 @@
-
-
+
- {42155D82-1F25-4E59-9F65-64ABC583F420}
- Debug
- AnyCPU
- Library
- Properties
- RemoteTech
RemoteTech
- v4.5
- 512
-
-
-
- true
- full
- false
- $(KSPDEVDIR)\GameData\RemoteTech\Plugins\
- obj\RemoteTech\Plugins\
- DEBUG
- prompt
- 4
- Auto
+ RemoteTech
+ net481
+
+ Satellite network and signal delay for Kerbal Space Program
+ RemoteTechnologiesGroup
+ RemoteTech
+ Copyright © 2013-2021
+
+ $(ProjectRootDir)GameData\RemoteTech
+ Plugins
+
+ 12
+ portable
true
- default
- false
-
-
- none
- true
- $(KSPDEVDIR)\GameData\RemoteTech\Plugins\
- ..\..\GameData\RemoteTech\Plugins\
-
-
- prompt
- 4
- Auto
- default
- false
-
-
- none
- true
- $(KSPDEVDIR)\GameData\RemoteTech\Plugins\
- ..\..\GameData\RemoteTech\Plugins\
- KSP131
- prompt
- 4
- Auto
- default
- MinimumRecommendedRules.ruleset
- false
+ Debug;Release
+
+ 1.9.12
+ 1.9.12
+
+ 1.9.0.0
+
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\Assembly-CSharp.dll
- Assembly-CSharp.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\Assembly-CSharp-firstpass.dll
- Assembly-CSharp-firstpass.dll
-
-
-
-
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.dll
- UnityEngine.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.UI.dll
- UnityEngine.UI.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.AnimationModule.dll
- UnityEngine.AnimationModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.AudioModule.dll
- UnityEngine.AudioModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.CoreModule.dll
- UnityEngine.CoreModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.ImageConversionModule.dll
- UnityEngine.ImageConversionModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.IMGUIModule.dll
- UnityEngine.IMGUIModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.InputLegacyModule.dll
- UnityEngine.InputLegacyModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.TextRenderingModule.dll
- UnityEngine.TextRenderingModule.dll
-
-
- $(KSPDEVDIR)\KSP_x64_Data\Managed\UnityEngine.PhysicsModule.dll
- UnityEngine.PhysicsModule.dll
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ $(KSPBT_ModRoot)/Versioning/RemoteTech.version
+ https://github.com/RemoteTechnologiesGroup/RemoteTech/releases/latest/download/RemoteTech.version
+ https://github.com/RemoteTechnologiesGroup/RemoteTech/releases
+ 1.12.5
+ 1.12.0
+ 1.12.99
+
-
-
-
-
-
-
-
-
-
-
-
- $(PostBuildEventDependsOn);
- PostBuildMacros;
-
-
-
-if "$(ConfigurationName)"=="Debug" (call "$(ProjectDir)..\..\buildscripts\UnityDebug_2019\prepare-debug.bat" $(TargetName))
-
-
-
\ No newline at end of file
+
diff --git a/src/RemoteTech/RemoteTech.sln b/src/RemoteTech/RemoteTech.sln
deleted file mode 100644
index e39037138..000000000
--- a/src/RemoteTech/RemoteTech.sln
+++ /dev/null
@@ -1,23 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual C# Express 2010
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RemoteTech", "RemoteTech.csproj", "{42155D82-1F25-4E59-9F65-64ABC583F420}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- Release131|Any CPU = Release131|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Release|Any CPU.Build.0 = Release|Any CPU
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Release131|Any CPU.ActiveCfg = Release131|Any CPU
- {42155D82-1F25-4E59-9F65-64ABC583F420}.Release131|Any CPU.Build.0 = Release131|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
-EndGlobal