Skip to content

Commit

Permalink
Fixed file version and changed CI so ZIP single DLL have their file v…
Browse files Browse the repository at this point in the history
…ersion instead of the global. Fixes #2
  • Loading branch information
luskaner committed Nov 7, 2024
1 parent f865a01 commit 105d228
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
8 changes: 4 additions & 4 deletions age2/FakeOnline/Age2FakeOnline.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion age3/FakeOnline/Age3FakeOnline.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 105d228

Please sign in to comment.