Git Product home page Git Product logo

Comments (12)

jwenjian avatar jwenjian commented on July 17, 2024 2

I faced the problem too, resolved by changing below item to the customized name in Cargo.toml:

  • package.name
  • package.default-run
  • bin.name

from tauri.

lucasfernog avatar lucasfernog commented on July 17, 2024 1

We should have this under our docs. Gonna arrange it with @Laegel

from tauri.

FabianLars avatar FabianLars commented on July 17, 2024 1

remove or update the default-run field in cargo.toml (it must match the name, or not exist at all)

from tauri.

lucasfernog avatar lucasfernog commented on July 17, 2024

Can you try to change the output name under [[bin]]? This issue is known, but I think the problem is when you try to use the updater, not the bundler.

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

can confirm that your suggestion works.

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

I guess this is not a bug - but something we will have to track in the docs. Leaving open and will close it once the docs page is written about the src-tauri/Cargo.toml caveats

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

This has been resolved. Proved by guijs.

from tauri.

nothingismagick avatar nothingismagick commented on July 17, 2024

Good point. This should (IMHO) be done from tauri.conf.json - even if it modifies the Cargo.toml

from tauri.

lucasfernog avatar lucasfernog commented on July 17, 2024

Can we close this one since the app name is now prompted by tauri init?

from tauri.

nklayman avatar nklayman commented on July 17, 2024

Not only is the app name prompted for, but changing the name worked fine for me as long as default-run and bin.name are the same.

from tauri.

The-True-Hooha avatar The-True-Hooha commented on July 17, 2024

Leaving a comment cos I'm facing this same challenge:

ran into the error: Caused by: default-run target app not found
had to change the name in Cargo.toml to "app" back to resolve the issue.

How can I use my desired name to fix the issue?

from tauri.

The-True-Hooha avatar The-True-Hooha commented on July 17, 2024

remove or update the default-run field in cargo.toml (it must match the name, or not exist at all)

@FabianLars thank you, resolved.

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.