you didn't have to cut me o-
This commit is contained in:
committed by
Phoenix
parent
945b80f1d3
commit
cd64557f86
37
.github/workflows/package-release.yml
vendored
37
.github/workflows/package-release.yml
vendored
@@ -115,29 +115,33 @@ jobs:
|
|||||||
if: github.event.inputs.download_artifacts == 'true' || github.event_name == 'push'
|
if: github.event.inputs.download_artifacts == 'true' || github.event_name == 'push'
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
if (Test-Path "artifacts/flumi-windows") {
|
if (Test-Path "artifacts\flumi-windows") {
|
||||||
Write-Output "Building Windows installer..."
|
Write-Output "Building Windows installer..."
|
||||||
|
|
||||||
# Setup directory structure for installer
|
# Ensure the path relative to the .iss exists
|
||||||
New-Item -ItemType Directory -Path "build-scripts\Windows" -Force
|
New-Item -ItemType Directory -Path "flumi\build-scripts\Windows" -Force | Out-Null
|
||||||
Copy-Item "artifacts\flumi-windows\*" "flumi\build-scripts\Windows\" -Force
|
|
||||||
|
# Copy files from artifacts into flumi\build-scripts\Windows (robust enumeration)
|
||||||
# Create installer output directory
|
Get-ChildItem -Path "artifacts\flumi-windows" -File | ForEach-Object {
|
||||||
New-Item -ItemType Directory -Path "flumi/build-scripts/Windows/installer" -Force
|
Copy-Item -Path $_.FullName -Destination "flumi\build-scripts\Windows" -Force
|
||||||
|
}
|
||||||
# Build installer using your existing .iss file
|
|
||||||
$issPath = Resolve-Path "flumi/build-scripts/flumi-installer.iss"
|
# Ensure installer output dir matches OutputDir=Windows\installer in .iss
|
||||||
|
New-Item -ItemType Directory -Path "flumi\build-scripts\Windows\installer" -Force | Out-Null
|
||||||
|
|
||||||
|
# Compile using .iss (paths resolved relative to flumi/build-scripts)
|
||||||
|
$issPath = Resolve-Path "flumi\build-scripts\flumi-installer.iss"
|
||||||
& "C:\InnoSetup\ISCC.exe" $issPath.Path
|
& "C:\InnoSetup\ISCC.exe" $issPath.Path
|
||||||
|
|
||||||
# Copy installer to artifacts if it exists
|
# Copy installer to artifacts
|
||||||
if (Test-Path "build-scripts/Windows/installer/Flumi-Setup-*.exe") {
|
$built = Get-ChildItem "flumi\build-scripts\Windows\installer" -Filter "Flumi-Setup-*.exe" -ErrorAction SilentlyContinue
|
||||||
Copy-Item "build-scripts/Windows/installer/Flumi-Setup-*.exe" "artifacts/flumi-windows/" -Force
|
if ($built) {
|
||||||
|
Copy-Item $built.FullName "artifacts\flumi-windows" -Force
|
||||||
Write-Output "Installer created and copied successfully"
|
Write-Output "Installer created and copied successfully"
|
||||||
} else {
|
} else {
|
||||||
Write-Output "Warning: Installer was not created"
|
Write-Output "Warning: Installer was not created"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- name: Prepare release assets
|
- name: Prepare release assets
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
@@ -277,3 +281,4 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user