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.
Files changed (2) hide show
  1. package/dist/cli.js +10 -2
  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.4";
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
- const iconPath = `${tempPath}/icon.${fileDetails.ext}`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "๐Ÿคฑ๐Ÿป Turn any webpage into a desktop app with Rust. ๐Ÿคฑ๐Ÿป ๅพˆ็ฎ€ๅ•็š„็”จ Rust ๆ‰“ๅŒ…็ฝ‘้กต็”Ÿๆˆๅพˆๅฐ็š„ๆกŒ้ข Appใ€‚",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"