mirror of
https://github.com/open-webui/desktop
synced 2025-06-26 18:15:59 +00:00
refac
This commit is contained in:
parent
225e3dd13a
commit
9617675916
23
.github/workflows/build.yaml
vendored
23
.github/workflows/build.yaml
vendored
@ -47,6 +47,18 @@ jobs:
|
|||||||
npm run create:python-tar
|
npm run create:python-tar
|
||||||
- name: Create Builds
|
- name: Create Builds
|
||||||
run: npm run make
|
run: npm run make
|
||||||
|
- name: Find and Rename Windows Executable
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
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
|
||||||
- name: Azure Trusted Signing (Windows Only)
|
- name: Azure Trusted Signing (Windows Only)
|
||||||
if: ${{ matrix.os == 'windows-latest' }}
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
uses: azure/trusted-signing-action@v0.5.1
|
uses: azure/trusted-signing-action@v0.5.1
|
||||||
@ -57,17 +69,20 @@ jobs:
|
|||||||
endpoint: https://eus.codesigning.azure.net/
|
endpoint: https://eus.codesigning.azure.net/
|
||||||
trusted-signing-account-name: open-webui
|
trusted-signing-account-name: open-webui
|
||||||
certificate-profile-name: open-webui
|
certificate-profile-name: open-webui
|
||||||
# Sign all .exe files in the output folder
|
# Sign the generated .exe file
|
||||||
files-folder: ./out/make
|
files-folder: .
|
||||||
files-folder-filter: exe
|
files-folder-filter: exe
|
||||||
- name: Zip Artifacts
|
- name: Zip Artifacts for macOS/Linux
|
||||||
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
run: |
|
run: |
|
||||||
7z a -tzip ${{ matrix.os }}-${{ matrix.arch }}.zip ./out/make/*
|
7z a -tzip ${{ matrix.os }}-${{ matrix.arch }}.zip ./out/make/*
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-${{ matrix.arch }}
|
name: ${{ matrix.os }}-${{ matrix.arch }}
|
||||||
path: ${{ matrix.os }}-${{ matrix.arch }}.zip
|
path: |
|
||||||
|
${{ matrix.os }}-${{ matrix.arch }}.exe
|
||||||
|
${{ matrix.os }}-${{ matrix.arch }}.zip
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user