Skip to content

Commit 7639406

Browse files
fix: enable bundling and fix frontend build paths
- Enable bundling in tauri.conf.json with 'active: true' - Add debugging steps to verify frontend dist directory exists - Fix bundle file paths in release workflow to use correct target structure - Add better error handling for missing bundle files
1 parent c9ecd55 commit 7639406

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,18 @@ jobs:
129129
working-directory: web
130130

131131
- name: Build frontend
132-
run: npm run build
132+
run: |
133+
echo "Building frontend..."
134+
npm run build
135+
echo "Frontend build completed"
136+
ls -la dist || echo "dist directory not found in workspace root"
133137
working-directory: web
134138

139+
- name: Verify frontend dist exists
140+
run: |
141+
echo "Checking for dist directory in workspace root..."
142+
ls -la ../dist || echo "dist directory not found in workspace root"
143+
135144
- name: Build Tauri app
136145
uses: tauri-apps/tauri-action@v0
137146
env:

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ jobs:
6565
working-directory: web
6666

6767
- name: Build frontend
68-
run: npm run build
68+
run: |
69+
echo "Building frontend..."
70+
npm run build
71+
echo "Frontend build completed"
72+
ls -la dist || echo "dist directory not found in workspace root"
6973
working-directory: web
7074

7175
- name: Build application
@@ -77,14 +81,14 @@ jobs:
7781
args: ${{ matrix.args }}
7882

7983
- name: List bundle files
80-
run: find src-tauri/target -name "bundle" -type d -exec find {} -type f \;
84+
run: find target -name "bundle" -type d -exec find {} -type f \; || echo "No bundle files found"
8185

8286
- name: Upload Release Assets
8387
if: startsWith(github.ref, 'refs/tags/')
8488
uses: softprops/action-gh-release@v2
8589
with:
8690
files: |
87-
src-tauri/target/*/release/bundle/**/*
91+
target/*/release/bundle/**/*/*
8892
generate_release_notes: true
8993
draft: false
9094
prerelease: ${{ contains(github.ref, 'beta') || contains(github.ref, 'alpha') }}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"frontendDist": "../dist"
1010
},
1111
"bundle": {
12+
"active": true,
1213
"icon": [
1314
"icons/32x32.png",
1415
"icons/128x128.png",

0 commit comments

Comments
 (0)