diff --git a/.github/workflows/build-view.yml b/.github/workflows/build-view.yml index 0a3469ad..f5190e39 100644 --- a/.github/workflows/build-view.yml +++ b/.github/workflows/build-view.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: include: - - os: [self-hosted, macOS, ARM64] + - os: macos-latest arch: arm64 artifact_name: macos-arm64 - os: windows-latest @@ -85,7 +85,13 @@ jobs: - name: Build Release Files (macOS with signing) if: runner.os == 'macOS' timeout-minutes: 90 - run: npm run build -- --arch ${{ matrix.arch }} + run: | + # Increase file descriptor limit to prevent EMFILE errors during signing + # This is needed because electron-builder signs all files recursively, + # and Python venvs contain thousands of files + ulimit -n 65536 || ulimit -n 10240 + echo "File descriptor limit set to: $(ulimit -n)" + npm run build -- --arch ${{ matrix.arch }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.CERT_P12 }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 136ffa2c..2f5b8a15 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -92,7 +92,11 @@ jobs: # Step for macOS builds with signing - name: Build Release Files (macOS with signing) if: runner.os == 'macOS' - run: npm run build -- --arch ${{ matrix.arch }} + run: | + # Increase file descriptor limit to prevent EMFILE errors during signing + ulimit -n 65536 || ulimit -n 10240 + echo "File descriptor limit set to: $(ulimit -n)" + npm run build -- --arch ${{ matrix.arch }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} CSC_LINK: ${{ secrets.CERT_P12 }} diff --git a/electron-builder.json b/electron-builder.json index c2c669cb..2704266f 100644 --- a/electron-builder.json +++ b/electron-builder.json @@ -65,6 +65,26 @@ "hardenedRuntime": true, "gatekeeperAssess": false, "notarize": false, + "signIgnore": [ + ".*\\.py$", + ".*\\.pyc$", + ".*\\.pyo$", + ".*\\.pyi$", + ".*\\.typed$", + ".*\\.txt$", + ".*\\.md$", + ".*\\.rst$", + ".*\\.json$", + ".*\\.yaml$", + ".*\\.yml$", + ".*\\.toml$", + ".*\\.cfg$", + ".*\\.ini$", + ".*\\.csv$", + ".*\\.html$", + ".*\\.css$", + ".*\\.map$" + ], "extendInfo": { "CFBundleURLTypes": [ { diff --git a/src/components/ChatBox/BottomBox/BoxHeader.tsx b/src/components/ChatBox/BottomBox/BoxHeader.tsx index 79d60860..aa11ced1 100644 --- a/src/components/ChatBox/BottomBox/BoxHeader.tsx +++ b/src/components/ChatBox/BottomBox/BoxHeader.tsx @@ -48,6 +48,7 @@ export interface BoxHeaderConfirmProps { onStartTask?: () => void; onEdit?: () => void; className?: string; + loading?: boolean; } export const BoxHeaderConfirm = ({ @@ -55,6 +56,7 @@ export const BoxHeaderConfirm = ({ onStartTask, onEdit, className, + loading = false, }: BoxHeaderConfirmProps) => { return (