Skip to content

Commit

Permalink
Update DLL name
Browse files Browse the repository at this point in the history
MTGA client version 2024.37.0 changed the name from Wizards.MDN.GreProtobuf.Unity.dll to Wizards.MDN.GreProtobuf.dll

Extract variable
  • Loading branch information
riQQ committed Jun 20, 2024
1 parent 1db1b92 commit 1e30f9a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
description: 'Version'
required: false

env:
DLL_NAME: 'Wizards.MDN.GreProtobuf.dll'

jobs:
buildjob:
name: Get latest MTGA version
Expand Down Expand Up @@ -47,7 +50,7 @@ jobs:
- name: Run MsiExtractor
run: |
cd "$Env:GITHUB_WORKSPACE\MsiExtractor\MsiExtractor\bin\Debug"
.\MsiExtractor.exe ${{ steps.download_msi.outputs.msiFilePath }} "Wizards.MDN.GreProtobuf.Unity.dll"
.\MsiExtractor.exe ${{ steps.download_msi.outputs.msiFilePath }} "${{env.DLL_NAME}}"
$outputDirectory = Split-Path -Parent ${{ steps.download_msi.outputs.msiFilePath }}
dir "$outputDirectory"
- name: Checkout proto extractor
Expand All @@ -66,7 +69,7 @@ jobs:
- name: Run proto extractor
id: extract-proto
run: |
dotnet run --proto3 --resolve-circular-dependancies --automatic-packaging --resolve-name-collisions --outPath "${{github.workspace}}" --libPath "${{github.workspace}}" "${{github.workspace}}\Wizards.MDN.GreProtobuf.Unity.dll"
dotnet run --proto3 --resolve-circular-dependancies --automatic-packaging --resolve-name-collisions --outPath "${{github.workspace}}" --libPath "${{github.workspace}}" "${{github.workspace}}\${{env.DLL_NAME}}"
dir "${{github.workspace}}"
$protoFile = Get-Childitem -Path "${{github.workspace}}" -Filter *.proto | Select -First 1
echo "protoPath=$($protoFile.FullName)" >> $Env:GITHUB_OUTPUT
Expand Down

0 comments on commit 1e30f9a

Please sign in to comment.