Skip to content

Commit

Permalink
Add batch start script to release for enhanced compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mschabhuettl authored Mar 18, 2024
1 parent 01b8f95 commit ad75023
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,15 @@ jobs:
run: Expand-Archive -Path "SP5ToICalExp-${{ env.VERSION }}-windows.zip" -DestinationPath temp; Get-ChildItem -Path temp -Recurse
shell: pwsh

# Create a PowerShell Script to Start the EXE
- name: Create PowerShell Start Script
# Create a Batch Script to Start the EXE
- name: Create Batch Start Script
run: |
$scriptContent = @"
Start-Process -FilePath `"./SP5ToICalExp/SP5ToICalExp.exe`"
"@
New-Item -Path . -Name "Start.ps1" -ItemType "file" -Value $scriptContent -Force
shell: pwsh
echo Start SP5ToICalExp.exe > Start.bat
shell: bash

# Add the PowerShell Script to the ZIP Archive
# Add the Batch Script to the ZIP Archive
- name: Add Start Script to ZIP
run: Compress-Archive -Path Start.ps1, "dist/SP5ToICalExp/*" -DestinationPath "SP5ToICalExp-${{ env.VERSION }}-windows.zip" -Force
run: Compress-Archive -Path Start.bat, "dist/SP5ToICalExp/*" -DestinationPath "SP5ToICalExp-${{ env.VERSION }}-windows.zip" -Force
shell: pwsh

# Create a Release on GitHub with the Generated Version Number
Expand Down

0 comments on commit ad75023

Please sign in to comment.