From 2f4efe4e50089fe00f60c05063259ee74f10433d Mon Sep 17 00:00:00 2001 From: goat Date: Sat, 10 Dec 2022 11:30:11 +0100 Subject: [PATCH] chore: output assembly ver for builds --- .github/workflows/main.yml | 10 +--------- Dalamud/Dalamud.csproj | 7 +++++++ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8d87e0f6c..7631e8242 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,12 +56,6 @@ jobs: run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" id: extract_branch - # GitHub only ships the LTS, which is stuck on .NET 6 - - name: Install PowerShell latest - shell: pwsh - run: | - Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI -Quiet" - - name: Generate dalamud-distrib version file shell: pwsh env: @@ -75,9 +69,7 @@ jobs: $branchName = "stg" } - $dllBytes = [System.IO.File]::ReadAllBytes("$(Get-Location)\scratch\Dalamud.dll") - $assembly = [System.Reflection.Assembly]::Load($dllBytes) - $newVersion = $assembly.GetCustomAttributes([System.Reflection.AssemblyMetadataAttribute]) | Where { $_.GetType() -eq [System.Reflection.AssemblyMetadataAttribute] } | Select -First 1 | Select -ExpandProperty "Value" + $newVersion = [System.IO.File]::ReadAllText("$(Get-Location)\scratch\TEMP_assver.txt") Remove-Item -Force -Recurse .\scratch if (Test-Path -Path $branchName) { diff --git a/Dalamud/Dalamud.csproj b/Dalamud/Dalamud.csproj index 4a6064295..499128ea9 100644 --- a/Dalamud/Dalamud.csproj +++ b/Dalamud/Dalamud.csproj @@ -109,6 +109,13 @@ + + + + $(OutputPath)TEMP_assver.txt + + +