🐛 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")

View File

@@ -1,6 +1,6 @@
{
"name": "pake-cli",
"version": "1.2.1",
"version": "1.2.2",
"description": "🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App 🤱🏻 A simple way to make any web page a desktop application using Rust.",
"engines": {
"node": ">=16.0.0"