diff --git a/dist/cli.js b/dist/cli.js index 81e7672..4ff51ee 100644 --- a/dist/cli.js +++ b/dist/cli.js @@ -13,14 +13,13 @@ import http from 'http'; import { promisify } from 'util'; import updateNotifier from 'update-notifier'; import axios from 'axios'; -import { dir } from 'tmp-promise'; import { fileTypeFromBuffer } from 'file-type'; import psl from 'psl'; import isUrl from 'is-url'; import fs from 'fs'; var name = "pake-cli"; -var version = "2.2.1"; +var version = "2.2.2"; var description = "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚"; var engines = { node: ">=16.0.0" @@ -79,7 +78,6 @@ var dependencies = { prompts: "^2.4.2", psl: "^1.9.0", shelljs: "^0.8.5", - "tmp-promise": "^3.0.3", "update-notifier": "^6.0.2" }; var devDependencies = { @@ -821,8 +819,8 @@ async function downloadIcon(iconUrl) { if (!fileDetails) { return null; } - const { path: tempPath } = await dir(); - const iconPath = `${tempPath}/icon.${fileDetails.ext}`; + const iconPath = `assets/icon.${fileDetails.ext}`; + await fsExtra.outputFile(`./src-tauri/${iconPath}`, iconData); await fsExtra.outputFile(iconPath, iconData); spinner.succeed(chalk.green('Icon downloaded successfully!')); return iconPath;