Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
9905bcf
add submodul
AnakinRaW May 24, 2025
7beeb37
update deps
AnakinRaW May 24, 2025
47fd1b2
update deps
AnakinRaW May 24, 2025
e3995dd
integrate moddingtoolbase code
AnakinRaW May 24, 2025
c0a257c
implement and test argument parser
AnakinRaW Jun 6, 2025
09c1c03
update namespace
AnakinRaW Jun 6, 2025
cf08182
move option parsing from boostrap to app code
AnakinRaW Jun 9, 2025
ddad693
update deps
AnakinRaW Jun 9, 2025
e8c4c5a
update subs
AnakinRaW Jun 9, 2025
27f9a1f
update sub
AnakinRaW Jun 9, 2025
023e3b6
update deps
AnakinRaW Jul 1, 2025
79467ac
add settings build exception handling
AnakinRaW Jul 1, 2025
748bc42
add json schema for baseline
AnakinRaW Jul 1, 2025
4ab8e65
fix tests
AnakinRaW Jul 1, 2025
6987b6e
update subs
AnakinRaW Jul 1, 2025
35c94ea
start feature: searching for local baselines
AnakinRaW Jul 14, 2025
a95042c
update deps
AnakinRaW Jul 14, 2025
6099fcb
update sub
AnakinRaW Jul 14, 2025
09a7647
minor simplifications
AnakinRaW Aug 16, 2025
132b520
update module
AnakinRaW Aug 16, 2025
2bdaa69
test on .net framework too
AnakinRaW Aug 16, 2025
fb43533
simplify
AnakinRaW Aug 16, 2025
76a6140
reenable update check and added default baseline
AnakinRaW Aug 16, 2025
3e652d5
update sub
AnakinRaW Aug 16, 2025
aa94cda
print used baseline file
AnakinRaW Aug 16, 2025
8ec90c5
make marker static
AnakinRaW Aug 16, 2025
df67160
fix test
AnakinRaW Aug 16, 2025
7469b20
some cli improvements
AnakinRaW Aug 17, 2025
be15b41
update sub
AnakinRaW Aug 17, 2025
cf536dd
update module
AnakinRaW Aug 20, 2025
de3590f
update logging
AnakinRaW Aug 25, 2025
6bb6143
mrege
AnakinRaW Aug 25, 2025
b3b513c
update
AnakinRaW Aug 25, 2025
89a8b91
Merge branch 'auto-update' of https://github.com/AlamoEngine-Tools/Mo…
AnakinRaW Aug 25, 2025
37dbd85
update deps
AnakinRaW Aug 25, 2025
83f552e
update sub
AnakinRaW Aug 25, 2025
a7b6d70
start update impl
AnakinRaW Aug 26, 2025
4305692
horizontal frame supports native console
AnakinRaW Aug 30, 2025
6a90e18
update sub
AnakinRaW Aug 30, 2025
1bedc56
update sub
AnakinRaW Sep 1, 2025
fdad3f2
update sub
AnakinRaW Sep 1, 2025
7d12612
git pull
AnakinRaW Oct 1, 2025
98c165a
update dependencies
AnakinRaW Dec 7, 2025
9b4834d
update logging
AnakinRaW Dec 7, 2025
8147e95
update modules
AnakinRaW Dec 7, 2025
dc238f0
update logging
AnakinRaW Dec 7, 2025
90c51bc
update module
AnakinRaW Dec 7, 2025
7f44bd5
update ci to .net 10
AnakinRaW Dec 7, 2025
b482fe5
Merge branch 'develop' into auto-update
AnakinRaW Dec 7, 2025
1f2e573
fix test
AnakinRaW Dec 7, 2025
d56a906
mograte to new solution file
AnakinRaW Dec 7, 2025
7b18778
update module
AnakinRaW Dec 7, 2025
f9baac2
fix ci
AnakinRaW Dec 7, 2025
0fef562
deploy to server
AnakinRaW Dec 7, 2025
e95a54d
update config
AnakinRaW Dec 7, 2025
e08c757
new publish
AnakinRaW Dec 7, 2025
0dfbc54
try fix deploy
AnakinRaW Dec 7, 2025
5b32d69
fix launch of uploader
AnakinRaW Dec 7, 2025
27785a4
update module
AnakinRaW Dec 7, 2025
23e56c7
udpate version
AnakinRaW Dec 7, 2025
61dd6ca
update dependencies
AnakinRaW Dec 8, 2025
2c60e80
logging again
AnakinRaW Dec 8, 2025
7ceeb88
logigng
AnakinRaW Dec 8, 2025
27e603d
logging der 5.
AnakinRaW Dec 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 43 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:

env:
TOOL_PROJ_PATH: ./src/ModVerify.CliApp/ModVerify.CliApp.csproj
CREATOR_PROJ_PATH: ./Modules/ModdingToolBase/src/AnakinApps/ApplicationManifestCreator/ApplicationManifestCreator.csproj
UPLOADER_PROJ_PATH: ./Modules/ModdingToolBase/src/AnakinApps/FtpUploader/FtpUploader.csproj
CREATOR_PROJ_PATH: ./modules/ModdingToolBase/src/AnakinApps/ApplicationManifestCreator/ApplicationManifestCreator.csproj
UPLOADER_PROJ_PATH: ./modules/ModdingToolBase/src/AnakinApps/FtpUploader/FtpUploader.csproj
TOOL_EXE: ModVerify.exe
UPDATER_EXE: AnakinRaW.ExternalUpdater.exe
MANIFEST_CREATOR: AnakinRaW.ApplicationManifestCreator.dll
Expand All @@ -35,18 +35,20 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
uses: actions/setup-dotnet@v5
- name: Create NetFramework Release
run: dotnet publish ${{ env.TOOL_PROJ_PATH }} --configuration Release -f net48 --output ./releases/net48 /p:DebugType=None /p:DebugSymbols=false
# use build for .NET Framework to enusre external updatere .EXE is included
run: dotnet build ${{ env.TOOL_PROJ_PATH }} --configuration Release -f net481 --output ./releases/net481 /p:DebugType=None /p:DebugSymbols=false
- name: Create Net Core Release
run: dotnet publish ${{ env.TOOL_PROJ_PATH }} --configuration Release -f net9.0 --output ./releases/net9.0 /p:DebugType=None /p:DebugSymbols=false
# use publish for .NET Core
run: dotnet publish ${{ env.TOOL_PROJ_PATH }} --configuration Release -f net10.0 --output ./releases/net10.0 /p:DebugType=None /p:DebugSymbols=false
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: Binary Releases
path: ./releases
Expand All @@ -62,17 +64,45 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/download-artifact@v5
submodules: recursive
- uses: actions/download-artifact@v6
with:
name: Binary Releases
path: ./releases

# Deploy .NET Framework self-update release
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Build Creator
run: dotnet build ${{env.CREATOR_PROJ_PATH}} --configuration Release --output ./dev
- name: Build Uploader
run: dotnet build ${{env.UPLOADER_PROJ_PATH}} --configuration Release --output ./dev
- name: Create binaries directory
run: mkdir -p ./deploy
- name: Copy self-update files
run: |
cp ./releases/net481/${{env.TOOL_EXE}} ./deploy/
cp ./releases/net481/${{env.UPDATER_EXE}} ./deploy/
- name: Create Manifest
run: dotnet ./dev/${{env.MANIFEST_CREATOR}} -a deploy/${{env.TOOL_EXE}} --appDataFiles deploy/${{env.UPDATER_EXE}} --origin ${{env.ORIGIN_BASE}} -o ./deploy -b ${{env.BRANCH_NAME}}
- name: Upload Build
run: dotnet ./dev/${{env.SFTP_UPLOADER}} ftp --host $host --port $port -u ${{secrets.SFTP_USER}} -p ${{secrets.SFTP_PASSWORD}} --base $base_path -s $source
env:
host: republicatwar.com
port: 1579
base_path: ${{env.ORIGIN_BASE_PART}}
source: ./deploy

# Deploy .NET Core and .NET Framework apps to Github
- name: Create NET Core .zip
# Change into the artifacts directory to avoid including the directory itself in the zip archive
working-directory: ./releases/net9.0
run: zip -r ../ModVerify-Net9.zip .
working-directory: ./releases/net10.0
run: zip -r ../ModVerify-Net10.zip .
- uses: dotnet/nbgv@v0.4.2
id: nbgv
- name: Create GitHub release
Expand All @@ -86,5 +116,5 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
files: |
./releases/net48/ModVerify.exe
./releases/ModVerify-Net9.zip
./releases/net481/ModVerify.exe
./releases/ModVerify-Net10.zip
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
dotnet-version: 10.0.x
- name: Build & Test in Release Mode
run: dotnet test --configuration Release
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "modules/ModdingToolBase"]
path = modules/ModdingToolBase
url = https://github.com/AnakinRaW/ModdingToolBase
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</PropertyGroup>

<PropertyGroup>
<LangVersion>latest</LangVersion>
<LangVersion>preview</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<EnableNETAnalyzers>True</EnableNETAnalyzers>
Expand All @@ -39,7 +39,7 @@
</PackageReference>
<PackageReference Include="Nerdbank.GitVersioning" Condition="!Exists('packages.config')">
<PrivateAssets>all</PrivateAssets>
<Version>3.7.115</Version>
<Version>3.9.50</Version>
</PackageReference>
<None Include="$(MSBuildThisFileDirectory)README.md" Pack="true" PackagePath="" />
</ItemGroup>
Expand Down
63 changes: 0 additions & 63 deletions ModVerify.sln

This file was deleted.

28 changes: 28 additions & 0 deletions ModVerify.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Solution>
<Folder Name="/ModdingToolBase/" />
<Folder Name="/ModdingToolBase/AnakinApps/">
<Project Path="modules/ModdingToolBase/src/AnakinApps/ApplicationBase.CommandLine/ApplicationBase.CommandLine.csproj" />
<Project Path="modules/ModdingToolBase/src/AnakinApps/ApplicationBase.Shared/ApplicationBase.Shared.shproj" />
<Project Path="modules/ModdingToolBase/src/AnakinApps/ApplicationBase/ApplicationBase.csproj" />
</Folder>
<Folder Name="/ModdingToolBase/DeployTools/">
<Project Path="modules/ModdingToolBase/src/AnakinApps/ApplicationManifestCreator/ApplicationManifestCreator.csproj" />
<Project Path="modules/ModdingToolBase/src/AnakinApps/FtpUploader/FtpUploader.csproj" />
</Folder>
<Folder Name="/ModdingToolBase/UpdateFrameworks/">
<Project Path="modules/ModdingToolBase/src/Updater/AppUpdaterFramework.Attributes/AppUpdaterFramework.Attributes.csproj" />
<Project Path="modules/ModdingToolBase/src/Updater/AppUpdaterFramework.Manifest/AppUpdaterFramework.Manifest.csproj" />
<Project Path="modules/ModdingToolBase/src/Updater/AppUpdaterFramework/AppUpdaterFramework.csproj" />
<Project Path="modules/ModdingToolBase/src/Updater/ExternalUpdater.App/ExternalUpdater.App.csproj" />
<Project Path="modules/ModdingToolBase/src/Updater/ExternalUpdater.Core/ExternalUpdater.Core.csproj" />
</Folder>
<Folder Name="/PetroglyphTools/">
<Project Path="src/PetroglyphTools/PG.StarWarsGame.Engine/PG.StarWarsGame.Engine.csproj" />
<Project Path="src/PetroglyphTools/PG.StarWarsGame.Files.ALO/PG.StarWarsGame.Files.ALO.csproj" />
<Project Path="src/PetroglyphTools/PG.StarWarsGame.Files.ChunkFiles/PG.StarWarsGame.Files.ChunkFiles.csproj" />
<Project Path="src/PetroglyphTools/PG.StarWarsGame.Files.XML/PG.StarWarsGame.Files.XML.csproj" />
</Folder>
<Project Path="src/ModVerify.CliApp/ModVerify.CliApp.csproj" />
<Project Path="src/ModVerify/ModVerify.csproj" />
<Project Path="test/ModVerify.CliApp.Test/ModVerify.CliApp.Test.csproj" />
</Solution>
1 change: 1 addition & 0 deletions modules/ModdingToolBase
Submodule ModdingToolBase added at 479a08
94 changes: 0 additions & 94 deletions src/ModVerify.CliApp/ConsoleUtilities.cs

This file was deleted.

17 changes: 0 additions & 17 deletions src/ModVerify.CliApp/ExtensionMethods.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/ModVerify.CliApp/GameFinder/GameFinderResult.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PG.StarWarsGame.Infrastructure.Games;

namespace AET.ModVerifyTool.GameFinder;
namespace AET.ModVerify.App.GameFinder;

internal record GameFinderResult(IGame Game, IGame? FallbackGame);
10 changes: 6 additions & 4 deletions src/ModVerify.CliApp/GameFinder/GameFinderService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using PG.StarWarsGame.Infrastructure.Services;
using PG.StarWarsGame.Infrastructure.Services.Detection;

namespace AET.ModVerifyTool.GameFinder;
namespace AET.ModVerify.App.GameFinder;

internal class GameFinderService
{
Expand Down Expand Up @@ -79,7 +79,7 @@ private bool TryDetectGame(GameType gameType, IList<IGameDetector> detectors, ou
catch (Exception e)
{
result = GameDetectionResult.NotInstalled(gameType);
_logger?.LogTrace($"Unable to find game installation: {e.Message}");
_logger?.LogTrace("Unable to find game installation: {Message}", e.Message);
return false;
}
}
Expand All @@ -97,7 +97,8 @@ private GameFinderResult FindGames(IList<IGameDetector> detectors)
if (result.GameLocation is null)
throw new GameNotFoundException("Unable to find game installation: Wrong install path?");

_logger?.LogInformation($"Found game installation: {result.GameIdentity} at {result.GameLocation.FullName}");
_logger?.LogInformation(ModVerifyConstants.ConsoleEventId,
"Found game installation: {ResultGameIdentity} at {GameLocationFullName}", result.GameIdentity, result.GameLocation.FullName);

var game = _gameFactory.CreateGame(result, CultureInfo.InvariantCulture);

Expand All @@ -118,7 +119,8 @@ private GameFinderResult FindGames(IList<IGameDetector> detectors)
if (!TryDetectGame(GameType.Eaw, fallbackDetectors, out var fallbackResult) || fallbackResult.GameLocation is null)
throw new GameNotFoundException("Unable to find fallback game installation: Wrong install path?");

_logger?.LogInformation($"Found fallback game installation: {fallbackResult.GameIdentity} at {fallbackResult.GameLocation.FullName}");
_logger?.LogInformation(ModVerifyConstants.ConsoleEventId,
"Found fallback game installation: {FallbackResultGameIdentity} at {GameLocationFullName}", fallbackResult.GameIdentity, fallbackResult.GameLocation.FullName);

fallbackGame = _gameFactory.CreateGame(fallbackResult, CultureInfo.InvariantCulture);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using PG.StarWarsGame.Infrastructure.Games;

namespace AET.ModVerifyTool;
namespace AET.ModVerify.App.GameFinder;

internal class GameNotFoundException(string message) : GameException(message);
Loading
Loading