diff --git a/bin/builders/common.ts b/bin/builders/common.ts index 3c0dc37..ef832f0 100644 --- a/bin/builders/common.ts +++ b/bin/builders/common.ts @@ -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") diff --git a/package.json b/package.json index 62b67fe..607e170 100644 --- a/package.json +++ b/package.json @@ -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"