diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a96db8c --- /dev/null +++ b/.editorconfig @@ -0,0 +1,45 @@ +# The source skeleton for this configuration can be found at +# https://github.com/BesLogic/shared-configs/blob/main/.editorconfig +# Modifications to this file that are not project-specific should also be done upstream. + +# Editor configuration, see https://editorconfig.org +root = true + +[*] +#### Widely Supported by Editors #### +#### https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#widely-supported-by-editors + +indent_style = space +indent_size = 2 +# tab_width defaults indent_size when indent_size is a number, but VS will add it back +tab_width = 2 +# TODO: Change back in a formatting pass +end_of_line = crlf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +#### Supported By A Limited Number of Editors #### +#### https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#supported-by-a-limited-number-of-editors + +max_line_length = 100 + +#### Ideas for Domain-Specific Properties #### +#### https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#ideas-for-domain-specific-properties + +quote_type = auto + +#### EditorGuidelines #### +#### https://marketplace.visualstudio.com/items?itemName=PaulHarrington.EditorGuidelinesPreview#editorconfig-support-vs-2017-and-above +guidelines = 80, 100 + +#### Language-specific overrides #### + +[*.cs] +indent_size = 4 +# tab_width defaults indent_size when indent_size is a number, but VS will add it back +tab_width = 4 + +[*.{md,patch,diff}] +max_line_length = off +trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index 412eeda..dfe0770 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,22 +1,2 @@ # Auto detect text files and perform LF normalization * text=auto - -# Custom for Visual Studio -*.cs diff=csharp -*.sln merge=union -*.csproj merge=union -*.vbproj merge=union -*.fsproj merge=union -*.dbproj merge=union - -# Standard to msysgit -*.doc diff=astextplain -*.DOC diff=astextplain -*.docx diff=astextplain -*.DOCX diff=astextplain -*.dot diff=astextplain -*.DOT diff=astextplain -*.pdf diff=astextplain -*.PDF diff=astextplain -*.rtf diff=astextplain -*.RTF diff=astextplain diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d88053c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,42 @@ +name: Build + +on: + push: + pull_request: + +permissions: + contents: read + +jobs: + build: + # Pinned (not windows-latest) so a runner image bump can't silently drop the + # .NET Framework 4.8.1 targeting pack this build needs. + runs-on: windows-2022 + + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: "10.0.x" + + # packages.lock.json is committed; the csproj sets RestoreLockedMode=true, so this + # restore is reproducible and fails if the lock file is out of date. + - name: Restore + run: dotnet restore + + - name: Build + # -o keeps the artifact inside the workspace; the csproj's own OutputPath + # points outside the repo (../../bin/...) which upload-artifact can't reach. + run: dotnet build --configuration Release --no-restore -o artifacts + + - name: Verify + run: dotnet format --verify-no-changes + + - name: Upload plugin DLL + uses: actions/upload-artifact@v4 + with: + name: LiveSplit.AutoSplitIntegration + path: artifacts/LiveSplit.AutoSplitIntegration.dll + if-no-files-found: error diff --git a/.gitignore b/.gitignore index c5bc0c2..535ee5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,248 +1,18 @@ -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. - -# User-specific files -*.suo -*.user -*.sln.docstates -*.userprefs - # Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -# x64/ -# x86/ -build/ -bld/ [Bb]in/ [Oo]bj/ -Builds/ - -#SVN Stuff -.svn/ - -#API -API/ -#Website -Website/ - -# Roslyn cache directories -*.ide/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -#NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.pch +# Debug symbols (the tracked artifact under update/Components/ is the .dll only) *.pdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj -*.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opensdf -*.sdf -*.cachefile - -# Visual Studio profiler -*.psess -*.vsp -*.vspx - -# TFS 2012 Local Workspace -$tf/ - -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -# JustCode is a .NET coding addin-in -.JustCode - -# TeamCity is a build add-in -_TeamCity* - -# DotCover is a Code Coverage Tool -*.dotCover - -# NCrunch -_NCrunch_* -.*crunch*.local.xml - -# MightyMoose -*.mm.* -AutoTest.Net/ - -# Web workbench (sass) -.sass-cache/ - -# Installshield output folder -[Ee]xpress/ -# DocProject is a documentation generator add-in -DocProject/buildhelp/ -DocProject/Help/*.HxT -DocProject/Help/*.HxC -DocProject/Help/*.hhc -DocProject/Help/*.hhk -DocProject/Help/*.hhp -DocProject/Help/Html2 -DocProject/Help/html +# CI build output (dotnet build -o artifacts) +artifacts/ -# Click-Once directory -publish/ - -# Publish Web Output -*.[Pp]ublish.xml -*.azurePubxml -# TODO: Comment the next line if you want to checkin your web deploy settings -# but database connection strings (with potential passwords) will be unencrypted -*.pubxml -*.publishproj - -# NuGet Packages -*.nupkg -# The packages folder can be ignored because of Package Restore -**/packages/* -# except build/, which is used as an MSBuild target. -!**/packages/build/ -# If using the old MSBuild-Integrated Package Restore, uncomment this: -#!**/packages/repositories.config - -# Windows Azure Build Output -csx/ -*.build.csdef - -# Windows Store app package directory -AppPackages/ - -# Others -sql/ -*.Cache -ClientBin/ -[Ss]tyle[Cc]op.* -~$* -*~ -*.dbmdl -*.dbproj.schemaview -*.pfx -*.publishsettings -node_modules/ - -# RIA/Silverlight projects -Generated_Code/ - -# Backup & report files from converting an old project file -# to a newer Visual Studio version. Backup files are not needed, -# because we have git ;-) -_UpgradeReport_Files/ -Backup*/ -UpgradeLog*.XML -UpgradeLog*.htm - -# SQL Server files -*.mdf -*.ldf - -# Business Intelligence projects -*.rdl.data -*.bim.layout -*.bim_*.settings - -# Microsoft Fakes -FakesAssemblies/ - -# ========================= -# Operating System Files -# ========================= - -# OSX -# ========================= +# Visual Studio +.vs/ +*.user +*.suo +# OS .DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear on external disk -.Spotlight-V100 -.Trashes - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -# Windows -# ========================= - -# Windows image file caches Thumbs.db -ehthumbs.db - -# Folder config file -Desktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msm -*.msp -*.dropbox -.dropbox.attr -LiveSplit/LiveSplit.Core/Updates/GitInfo/branch.txt -LiveSplit/LiveSplit.Core/Updates/GitInfo/version.txt -LiveSplit/LiveSplit.Core/Updates/GitInfo/revision.txt -.vs diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..1038ab5 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: MIT +// Copyright 2026 Beslogic Inc. +// +// The source skeleton for this configuration can be found at +// https://github.com/BesLogic/shared-configs/blob/main/.vscode/extensions.json +// Modifications to this file that are not project-specific should also be done upstream. +{ + // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. + // List of extensions which should be recommended for users of this workspace. + // Only keep those used by your specific project + "recommendations": [ + // General + "eamodio.gitlens", + "editorconfig.editorconfig", + "pkief.material-icon-theme", + // GitHub + "bierner.github-markdown-preview", + "github.vscode-github-actions", + // C# + "ms-dotnettools.csharp", + // "ms-dotnettools.csdevkit", + // Markdown + "bierner.github-markdown-preview", + "davidanson.vscode-markdownlint", + // XML + "redhat.vscode-xml", + // YAML + "redhat.vscode-yaml", + // + // Add your project's framework-specific and project-specific extensions under here + ], +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..e162952 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,115 @@ +// SPDX-License-Identifier: MIT +// Copyright 2026 Beslogic Inc. +// +// The source skeleton for this configuration can be found at +// https://github.com/BesLogic/shared-configs/blob/main/.vscode/settings.json +// Modifications to this file that are not project-specific should also be done upstream. +{ + /* + * General + */ + "files.associations": { + "*.json": "jsonc", + }, + "editor.rulers": [ + 80, + 100 + ], + "editor.detectIndentation": false, + "editor.tabSize": 2, + "editor.insertSpaces": true, + "editor.comments.insertSpace": true, + "files.eol": "\n", + "files.insertFinalNewline": true, + "files.trimFinalNewlines": true, + "files.trimTrailingWhitespace": true, + "editor.bracketPairColorization.enabled": true, + "editor.formatOnSave": true, + "editor.formatOnSaveMode": "file", + "editor.codeActionsOnSave": { + "source.fixAll": "explicit", + // Clearing unreachable code when doing a quick temporary change is annoying + "source.fixAll.ts": "never", + // "source.*Imports": https://github.com/microsoft/TypeScript/pull/50931#issuecomment-1416288712 + // Let dedicated imports tool deal with it + "source.organizeImports": "never", + "source.sortImports": "never", + // IDEM, but also it's annoying to remove imports because of commented code while testing + "source.removeUnusedImports": "never", + }, + /* + * Git + */ + "[git-commit]": { + "editor.rulers": [ + 72 + ] + }, + "[diff]": { + "files.trimTrailingWhitespace": false, + }, + "search.useParentIgnoreFiles": true, + "git.openRepositoryInParentFolders": "always", + // In case the dev never ran `git config --local blame.ignoreRevsFile .git-blame-ignore-revs` + "gitlens.advanced.blame.customArguments": [ + "--ignore-revs-file", + ".git-blame-ignore-revs" + ], + // NOTE: due to a bug in VSCode, we have to specify editor.defaultFormatter individually to ensure + // it overrides user settings. Please upvote: https://github.com/microsoft/vscode/issues/168411 + /* + * C-Sharp + */ + "[csharp]": { + // TODO: Consider something like CSharpier for more complete formatting + "editor.defaultFormatter": "ms-dotnettools.csharp", + }, + "dotnet.formatting.organizeImportsOnFormat": true, + /* + * Markdown + */ + "[markdown]": { + "files.trimTrailingWhitespace": false, + "editor.defaultFormatter": "vscode.markdown-language-features", + }, + /* + * JSON + */ + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features", + }, + "[jsonc]": { + "editor.defaultFormatter": "vscode.json-language-features", + }, + "json.schemas": [ + { + // Not all .jsonc files have a pre-associated schema + "fileMatch": [ + "*.jsonc", + "*.json5" + ], + "schema": { + "allowTrailingCommas": true + }, + } + ], + /* + * YAML + */ + "[yaml]": { + "editor.defaultFormatter": "redhat.vscode-yaml", + }, + "[github-actions-workflow]": { + "editor.defaultFormatter": "redhat.vscode-yaml", + }, + "yaml.schemas": { + "https://json.schemastore.org/github-issue-config.json": ".github/ISSUE_TEMPLATE/config.yml", + }, + /* + * XML + */ + "[xml]": { + "editor.defaultFormatter": "redhat.vscode-xml", + }, + "xml.codeLens.enabled": true, +} diff --git a/LiveSplit.AutoSplitIntegration.csproj b/LiveSplit.AutoSplitIntegration.csproj index beb7b62..61104f0 100644 --- a/LiveSplit.AutoSplitIntegration.csproj +++ b/LiveSplit.AutoSplitIntegration.csproj @@ -1,105 +1,84 @@ - - - + + - Debug - AnyCPU - {8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397} + latest + enable + + + true + + + true + + + true + moderate + + $(WarningsAsErrors);NU1903;NU1904 + + all + + + + net481 + true Library LiveSplit LiveSplit.AutoSplitIntegration - v4.6.1 - 512 - false true - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - false - true + false + + + LiveSplit.AutoSplitIntegration + Directly connects AutoSplit with LiveSplit. + Toufool + Copyright © 2026 + + 1.8.3 - - AnyCPU - true - full - false + + + update\Components\ - DEBUG;TRACE - prompt - 4 - - - - AnyCPU - pdbonly - true + ..\..\bin\Release\Components\ - TRACE - prompt - 4 - - - + - - - - UserControl - - - AutoSplitIntegrationComponentSettings.cs - - - - - - - + + - ..\..\..\Documents\LiveSplit\LiveSplit.exe + lib\LiveSplit.exe + false - ..\..\..\Documents\LiveSplit\LiveSplit.Core.dll + lib\LiveSplit.Core.dll + false - - - - - ..\..\..\Documents\LiveSplit\UpdateManager.dll + lib\UpdateManager.dll + false + + - - - False - Microsoft .NET Framework 4.6.1 %28x86 and x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - - AutoSplitIntegrationComponentSettings.cs - - - - - - - \ No newline at end of file + diff --git a/LiveSplit.AutoSplitIntegration.sln b/LiveSplit.AutoSplitIntegration.sln deleted file mode 100644 index fddc302..0000000 --- a/LiveSplit.AutoSplitIntegration.sln +++ /dev/null @@ -1,25 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.30011.22 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveSplit.AutoSplitIntegration", "LiveSplit.AutoSplitIntegration.csproj", "{8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8DEB033B-6D0F-4301-9CB4-ABDC3DEFD397}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {CBC1EDDD-B566-4239-95C4-F15AFA594D0A} - EndGlobalSection -EndGlobal diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs deleted file mode 100644 index 7bf8d4f..0000000 --- a/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Reflection; -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("LiveSplit.AutoSplitIntegration")] -[assembly: AssemblyDescription("Directly connects AutoSplit with LiveSplit.")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("LiveSplit.AutoSplitIntegration")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[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("a007166e-78ab-468a-bc1f-64f88bb9407f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/README.md b/README.md index 9ca5165..959db9c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# AutoSplit Integration +# AutoSplit Integration [![Build](/../../actions/workflows/build.yml/badge.svg)](/../../actions/workflows/build.yml) [![SemVer](https://badgen.net/badge/_/SemVer%20compliant/grey?label)](https://semver.org/) Directly connects [AutoSplit](https://github.com/Toufool/Auto-Split) with [LiveSplit](https://github.com/LiveSplit/LiveSplit). @@ -20,9 +20,48 @@ Directly connects [AutoSplit](https://github.com/Toufool/Auto-Split) with [LiveS ## Compiling -- Clone/download LiveSplit and this repository -- Open it in [Visual Studio 2019](https://visualstudio.microsoft.com/vs) +Requirements: + +- The [.NET SDK 10.x](https://dotnet.microsoft.com/download) +- The [.NET Framework 4.8.1 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net481) +- Optionally [Visual Studio 2022](https://visualstudio.microsoft.com/vs) + +Then either: + +- Run `dotnet build --configuration Release`, or +- Open `LiveSplit.AutoSplitIntegration.csproj` in Visual Studio 2022 and build. + +The LiveSplit assemblies needed to compile (`LiveSplit.exe`, `LiveSplit.Core.dll`, +`UpdateManager.dll`) are vendored under [`lib/`](lib/) — you do **not** need a separate +LiveSplit checkout. See [`lib/README.md`](lib/README.md) to refresh them. + +## Releasing a new version + +The plugin uses LiveSplit's built-in component auto-updater: each LiveSplit install +polls the factory's `XMLURL`, and offers an update when a listed `` +is newer than the installed component's `Version`. + +The version is defined **once**, in +[`LiveSplit.AutoSplitIntegration.csproj`](LiveSplit.AutoSplitIntegration.csproj) +(``). `AssemblyVersion`/`FileVersion` derive from it, and the factory's +`Version` reads it back at runtime — no other source file needs editing. + +To publish a release: + +1. Bump `` in + [`LiveSplit.AutoSplitIntegration.csproj`](LiveSplit.AutoSplitIntegration.csproj). +2. Prepend a matching `` entry, with a changelog, to + [`update/Components/update.LiveSplit.AutoSplitIntegration.xml`](update/Components/update.LiveSplit.AutoSplitIntegration.xml). + Its version must equal the new ``. +3. `dotnet build --configuration Release`, then copy the produced + `LiveSplit.AutoSplitIntegration.dll` into + [`update/Components/`](update/Components/) and commit it — this committed DLL is what + installs download. (Release output goes to `../../bin/Release/Components/`; only a + Debug build writes straight to `update/Components/`.) +4. Push to the branch the updater URLs point at + (`Toufool/LiveSplit.AutoSplitIntegration`, `main`), then create a GitHub release. ## Resources -- Still need help? [Open an issue](../../issues) + +- Still need help? [Open an issue](../../../AutoSplit/issues) - Join the [AutoSplit Discord](https://discord.gg/Qcbxv9y) diff --git a/UI/Components/AutoSplitIntegrationComponent.cs b/UI/Components/AutoSplitIntegrationComponent.cs index b2344a0..e932655 100644 --- a/UI/Components/AutoSplitIntegrationComponent.cs +++ b/UI/Components/AutoSplitIntegrationComponent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Drawing; using System.IO; @@ -157,4 +157,4 @@ private void State_OnReset(object sender, TimerPhase e) private void State_OnUndoSplit(object sender, EventArgs e) => AutoSplit.Send("undo"); } -} \ No newline at end of file +} diff --git a/UI/Components/AutoSplitIntegrationComponentSettings.cs b/UI/Components/AutoSplitIntegrationComponentSettings.cs index 57ceb3f..3d03174 100644 --- a/UI/Components/AutoSplitIntegrationComponentSettings.cs +++ b/UI/Components/AutoSplitIntegrationComponentSettings.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Reflection; using System.Windows.Forms; @@ -145,4 +145,4 @@ private void ButtonSettingsPathBrowse_Click(object sender, EventArgs e) private void TextBoxSettingsPath_TextChanged(object sender, EventArgs e) => component.SettingsPath = textBoxSettingsPath.Text; } -} \ No newline at end of file +} diff --git a/UI/Components/AutoSplitIntegrationFactory.cs b/UI/Components/AutoSplitIntegrationFactory.cs index a49ff69..c7245c9 100644 --- a/UI/Components/AutoSplitIntegrationFactory.cs +++ b/UI/Components/AutoSplitIntegrationFactory.cs @@ -1,4 +1,4 @@ -using System; +using System; using LiveSplit.Model; using LiveSplit.UI.Components; @@ -14,14 +14,14 @@ public class AutoSplitIntegrationFactory : IComponentFactory public ComponentCategory Category => ComponentCategory.Control; - public Version Version => Version.Parse("1.8.2"); + public Version Version => GetType().Assembly.GetName().Version; public string UpdateName => ComponentName; - public string UpdateURL => "https://raw.githubusercontent.com/KaDiWa4/LiveSplit.AutoSplitIntegration/master/update/Components/"; + public string UpdateURL => "https://raw.githubusercontent.com/Toufool/LiveSplit.AutoSplitIntegration/main/update/Components/"; - public string XMLURL => "https://raw.githubusercontent.com/KaDiWa4/LiveSplit.AutoSplitIntegration/master/update/Components/update.LiveSplit.AutoSplitIntegration.xml"; + public string XMLURL => "https://raw.githubusercontent.com/Toufool/LiveSplit.AutoSplitIntegration/main/update/Components/update.LiveSplit.AutoSplitIntegration.xml"; public IComponent Create(LiveSplitState state) => new AutoSplitIntegrationComponent(state); } -} \ No newline at end of file +} diff --git a/UI/Components/AutoSplitProcess.cs b/UI/Components/AutoSplitProcess.cs index 88c6f5e..8f98c55 100644 --- a/UI/Components/AutoSplitProcess.cs +++ b/UI/Components/AutoSplitProcess.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Diagnostics; using System.IO; using LiveSplit.Model; diff --git a/lib/LiveSplit.Core.dll b/lib/LiveSplit.Core.dll new file mode 100644 index 0000000..f31ab4b Binary files /dev/null and b/lib/LiveSplit.Core.dll differ diff --git a/lib/LiveSplit.exe b/lib/LiveSplit.exe new file mode 100644 index 0000000..562c851 Binary files /dev/null and b/lib/LiveSplit.exe differ diff --git a/lib/README.md b/lib/README.md new file mode 100644 index 0000000..015e400 --- /dev/null +++ b/lib/README.md @@ -0,0 +1,23 @@ +# Vendored LiveSplit reference assemblies + +These are **third-party build-time reference assemblies from LiveSplit**, required to +compile this plugin. They are **not** redistributed with the plugin: at runtime the +LiveSplit host process provides them, so the project references them with +`false` (they are not copied into the build output). + +| File | Purpose | +| -------------------- | --------------------------------------------------- | +| `LiveSplit.exe` | Host app assembly (`LiveSplit.UI.Components`, etc.) | +| `LiveSplit.Core.dll` | Core model/timer types (`LiveSplitState`, …) | +| `UpdateManager.dll` | Component auto-update interfaces | + +## Pinned version + +Currently pinned to **LiveSplit 1.8.37**. + +## How to refresh + +1. Download the latest release zip from (e.g. `LiveSplit_x.y.z.zip`). +2. Extract it and copy `LiveSplit.exe`, `LiveSplit.Core.dll`, and `UpdateManager.dll` from the archive root into this `lib/` folder, overwriting the existing files. +3. Update the **Pinned version** above. +4. Rebuild and commit. diff --git a/lib/UpdateManager.dll b/lib/UpdateManager.dll new file mode 100644 index 0000000..9869026 Binary files /dev/null and b/lib/UpdateManager.dll differ diff --git a/packages.lock.json b/packages.lock.json new file mode 100644 index 0000000..a9d80ee --- /dev/null +++ b/packages.lock.json @@ -0,0 +1,21 @@ +{ + "version": 1, + "dependencies": { + ".NETFramework,Version=v4.8.1": { + "Microsoft.NETFramework.ReferenceAssemblies": { + "type": "Direct", + "requested": "[1.0.3, )", + "resolved": "1.0.3", + "contentHash": "vUc9Npcs14QsyOD01tnv/m8sQUnGTGOw1BCmKcv77LBJY7OxhJ+zJF7UD/sCL3lYNFuqmQEVlkfS4Quif6FyYg==", + "dependencies": { + "Microsoft.NETFramework.ReferenceAssemblies.net481": "1.0.3" + } + }, + "Microsoft.NETFramework.ReferenceAssemblies.net481": { + "type": "Transitive", + "resolved": "1.0.3", + "contentHash": "Vv/20vgHS7VglVOVh8J3Iz/MA+VYKVRp9f7r2qiKBMuzviTOmocG70yq0Q8T5OTmCONkEAIJwETD1zhEfLkAXQ==" + } + } + } +} \ No newline at end of file diff --git a/update/Components/LiveSplit.AutoSplitIntegration.dll b/update/Components/LiveSplit.AutoSplitIntegration.dll index 0f549a1..3ad2e82 100644 Binary files a/update/Components/LiveSplit.AutoSplitIntegration.dll and b/update/Components/LiveSplit.AutoSplitIntegration.dll differ diff --git a/update/Components/update.LiveSplit.AutoSplitIntegration.xml b/update/Components/update.LiveSplit.AutoSplitIntegration.xml index 5de8017..fcd2955 100644 --- a/update/Components/update.LiveSplit.AutoSplitIntegration.xml +++ b/update/Components/update.LiveSplit.AutoSplitIntegration.xml @@ -1,5 +1,13 @@  + + + + + + Rebuilt on .NET Framework 4.8.1. Updated the auto-update source. + +