Skip to content

Commit e132faa

Browse files
MarkoVcodeclaude
andcommitted
fix: Preserve artifacts when building multiple platforms
The build script was deleting the out/ directory, which caused Linux artifacts to be lost when building macOS afterwards in the same job. Changes: - Remove `rm -rf packages/bruno-electron/out` from build scripts - Only clear packages/bruno-electron/web (source assets) - Preserve packages/bruno-electron/out (build artifacts) - Allows building multiple platforms sequentially without losing artifacts This fixes the GitHub Actions workflow where we build: 1. Linux packages (AppImage, deb, rpm, snap) 2. macOS packages (x64 and ARM64 ZIPs) Both in the same job without one overwriting the other's artifacts. Applied to both .sh and .bat scripts for consistency. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f49cc71 commit e132faa

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

scripts/build-brunon-release.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ if %errorlevel% neq 0 exit /b %errorlevel%
3636
REM Step 3: Prepare Electron web assets
3737
echo Preparing Electron web assets...
3838

39-
REM Remove old build directories
40-
if exist packages\bruno-electron\out rmdir /s /q packages\bruno-electron\out
39+
REM Remove old web directory (not out\ to preserve artifacts from other platforms)
4140
if exist packages\bruno-electron\web rmdir /s /q packages\bruno-electron\web
4241

4342
REM Copy web build

scripts/build-brunon-release.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ npm run build:web
3434
# Step 3: Prepare Electron web assets
3535
echo "Preparing Electron web assets..."
3636

37-
# Remove old build directories
38-
rm -rf packages/bruno-electron/out
37+
# Remove old web directory (not out/ to preserve artifacts from other platforms)
3938
rm -rf packages/bruno-electron/web
4039

4140
# Copy web build

0 commit comments

Comments
 (0)