onatcipli / rename

The Rename CLI Tool is a utility designed to modify your Flutter project's AppName and BundleId across various platforms, such as iOS, Android, Macos, Linux, Windows and Web
https://pub.dev/packages/rename
MIT License
169 stars 40 forks source link

Commands are not working in linux #55

Open Dheeraj-Reddy-Mallapu opened 3 months ago

Dheeraj-Reddy-Mallapu commented 3 months ago

I have followed the instructions from the readMe file of this repo.

Command: rename setAppName --targets android --value "My App Name" Output: rename: unrecognized option '--targets' Try 'rename --help' for more information.

Same output for setBundleId

When I run rename --help, it gives me this: Usage: rename [options] ...

Rename files.

Options: -v, --verbose explain what is being done -s, --symlink act on the target of symlinks -n, --no-act do not make any changes -a, --all replace all occurrences -l, --last replace only the last occurrence -o, --no-overwrite don't overwrite existing files -i, --interactive prompt before overwrite

-h, --help display this help -V, --version display version

The help does not contan any options like --targets or --value.

Dheeraj-Reddy-Mallapu commented 3 months ago

It looks like linux has a utility called util-linux that has rename commands. flutter pub global activate rename did not override the system commands.

Anyone know how to solve this? Please let me know.

DeepeshKalura commented 3 weeks ago

same issue

poqueque commented 3 days ago

Not working either in MacOS, same issue. Any workaround?

poqueque commented 2 days ago

Found the workaround of adding to dev_dependencies and executing dart run package_renameinstead of activating globally.