From 7b65b5a8c2b8969528a914b0776d4239b73088c3 Mon Sep 17 00:00:00 2001 From: litruv Date: Sat, 21 Feb 2026 19:27:24 +1100 Subject: [PATCH] fix: clean dist folders before building to prevent stale files --- .gitea/workflows/build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 837722d..e71dcf1 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -89,6 +89,12 @@ jobs: working-directory: ./cinny run: npm install --prefer-offline + - name: Clean previous builds + shell: powershell + run: | + if (Test-Path cinny/dist) { Remove-Item -Recurse -Force cinny/dist } + if (Test-Path dist-electron) { Remove-Item -Recurse -Force dist-electron } + - name: Build Electron app run: npm run build:win env: @@ -139,6 +145,10 @@ jobs: working-directory: ./cinny run: npm ci --prefer-offline + - name: Clean previous builds + run: | + rm -rf cinny/dist dist-electron + - name: Build Electron app run: npm run build:linux env: