pake-cli 1.2.9 โ 1.3.0
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 +17 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1659,6 +1659,7 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|
|
1659
1659
|
.then(() => true)
|
|
1660
1660
|
.catch(() => false);
|
|
1661
1661
|
if (process.platform === "linux") {
|
|
1662
|
+
delete tauriConf.tauri.bundle.deb.files;
|
|
1662
1663
|
if (["all", "deb", "appimage"].includes(options.targets)) {
|
|
1663
1664
|
tauriConf.tauri.bundle.targets = [options.targets];
|
|
1664
1665
|
}
|
|
@@ -1681,7 +1682,6 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|
|
1681
1682
|
}
|
|
1682
1683
|
}
|
|
1683
1684
|
if (process.platform === "linux") {
|
|
1684
|
-
delete tauriConf.tauri.bundle.deb.files;
|
|
1685
1685
|
if (customIconExt != ".png") {
|
|
1686
1686
|
updateIconPath = false;
|
|
1687
1687
|
logger.warn(`icon file in Linux must be 512 * 512 pix with .png type, but you give ${customIconExt}`);
|
|
@@ -1700,6 +1700,21 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
else {
|
|
1702
1702
|
logger.warn("the custom icon path may not exists. we will use default icon to replace it");
|
|
1703
|
+
switch (process.platform) {
|
|
1704
|
+
case "win32": {
|
|
1705
|
+
tauriConf.tauri.bundle.resources = ['png/icon_32.ico'];
|
|
1706
|
+
tauriConf.tauri.bundle.icon = ['png/icon_32.ico', 'png/icon_256.ico'];
|
|
1707
|
+
break;
|
|
1708
|
+
}
|
|
1709
|
+
case "darwin": {
|
|
1710
|
+
tauriConf.tauri.bundle.icon = ['icons/icon.icns'];
|
|
1711
|
+
break;
|
|
1712
|
+
}
|
|
1713
|
+
case "linux": {
|
|
1714
|
+
tauriConf.tauri.bundle.icon = ['png/icon_512.png'];
|
|
1715
|
+
break;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1703
1718
|
}
|
|
1704
1719
|
let configPath = "";
|
|
1705
1720
|
switch (process.platform) {
|
|
@@ -2183,7 +2198,7 @@ class BuilderFactory {
|
|
|
2183
2198
|
}
|
|
2184
2199
|
|
|
2185
2200
|
var name = "pake-cli";
|
|
2186
|
-
var version = "1.
|
|
2201
|
+
var version = "1.3.0";
|
|
2187
2202
|
var description = "๐คฑ๐ป Turn any webpage into a desktop app with Rust. ๐คฑ๐ป ๅพ็ฎๅ็็จ Rust ๆๅ
็ฝ้กต็ๆๅพๅฐ็ๆก้ข Appใ";
|
|
2188
2203
|
var engines = {
|
|
2189
2204
|
node: ">=16.0.0"
|
package/package.json
CHANGED