Skip to content

Commit

Permalink
Merging In Windows Action changes (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma authored Aug 28, 2024
1 parent c8c49bf commit 1f62ced
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/actions/build/windows/app/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ inputs:
default: false
required: false
type: boolean
build-targets:
description: Override the default targets and build the passed targets. Comma separated list. Include '--target' and full names, eg '--targets=@electron-forge/maker-squirrel, ...etc'
required: false
default: ''
type: string
runs:
using: composite
steps:
Expand All @@ -27,7 +32,7 @@ runs:
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
for /D /R %%i in (*pycache*) do rmdir /s /q "%%~i
shell: cmd
- name: Make app
shell: powershell
Expand All @@ -36,7 +41,7 @@ runs:
DEBUG: electron-forge:*
PUBLISH: ${{ inputs.sign-and-publish }}
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: npm run ${{inputs.sign-and-publish == true && 'publish' || 'make'}}
run: npm run ${{inputs.sign-and-publish == true && 'publish' || 'make'}} -- ${{inputs.build-targets}}
- name: Print SignLogs
if: ${{inputs.sign-and-publish == true && always()}}
continue-on-error: true
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/debug_windows.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Windows Debug
name: Build App Windows Debug

on:
workflow_dispatch:
Expand All @@ -17,10 +17,11 @@ jobs:
- name: Build
uses: ./.github/actions/build/windows/app
with:
build-targets: '--targets=@electron-forge/maker-zip'
sign-and-publish: false
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload Build
uses: actions/upload-artifact@v4
with:
name: comfyui-electron-debug-build-${{env.sha_short}}
name: comfyui-electron-win32-debug-build-${{env.sha_short}}
path: out/make/zip/win32/x64/*.zip
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const launchPythonServer = async () => {

checkServerReady();
});
s

};

// This method will be called when Electron has finished
Expand Down

0 comments on commit 1f62ced

Please sign in to comment.