Skip to content

Commit 8805ef9

Browse files
Merge pull request #210 from SakuraMathcraft/office-plugin
Office plugin
2 parents c5b8a73 + 7e0d658 commit 8805ef9

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ jobs:
190190
$typstUrl = "https://github.com/typst/typst/releases/download/v$typstVersion/$typstZip"
191191
Invoke-WebRequest -Uri $typstUrl -OutFile $env:TEMP\$typstZip
192192
Expand-Archive -Path $env:TEMP\$typstZip -DestinationPath $env:TEMP\typst -Force
193-
$typst = Join-Path $env:TEMP\typst "typst.exe"
194-
if (-not (Test-Path $typst)) { throw "Typst binary not found after extraction." }
195-
"TYPST=$typst" >> $env:GITHUB_ENV
193+
$typst = Get-ChildItem -Path $env:TEMP\typst -Recurse -Filter "typst.exe" | Select-Object -First 1
194+
if (-not $typst) { throw "Typst binary not found after extraction." }
195+
"TYPST=$($typst.FullName)" >> $env:GITHUB_ENV
196196
197197
- name: Build user manual
198198
shell: pwsh

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ jobs:
190190
fetch-depth: 0
191191

192192
- name: Setup .NET SDK
193-
uses: actions/setup-dotnet@v6
193+
uses: actions/setup-dotnet@v4
194194
with:
195195
dotnet-version: "9.0.x"
196196

@@ -381,9 +381,9 @@ jobs:
381381
$typstUrl = "https://github.com/typst/typst/releases/download/v$typstVersion/$typstZip"
382382
Invoke-WebRequest -Uri $typstUrl -OutFile $env:TEMP\$typstZip
383383
Expand-Archive -Path $env:TEMP\$typstZip -DestinationPath $env:TEMP\typst -Force
384-
$typst = Join-Path $env:TEMP\typst "typst.exe"
385-
if (-not (Test-Path $typst)) { throw "Typst binary not found after extraction." }
386-
"TYPST=$typst" >> $env:GITHUB_ENV
384+
$typst = Get-ChildItem -Path $env:TEMP\typst -Recurse -Filter "typst.exe" | Select-Object -First 1
385+
if (-not $typst) { throw "Typst binary not found after extraction." }
386+
"TYPST=$($typst.FullName)" >> $env:GITHUB_ENV
387387
388388
- name: Compile user manual
389389
shell: pwsh

0 commit comments

Comments
 (0)