Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] cargo create-tauri-app --beta doesn't generate any capabilities #9814

Closed
stijnfrishert opened this issue May 18, 2024 · 4 comments · Fixed by tauri-apps/create-tauri-app#705
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@stijnfrishert
Copy link

stijnfrishert commented May 18, 2024

Describe the bug

Running cargo create-tauri-app --beta with 3.13.17 doesn't generate a capabilities folder/file. These are the settings I've used:

  1. cargo create-tauri-app --beta
  2. Project name: temp
  3. Frontend language: Typescript / Javascript
  4. Package manager: pnpm
  5. UI Template: React
  6. UI flavor: Typescript
  7. Setup for mobile? Yes
  8. cd temp
  9. pnpm install

These are the contents of the resulting temp folder:

image

Issue create by request over in #9810 (reply in thread)

Reproduction

No response

Expected behavior

Apparently a capabilities folder should be created with a default file in it

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-apple-darwin (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.12.2
    - pnpm: 9.0.6
    - npm: 10.5.0

[-] Packages
    - tauri [RUST]: 2.0.0-beta (no lockfile)
    - tauri-build [RUST]: no manifest (no lockfile)
    - wry [RUST]: no manifest (no lockfile)
    - tao [RUST]: no manifest (no lockfile)
    - tauri-cli [RUST]: 2.0.0-beta.17
    - @tauri-apps/api [NPM]: 2.0.0-beta.11
    - @tauri-apps/cli [NPM]: 2.0.0-beta.17

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite
@stijnfrishert stijnfrishert added status: needs triage This issue needs to triage, applied to new issues type: bug labels May 18, 2024
@cfping
Copy link

cfping commented May 19, 2024

Are you able to perform the initialization with the 'cargo tuari android init' or 'cargo tuari ios init' commands?

@stijnfrishert
Copy link
Author

stijnfrishert commented May 19, 2024

I can run cargo tauri ios init (and just did), but that only created gen/apple, no capabilities or permissions.

Can't run android, because I don't have the SDK installed currently.

amrbashir added a commit to tauri-apps/create-tauri-app that referenced this issue May 20, 2024
amrbashir added a commit to tauri-apps/create-tauri-app that referenced this issue May 20, 2024
@amrbashir
Copy link
Member

amrbashir commented May 20, 2024

A new version is released to fix this

@stijnfrishert
Copy link
Author

Yes, works now, and generates a default.json.

Thank you for fixing this :) Puts me one step closer to solving #9810.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants