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

The generated RPM package does not install correctly #209

Closed
KMACEL opened this issue Jul 28, 2024 · 3 comments · May be fixed by #210
Closed

The generated RPM package does not install correctly #209

KMACEL opened this issue Jul 28, 2024 · 3 comments · May be fixed by #210

Comments

@KMACEL
Copy link

KMACEL commented Jul 28, 2024

I am developing an application in Flutter. I packaged it as rpm. But when I install it on the device, the application is installed to "/usr/share/{{MY_PACKAGE_NAME}}/{{MY_APP_NAME}}". Then it tries to make a symbolic link from /usr/share/{{MY_PACKAGE_NAME}}/{{MY_PACKAGE_NAME}} under /usr/bin/. In other words, it makes the wrong path a symbolic link. What should I do?

Installed Location :
/usr/share/{{MY_PACKAGE_NAME}}/{{MY_APP_NAME}}

symbolic Link
/usr/bin/{{MY_PACKAGE_NAME}} -> /usr/share/{{MY_PACKAGE_NAME}}/{{MY_PACKAGE_NAME}}

The process that needs to happen is this
/usr/bin/{{MY_APP_NAME}} -> /usr/share/{{MY_PACKAGE_NAME}}/{{MY_APP_NAME}}

@canxin121
Copy link

Same problem, this also causes the gnome desktop to fail to show the application shortcut

@canxin121
Copy link

canxin121 commented Jul 31, 2024

bash

dart pub global activate --source git https://github.com/canxin121/flutter_distributor --git-ref temp --git-path packages/flutter_distributor

rpm/make_config.yaml

bin_name:  'The right executable bin name'

Try this, it works well on my fedora machine

@KMACEL
Copy link
Author

KMACEL commented Jul 31, 2024

@canxin121 I really appreciate this solution.

@KMACEL KMACEL closed this as completed Jul 31, 2024
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 a pull request may close this issue.

2 participants