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] RPM installer places resources in wrong path #11993

Open
livwvil opened this issue Dec 17, 2024 · 1 comment
Open

[bug] RPM installer places resources in wrong path #11993

livwvil opened this issue Dec 17, 2024 · 1 comment
Labels
good first issue Good for newcomers platform: Linux scope: bundler The bundler used in our cli to make installers status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@livwvil
Copy link

livwvil commented Dec 17, 2024

Describe the bug

DEB and MSI correctly place resources in the system, but RPM does not.
It seems that the configuration (bundle -> resources) for generating RPM is used incorrectly.

Before running the build command, I place my resources next to tauri.conf.json in the res folder.

My config:

    "resources": {
      "res/resources/first.db": "resources/first.db",
      "res/resources/second.bin": "resources/second.bin",
      "res/resources/third.db": "resources/third.db",
      "res/resources/fourth.db": "resources/fourth.db"
    },

I want the installer to place my resources in the same way that almost all installers do:

  • <res-base>/resources/first.db
  • <res-base>/resources/second.bin
  • <res-base>/resources/third.db
  • <res-base>/resources/fourth.db

But RPM does like that:

  • <res-base>/res/resources/first.db
  • <res-base>/res/resources/second.bin
  • <res-base>/res/resources/third.db
  • <res-base>/res/resources/fourth.db

After installing such RPM I get a non-working application.
As a bonus here we see that the resource directories differ even without installing:

image

Reproduction

  1. Clone repo https://github.com/livwvil/tauri2-rpm-build-problem
  2. Switch to the resources-problem branch
  3. Use build:image and build:container commands to produce bundles

Expected behavior

No response

Full tauri info output

All correct

Stack trace

No response

Additional context

No response

@livwvil livwvil added status: needs triage This issue needs to triage, applied to new issues type: bug labels Dec 17, 2024
@FabianLars FabianLars added good first issue Good for newcomers platform: Linux scope: bundler The bundler used in our cli to make installers labels Dec 19, 2024
@livwvil
Copy link
Author

livwvil commented Dec 19, 2024

Please fix it in tauri v1 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers platform: Linux scope: bundler The bundler used in our cli to make installers status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

2 participants