Skip to content

fix(cli): mobile init when using pnpm dlx - #14118

Merged
lucasfernog merged 2 commits into
devfrom
fix/mobile-init-pnpm-dlx
Oct 6, 2025
Merged

fix(cli): mobile init when using pnpm dlx#14118
lucasfernog merged 2 commits into
devfrom
fix/mobile-init-pnpm-dlx

Conversation

@lucasfernog

Copy link
Copy Markdown
Member

i noticed this when testing #13180 (though the original issue refers to npx, which I could not reproduce yet)

i noticed this when testing #13180 (though the original issue refers to npx, which I could not reproduce yet)
@lucasfernog
lucasfernog requested a review from a team as a code owner August 29, 2025 11:07
@github-actions

github-actions Bot commented Aug 29, 2025

Copy link
Copy Markdown
Contributor

Package Changes Through 4d07dba

There are 9 changes which include @tauri-apps/api with minor, tauri-cli with minor, tauri-utils with minor, tauri-runtime-wry with minor, tauri-runtime with minor, tauri with minor, tauri-bundler with minor, @tauri-apps/cli with minor, tauri-macros with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
@tauri-apps/api 2.8.0 2.9.0
tauri-utils 2.7.0 2.8.0
tauri-bundler 2.6.1 2.7.0
tauri-runtime 2.8.0 2.9.0
tauri-runtime-wry 2.8.1 2.9.0
tauri-codegen 2.4.0 2.4.1
tauri-macros 2.4.0 2.4.1
tauri-plugin 2.4.0 2.4.1
tauri-build 2.4.1 2.4.2
tauri 2.8.5 2.9.0
@tauri-apps/cli 2.8.4 2.9.0
tauri-cli 2.8.4 2.9.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@FabianLars

Copy link
Copy Markdown
Member

pnpx still exists as a (deprecated?) alias for pnpm dlx. Does that matter here?

@lucasfernog

Copy link
Copy Markdown
Member Author

pnpx still exists as a (deprecated?) alias for pnpm dlx. Does that matter here?

in that case the generated project will use pnpm dlx @tauri-apps/cli ... to run the CLI too (same as when running pnpm dlx ..

@lucasfernog

Copy link
Copy Markdown
Member Author

to test this, you need to run pnpx file:/absolute/path/to/tauri/packages/cli android init (or pnpm dlx instead of pnpx)
it'll fail to load the .node because it is gitignored, so you'll need to copy packages/cli/cli.linux-x64-gnu.node to $HOME/.cache/pnpm/dlx/<hash>/pkg/node_modules/@tauri-apps/cli where the hash is printed in the error message of the pnpm command run

@lucasfernog
lucasfernog merged commit abf7e88 into dev Oct 6, 2025
24 checks passed
@lucasfernog
lucasfernog deleted the fix/mobile-init-pnpm-dlx branch October 6, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants