Skip to content

Commit 7c84bbe

Browse files
jared-duvalclaude
andcommitted
Fix Windows Pandoc download and macOS notarization
- Windows: Use Get-ChildItem to find pandoc.exe dynamically - macOS: Use printf to preserve API key newlines, set proper permissions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bd1d36e commit 7c84bbe

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ jobs:
7474
cd dist
7575
# Create zip for notarization
7676
ditto -c -k --sequesterRsrc --keepParent "Budget Justification Generator.app" "BudgetJustificationGenerator-macOS.zip"
77-
# Store API key
77+
# Store API key (use printf to preserve newlines)
7878
mkdir -p ~/.private_keys
79-
echo "$APPLE_API_KEY" > ~/.private_keys/AuthKey_${APPLE_API_KEY_ID}.p8
79+
printf '%s\n' "$APPLE_API_KEY" > ~/.private_keys/AuthKey_${APPLE_API_KEY_ID}.p8
80+
chmod 600 ~/.private_keys/AuthKey_${APPLE_API_KEY_ID}.p8
8081
# Submit for notarization
8182
xcrun notarytool submit "BudgetJustificationGenerator-macOS.zip" \
8283
--key ~/.private_keys/AuthKey_${APPLE_API_KEY_ID}.p8 \
@@ -110,11 +111,15 @@ jobs:
110111
pip install -r requirements.txt
111112
112113
- name: Download Pandoc for Windows
114+
shell: pwsh
113115
run: |
114-
mkdir bundled_bin
116+
New-Item -ItemType Directory -Force -Path bundled_bin
117+
$ProgressPreference = 'SilentlyContinue'
115118
Invoke-WebRequest -Uri "https://github.com/jgm/pandoc/releases/download/3.6.1/pandoc-3.6.1-windows-x86_64.zip" -OutFile pandoc-windows.zip
116-
Expand-Archive pandoc-windows.zip -DestinationPath pandoc_temp
117-
Copy-Item "pandoc_temp/pandoc-3.6.1-windows-x86_64/pandoc.exe" "bundled_bin/pandoc.exe"
119+
Expand-Archive -Path pandoc-windows.zip -DestinationPath pandoc_temp -Force
120+
Get-ChildItem -Path pandoc_temp -Recurse
121+
$pandocExe = Get-ChildItem -Path pandoc_temp -Recurse -Filter "pandoc.exe" | Select-Object -First 1
122+
Copy-Item $pandocExe.FullName -Destination "bundled_bin/pandoc.exe"
118123
119124
- name: Create Windows spec file
120125
run: |

0 commit comments

Comments
 (0)