pake-cli 2.2.4 โ 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +10 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -20,7 +20,7 @@ import isUrl from 'is-url';
|
|
|
20
20
|
import fs from 'fs';
|
|
21
21
|
|
|
22
22
|
var name = "pake-cli";
|
|
23
|
-
var version = "2.2.
|
|
23
|
+
var version = "2.2.6";
|
|
24
24
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with Rust. ๐คฑ๐ป ๅพ็ฎๅ็็จ Rust ๆๅ
็ฝ้กต็ๆๅพๅฐ็ๆก้ข Appใ";
|
|
25
25
|
var engines = {
|
|
26
26
|
node: ">=16.0.0"
|
|
@@ -822,7 +822,15 @@ async function downloadIcon(iconUrl) {
|
|
|
822
822
|
return null;
|
|
823
823
|
}
|
|
824
824
|
const { path: tempPath } = await dir();
|
|
825
|
-
|
|
825
|
+
let iconPath = `${tempPath}/icon.${fileDetails.ext}`;
|
|
826
|
+
// Fix this for linux
|
|
827
|
+
if (IS_LINUX) {
|
|
828
|
+
iconPath = 'icon.png';
|
|
829
|
+
await fsExtra.outputFile(`${npmDirectory}/${iconPath}`, iconData);
|
|
830
|
+
}
|
|
831
|
+
else {
|
|
832
|
+
await fsExtra.outputFile(iconPath, iconData);
|
|
833
|
+
}
|
|
826
834
|
await fsExtra.outputFile(iconPath, iconData);
|
|
827
835
|
spinner.succeed(chalk.green('Icon downloaded successfully!'));
|
|
828
836
|
return iconPath;
|
package/package.json
CHANGED