forked from open-webui/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,16 +49,19 @@ jobs: | |
run: npm run make | ||
- name: Find and Rename Windows Executable | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
shell: pwsh | ||
run: | | ||
# Dynamically find the generated `setup.exe` in the output folder | ||
exe_path=$(find out/make -type f -name '*.exe' | head -n 1) | ||
echo "The found executable is: $exe_path" | ||
if [ -z "$exe_path" ]; then | ||
echo "Error: No .exe file was found in generated output." | ||
exit 1 | ||
fi | ||
# Copy the executable with a specific naming format and store as an artifact | ||
cp "$exe_path" ${{ matrix.os }}-${{ matrix.arch }}.exe | ||
# Dynamically locate the `setup.exe` file within the `out/make` directory structure | ||
$exePath = Get-ChildItem -Path out/make -Recurse -Filter "*.exe" | Select-Object -First 1 | ||
if (-not $exePath) { | ||
throw "Error: No .exe file was found in the output directory." | ||
} | ||
Write-Host "The found executable is: $exePath" | ||
# Rename/move the file to a more descriptive name with architecture/OS information | ||
$destinationPath = "${{ matrix.os }}-${{ matrix.arch }}.exe" | ||
Copy-Item -Path $exePath.FullName -Destination $destinationPath | ||
Write-Host "Copied executable to: $destinationPath" | ||
- name: Azure Trusted Signing (Windows Only) | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
uses: azure/[email protected] | ||
|