Skip to content

Commit

Permalink
🔖 2.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Jul 21, 2023
1 parent 4758951 commit 26f2156
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dist/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 26f2156

Please sign in to comment.