Pake icon indicating copy to clipboard operation
Pake copied to clipboard

Use multiple strings to represent the name

Open g1eny0ung opened this issue 1 year ago • 4 comments

Search before asking

  • [X] 我在 issues 列表中搜索,没有找到类似的内容。 I searched in the issues and found nothing similar.

Motivation

I use a Mac for my daily work. Most apps I used have spaces between their names (aka a normal, no-symbol name). Can we specify the name with spaces before building?

For example, I want to wrap Google Translate with Pake, and I can specify its name as "Google Translate" rather than "GoogleTranslate" or "Google-Translate".

Solution

I took an investigation and found https://github.com/tj/commander.js#variadic-option. Using the variadic option can take multiple strings into an array, then we can turn this array into a string with spaces with the .join() method.

Alternatives

No response

Anything else?

But I'm not sure if it can be set the application name to a normal name on Windows or Linux? I haven't used these platforms for a long time.

Are you willing to submit a PR?

  • [X] I'm willing to submit a PR!

g1eny0ung avatar Dec 23 '24 07:12 g1eny0ung

Great, your idea is quite good. Feel free to submit a PR, and I'll merge the code.

tw93 avatar Dec 23 '24 11:12 tw93

Great, your idea is quite good. Feel free to submit a PR, and I'll merge the code.

I have completed the modification. You can check the PR for a detailed description. 😃

g1eny0ung avatar Dec 24 '24 14:12 g1eny0ung

i set name: youtube to mp4 in windows(used npm to install pake) but name of app is changed to youtube

gokulcoder7 avatar Jan 25 '25 03:01 gokulcoder7

i set name: youtube to mp4 in windows(used npm to install pake) but name of app is changed to youtube

@gokulcoder7 After the PR is merged, it will work.

g1eny0ung avatar Feb 09 '25 08:02 g1eny0ung