删除pake-cli 默认linux平台的桌面图标文件映射
This commit is contained in:
5
dist/cli.js
vendored
5
dist/cli.js
vendored
@@ -1764,6 +1764,10 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|||||||
}
|
}
|
||||||
tauriConf.package.productName = name;
|
tauriConf.package.productName = name;
|
||||||
tauriConf.tauri.bundle.identifier = identifier;
|
tauriConf.tauri.bundle.identifier = identifier;
|
||||||
|
// 删除映射关系
|
||||||
|
if (process.platform === "linux") {
|
||||||
|
delete tauriConf.tauri.bundle.deb.files;
|
||||||
|
}
|
||||||
// 处理应用图标
|
// 处理应用图标
|
||||||
const exists = yield fs$1.stat(options.icon)
|
const exists = yield fs$1.stat(options.icon)
|
||||||
.then(() => true)
|
.then(() => true)
|
||||||
@@ -1783,7 +1787,6 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
delete tauriConf.tauri.bundle.deb.files;
|
|
||||||
if (customIconExt != ".png") {
|
if (customIconExt != ".png") {
|
||||||
updateIconPath = false;
|
updateIconPath = false;
|
||||||
logger.warn(`icon file in Linux must be 512 * 512 pix with .png type, but you give ${customIconExt}`);
|
logger.warn(`icon file in Linux must be 512 * 512 pix with .png type, but you give ${customIconExt}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user