🐛 remove mac name regex

This commit is contained in:
Tw93
2023-01-17 15:37:21 +08:00
parent de3ef9bfdf
commit 2faa8aace0
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ export async function mergeTauriConfig(
process.exit();
}
}
if (process.platform === "win32" || process.platform === "darwin" ) {
if (process.platform === "win32") {
const reg = new RegExp(/([0-9]*[a-zA-Z]+[0-9]*)+/);
if (!reg.test(name) || reg.exec(name)[0].length != name.length) {
logger.error("package name is illegal it must be letters, numbers, and it must contain the letters")