Skip to content

Release Windows app #12

Release Windows app

Release Windows app #12

# .github/workflows/release.yml
name: Release Windows app
on:
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Enable Long Name
shell: pwsh
run: New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
- run: git config --system core.longpaths true
- name: Github checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install
- name: Download and prepare ComfyUI
run: |
curl -L -o comfyui-win.7z https://github.com/Comfy-Org/python-dependencies/releases/download/embedded-windows-deps-cu11.8-py11.9-5/ComfyUI_windows_portable.7z
7z x comfyui-win.7z -odist/
move dist/ComfyUI_windows_portable/ComfyUI assets/UI/
move dist/ComfyUI_windows_portable/python_embedded assets/UI/
cd assets/UI/ComfyUI && ls
- name: Make app
env:
DEBUG: electron-forge:*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run publish
# Windows Code Sign:
#- name: Sign files with Trusted Signing
# uses: azure/[email protected]
# with:
# azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
# azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
# azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
# endpoint: https://eus.codesigning.azure.net/
# trusted-signing-account-name: vscx-codesigning
# certificate-profile-name: vscx-certificate-profile
# files-folder: ${{ github.workspace }}\out\
# files-folder-filter: exe,dll
# file-digest: SHA256
# timestamp-rfc3161: http://timestamp.acs.microsoft.com
# timestamp-digest: SHA256
#- name: publish app
# env:
# DEBUG: electron-forge:*
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npm run publish --from-dry-run