diff --git a/bin/builders/LinuxBuilder.ts b/bin/builders/LinuxBuilder.ts index df1ee6e..4138dd2 100644 --- a/bin/builders/LinuxBuilder.ts +++ b/bin/builders/LinuxBuilder.ts @@ -46,7 +46,7 @@ export default class LinuxBuilder implements IBuilder { const { name } = options; await mergeTauriConfig(url, options, tauriConf); - await shellExec(`cd ${npmDirectory} && npm install && npm run build`); + await shellExec(`cd "${npmDirectory}" && npm install && npm run build`); let arch: string; if (process.arch === "x64") { diff --git a/bin/builders/MacBuilder.ts b/bin/builders/MacBuilder.ts index 71dc5d0..4eb129c 100644 --- a/bin/builders/MacBuilder.ts +++ b/bin/builders/MacBuilder.ts @@ -41,10 +41,10 @@ export default class MacBuilder implements IBuilder { await mergeTauriConfig(url, options, tauriConf); let dmgName: string; if (options.multiArch) { - await shellExec(`cd ${npmDirectory} && npm install && npm run build:mac`); + await shellExec(`cd "${npmDirectory}" && npm install && npm run build:mac`); dmgName = `${name}_${tauriConf.package.version}_universal.dmg`; } else { - await shellExec(`cd ${npmDirectory} && npm install && npm run build`); + await shellExec(`cd "${npmDirectory}" && npm install && npm run build`); let arch = "x64"; if (process.arch === "arm64") { arch = "aarch64"; diff --git a/bin/builders/WinBulider.ts b/bin/builders/WinBulider.ts index dfd5026..6362035 100644 --- a/bin/builders/WinBulider.ts +++ b/bin/builders/WinBulider.ts @@ -45,7 +45,7 @@ export default class WinBuilder implements IBuilder { await mergeTauriConfig(url, options, tauriConf); - await shellExec(`cd ${npmDirectory} && npm install && npm run build`); + await shellExec(`cd "${npmDirectory}" && npm install && npm run build`); const language = tauriConf.tauri.bundle.windows.wix.language[0]; const arch = process.arch; const msiName = `${name}_${tauriConf.package.version}_${arch}_${language}.msi`; diff --git a/dist/cli.js b/dist/cli.js index d38b39f..19c481e 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -1552,7 +1552,7 @@ function getDomain(inputUrl) { if (i === 0 || // 'asia.com' (last remaining must be the SLD) i < ln - 2 || // TLDs only span 2 levels part.length < minLength || // 'www.cn.com' (valid TLD as second-level domain) - tlds.indexOf(part) < 0 // officialy not a TLD + tlds.indexOf(part) < 0 // officially not a TLD ) { return part; } @@ -2019,11 +2019,11 @@ class MacBuilder { yield mergeTauriConfig(url, options, tauriConf); let dmgName; if (options.multiArch) { - yield shellExec(`cd ${npmDirectory} && npm install && npm run build:mac`); + yield shellExec(`cd "${npmDirectory}" && npm install && npm run build:mac`); dmgName = `${name}_${tauriConf.package.version}_universal.dmg`; } else { - yield shellExec(`cd ${npmDirectory} && npm install && npm run build`); + yield shellExec(`cd "${npmDirectory}" && npm install && npm run build`); let arch = "x64"; if (process.arch === "arm64") { arch = "aarch64"; @@ -2081,7 +2081,7 @@ class WinBuilder { logger.debug('PakeAppOptions', options); const { name } = options; yield mergeTauriConfig(url, options, tauriConf); - yield shellExec(`cd ${npmDirectory} && npm install && npm run build`); + yield shellExec(`cd "${npmDirectory}" && npm install && npm run build`); const language = tauriConf.tauri.bundle.windows.wix.language[0]; const arch = process.arch; const msiName = `${name}_${tauriConf.package.version}_${arch}_${language}.msi`; @@ -2126,7 +2126,7 @@ class LinuxBuilder { logger.debug('PakeAppOptions', options); const { name } = options; yield mergeTauriConfig(url, options, tauriConf); - yield shellExec(`cd ${npmDirectory} && npm install && npm run build`); + yield shellExec(`cd "${npmDirectory}" && npm install && npm run build`); let arch; if (process.arch === "x64") { arch = "amd64"; @@ -2217,7 +2217,7 @@ var exports = "./dist/pake.js"; var license = "MIT"; var dependencies = { "@tauri-apps/api": "^1.2.0", - "@tauri-apps/cli": "^1.2.2", + "@tauri-apps/cli": "^1.2.3", axios: "^1.1.3", chalk: "^5.1.2", commander: "^9.4.1", diff --git a/package.json b/package.json index d025938..adfb329 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pake-cli", - "version": "1.2.4", + "version": "1.2.5", "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚", "engines": { "node": ">=16.0.0"