Skip to content

Commit a122b68

Browse files
committed
refactor: cleanup build workflow to production grade 🧹
- Removed temporary debug steps (ls -la) used for troubleshooting. - Merged platform-specific build steps back into a single unified step. - Removed Windows-specific shell hacks (relying on package.json config). - Simplified environment configuration. The workflow is now clean, minimal, and fully relies on the corrected package.json configuration for cross-platform builds.
1 parent 375554b commit a122b68

1 file changed

Lines changed: 1 addition & 35 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -67,46 +67,12 @@ jobs:
6767
.\venv\Scripts\activate
6868
python backend/build.py
6969
70-
- name: Debug - List directory structure
71-
if: runner.os != 'Windows'
72-
run: |
73-
echo "=== Current directory ==="
74-
pwd
75-
echo "=== Repository root contents ==="
76-
ls -la
77-
echo "=== Build directory ==="
78-
ls -la build/ || echo "build/ not found"
79-
echo "=== Dist directory ==="
80-
ls -la dist/ || echo "dist/ not found"
81-
echo "=== Backend dist ==="
82-
ls -la backend/dist/ || echo "backend/dist/ not found"
83-
84-
- name: Build Electron app (Mac/Linux)
85-
if: runner.os != 'Windows'
70+
- name: Build Electron app
8671
run: npm run build
87-
env:
88-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89-
90-
- name: Build Electron app (Windows)
91-
if: runner.os == 'Windows'
92-
run: |
93-
$env:WIN_CSC_LINK=""
94-
$env:WIN_CSC_KEY_PASSWORD=""
95-
npm run build
9672
env:
9773
DEBUG: electron-builder
9874
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9975

100-
- name: Debug - List output directories
101-
shell: bash
102-
run: |
103-
echo "=== Root Listing ==="
104-
ls -la
105-
echo "=== Release Directory ==="
106-
ls -la release/ || echo "release/ not found"
107-
echo "=== Dist Directory ==="
108-
ls -la dist/ || echo "dist/ not found"
109-
11076
- name: Upload artifacts (macOS)
11177
if: runner.os == 'macOS'
11278
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)