File tree Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Expand file tree Collapse file tree 3 files changed +16
-4
lines changed Original file line number Diff line number Diff 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 :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments