Skip to content

Commit c5b53f0

Browse files
committed
fix(ci): correct Tauri config paths for pnpm -F desktop context
When using 'pnpm -F desktop', the command runs in the apps/desktop directory context, so config paths must be relative to that directory. Changed from './apps/desktop/src-tauri/tauri.conf.*.json' to './src-tauri/tauri.conf.*.json' in all three Linux packaging workflows.
1 parent 662a7c9 commit c5b53f0

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/linux_packages.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,12 @@ jobs:
157157

158158
- name: Build Tauri app with .deb
159159
run: |
160+
# Note: When using pnpm -F desktop, the command runs in apps/desktop context
161+
# So we need to extract just the filename from the full path
162+
TAURI_CONF_FILE=$(basename ${{ env.TAURI_CONF_PATH }})
160163
pnpm -F desktop tauri build \
161164
--target ${{ matrix.target }} \
162-
--config ${{ env.TAURI_CONF_PATH }} \
165+
--config "./src-tauri/${TAURI_CONF_FILE}" \
163166
--bundles deb \
164167
--verbose
165168
env:
@@ -410,9 +413,12 @@ jobs:
410413

411414
- name: Build Tauri app with AppImage
412415
run: |
416+
# Note: When using pnpm -F desktop, the command runs in apps/desktop context
417+
# So we need to extract just the filename from the full path
418+
TAURI_CONF_FILE=$(basename ${{ env.TAURI_CONF_PATH }})
413419
pnpm -F desktop tauri build \
414420
--target ${{ matrix.target }} \
415-
--config ${{ env.TAURI_CONF_PATH }} \
421+
--config "./src-tauri/${TAURI_CONF_FILE}" \
416422
--bundles appimage \
417423
--verbose
418424
env:

.github/workflows/linux_packages_arch.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ jobs:
152152
export RUST_BACKTRACE=1
153153
154154
# Build with Tauri
155+
# Note: When using pnpm -F desktop, the command runs in apps/desktop context
156+
# So the config path should be relative to that directory
157+
TAURI_CONF_RELATIVE="./src-tauri/$(basename $TAURI_CONF)"
155158
pnpm -F desktop tauri build \
156159
--target $RUST_TARGET \
157-
--config $TAURI_CONF \
160+
--config "$TAURI_CONF_RELATIVE" \
158161
--verbose \
159162
-- --verbose
160163

.github/workflows/linux_packages_rpm.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,12 @@ jobs:
168168
- name: Build Tauri app with RPM
169169
run: |
170170
source "$HOME/.cargo/env"
171+
# Note: When using pnpm -F desktop, the command runs in apps/desktop context
172+
# So we need to extract just the filename from the full path
173+
TAURI_CONF_FILE=$(basename ${{ env.TAURI_CONF_PATH }})
171174
pnpm -F desktop tauri build \
172175
--target ${{ matrix.target }} \
173-
--config ${{ env.TAURI_CONF_PATH }} \
176+
--config "./src-tauri/${TAURI_CONF_FILE}" \
174177
--bundles rpm \
175178
--verbose
176179
env:

0 commit comments

Comments
 (0)