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

[feat] Specify resource file target path #3539

Closed
J-F-Liu opened this issue Feb 23, 2022 · 1 comment
Closed

[feat] Specify resource file target path #3539

J-F-Liu opened this issue Feb 23, 2022 · 1 comment
Assignees

Comments

@J-F-Liu
Copy link

J-F-Liu commented Feb 23, 2022

Describe the problem

The resource files in tauri.conf.json bundle config go to separate folders when the package is installed.
For example,

  "resources": [
    "system.ini",
    "config.ron"
  ],

Run the bundled MSI file and get the following result:
image
This is a strange behavior.

Describe the solution you'd like

My expection is to put the resources files in the same folder as the executable file.

To be more flexible, should use the same relative path as it is in the "resources" config.
For example, "conf/system.ini" is installed as "%Program Files%/%ProgramName%/conf/system.ini".

Alternatives considered

No response

Additional context

No response

@lucasfernog
Copy link
Member

We do install it on the same dir as the executable on Windows, and use the same relative path. This sounds like an issue when checking if the resource is a file or directory. I can investigate tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants