🐛 Fix fnm bug

This commit is contained in:
Tw93
2023-06-28 21:55:20 +08:00
parent 284a18e7dc
commit b903081f88
3 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ export default abstract class BaseBuilder {
// Build app // Build app
const spinner = getSpinner('Building app...'); const spinner = getSpinner('Building app...');
setTimeout(() => spinner.stop(), 3000); setTimeout(() => spinner.stop(), 3000);
await shellExec(`cd ${npmDirectory} && ${this.getBuildCommand()}`); await shellExec(`cd "${npmDirectory}" && ${this.getBuildCommand()}`);
// Copy app // Copy app
const fileName = this.getFileName(); const fileName = this.getFileName();

4
dist/cli.js vendored
View File

@@ -20,7 +20,7 @@ import isUrl from 'is-url';
import fs from 'fs'; import fs from 'fs';
var name = "pake-cli"; var name = "pake-cli";
var version = "2.1.11"; var version = "2.1.12";
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。"; var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。";
var engines = { var engines = {
node: ">=16.0.0" node: ">=16.0.0"
@@ -662,7 +662,7 @@ class BaseBuilder {
// Build app // Build app
const spinner = getSpinner('Building app...'); const spinner = getSpinner('Building app...');
setTimeout(() => spinner.stop(), 3000); setTimeout(() => spinner.stop(), 3000);
await shellExec(`cd ${npmDirectory} && ${this.getBuildCommand()}`); await shellExec(`cd "${npmDirectory}" && ${this.getBuildCommand()}`);
// Copy app // Copy app
const fileName = this.getFileName(); const fileName = this.getFileName();
const fileType = this.getFileType(target); const fileType = this.getFileType(target);

View File

@@ -1,6 +1,6 @@
{ {
"name": "pake-cli", "name": "pake-cli",
"version": "2.1.11", "version": "2.1.12",
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。", "description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 很简单的用 Rust 打包网页生成很小的桌面 App。",
"engines": { "engines": {
"node": ">=16.0.0" "node": ">=16.0.0"