Skip to content

Show Win32 version info for all PE files (native and managed) #9

Show Win32 version info for all PE files (native and managed)

Show Win32 version info for all PE files (native and managed) #9

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Restore dependencies
run: dotnet restore AssemblyInformation.sln
- name: Publish single-file exe
run: dotnet publish AssemblyInformation/AssemblyInformation.csproj -c Release -r win-x64 --no-self-contained -p:PublishSingleFile=true -o publish
- name: Build shell extension
run: msbuild AssemblyInformationShellExt/AssemblyInformation.vcxproj /p:Configuration=Release /p:Platform=x64
- name: Create release zip
run: |
$stagingDir = "staging"
New-Item -ItemType Directory -Path $stagingDir
Copy-Item publish\AssemblyInformation.exe $stagingDir\
Copy-Item AssemblyInformationShellExt\bin\Release\AssemblyInformation.dll $stagingDir\
Copy-Item install.cmd $stagingDir\
Copy-Item uninstall.cmd $stagingDir\
Compress-Archive -Path $stagingDir\* -DestinationPath AssemblyInformation-${{ github.ref_name }}-win-x64.zip
shell: pwsh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
body: |
**[Download AssemblyInformation-${{ github.ref_name }}-win-x64.zip](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/AssemblyInformation-${{ github.ref_name }}-win-x64.zip)**
**Requires:** [.NET 8 Desktop Runtime](https://dotnet.microsoft.com/download/dotnet/8.0) or newer
### Installation
1. Download and extract the zip
2. Run `install.cmd` as Administrator
3. Right-click any .dll or .exe in Explorer → "Assembly Information"
To uninstall, run `uninstall.cmd` as Administrator.
files: |
AssemblyInformation-${{ github.ref_name }}-win-x64.zip