feat: allow names with spaces (Windows & macOS)
Close #873
This PR updates the name option to accept names with spaces. For example, you can use the below command to generate the app:
pake https://translate.google.com/ --name Google Translate --hide-title-bar
However, I didn't update the Linux platform's name pattern because I saw some specific rules (only lowercase letters) in the regex. @tw93 Can the Linux app name contain spaces?
Linux only supports lowercase, similar to com-123-xxx, 123pan, pan123, weread, we-read. I'm wondering how to transform it into something like we-read. Could you update this PR to support it more comprehensively?
Linux only supports lowercase, similar to
com-123-xxx, 123pan, pan123, weread, we-read. I'm wondering how to transform it into something likewe-read. Could you update this PR to support it more comprehensively?
I guess you mean, let's say the user types in Google Translate, then we automatically convert it to google-translate in the Linux platform?
Linux only supports lowercase, similar to
com-123-xxx, 123pan, pan123, weread, we-read. I'm wondering how to transform it into something likewe-read. Could you update this PR to support it more comprehensively?I guess you mean, let's say the user types in Google Translate, then we automatically convert it to google-translate in the Linux platform?
yes
@tw93 Done in 785c289.