From 105d2283a22bd4b24ff47723f662c6436263fc16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Fern=C3=A1ndez=20Aldana?= Date: Thu, 7 Nov 2024 14:40:50 +0100 Subject: [PATCH] Fixed file version and changed CI so ZIP single DLL have their file version instead of the global. Fixes #2 --- .github/workflows/release.yml | 3 ++- age2/FakeOnline/Age2FakeOnline.rc | 8 ++++---- age3/FakeOnline/Age3FakeOnline.rc | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 430e72c..5a8ddcf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,8 @@ jobs: run: | $files = Get-ChildItem -Path "${{ env.GITHUB_RELEASE_FOLDER }}" -Filter *.dll foreach ($file in $files) { - $newName = "${{ github.event.repository.name }}_$($file.BaseName)_${{ github.ref_name }}.dll" + $fileVersion = (Get-Item $file).VersionInfo.FileVersion + $newName = "${{ github.event.repository.name }}_$($file.BaseName)_$($fileVersion).dll" Rename-Item -Path $file.FullName -NewName $newName } diff --git a/age2/FakeOnline/Age2FakeOnline.rc b/age2/FakeOnline/Age2FakeOnline.rc index 7d94004..e74e9fb 100644 --- a/age2/FakeOnline/Age2FakeOnline.rc +++ b/age2/FakeOnline/Age2FakeOnline.rc @@ -50,8 +50,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,0,0,1 - PRODUCTVERSION 1,0,0,1 + FILEVERSION 1,0,0,0 + PRODUCTVERSION 1,2,0,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -68,12 +68,12 @@ BEGIN BEGIN VALUE "CompanyName", "luskaner" VALUE "FileDescription", "Fake an always online status" - VALUE "FileVersion", "1.0.0.1" + VALUE "FileVersion", "1.0.0.0" VALUE "InternalName", "Age2FakeOnline.dll" VALUE "LegalCopyright", "Copyright (C) 2024 - https://github.com/luskaner/ageLANServerLauncherCompanion" VALUE "OriginalFilename", "Age2FakeOnline.dll" VALUE "ProductName", "Age2FakeOnline" - VALUE "ProductVersion", "1.0.0.1" + VALUE "ProductVersion", "1.2.0.0" END END BLOCK "VarFileInfo" diff --git a/age3/FakeOnline/Age3FakeOnline.rc b/age3/FakeOnline/Age3FakeOnline.rc index 500f31d..7f3434a 100644 --- a/age3/FakeOnline/Age3FakeOnline.rc +++ b/age3/FakeOnline/Age3FakeOnline.rc @@ -73,7 +73,7 @@ BEGIN VALUE "LegalCopyright", "Copyright (C) 2024 - https://github.com/luskaner/ageLANServerLauncherCompanion" VALUE "OriginalFilename", "Age3FakeOnline.dll" VALUE "ProductName", "Age3FakeOnline" - VALUE "ProductVersion", "1.0.0.0" + VALUE "ProductVersion", "1.2.0.0" END END BLOCK "VarFileInfo"