fixup target of 'all' can't be recognize in pake-cli
This commit is contained in:
6
bin/builders/common.ts
vendored
6
bin/builders/common.ts
vendored
@@ -175,7 +175,11 @@ export async function mergeTauriConfig(
|
|||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
delete tauriConf.tauri.bundle.deb.files;
|
delete tauriConf.tauri.bundle.deb.files;
|
||||||
if (["all", "deb", "appimage"].includes(options.targets)) {
|
if (["all", "deb", "appimage"].includes(options.targets)) {
|
||||||
tauriConf.tauri.bundle.targets = [options.targets];
|
if (options.targets === "all") {
|
||||||
|
tauriConf.tauri.bundle.targets = ["deb", "appimage"];
|
||||||
|
} else {
|
||||||
|
tauriConf.tauri.bundle.targets = [options.targets];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.warn("targets must be 'all', 'deb', 'appimage', we will use default 'all'");
|
logger.warn("targets must be 'all', 'deb', 'appimage', we will use default 'all'");
|
||||||
}
|
}
|
||||||
|
|||||||
7
dist/cli.js
vendored
7
dist/cli.js
vendored
@@ -1767,7 +1767,12 @@ function mergeTauriConfig(url, options, tauriConf) {
|
|||||||
if (process.platform === "linux") {
|
if (process.platform === "linux") {
|
||||||
delete tauriConf.tauri.bundle.deb.files;
|
delete tauriConf.tauri.bundle.deb.files;
|
||||||
if (["all", "deb", "appimage"].includes(options.targets)) {
|
if (["all", "deb", "appimage"].includes(options.targets)) {
|
||||||
tauriConf.tauri.bundle.targets = [options.targets];
|
if (options.targets === "all") {
|
||||||
|
tauriConf.tauri.bundle.targets = ["deb", "appimage"];
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tauriConf.tauri.bundle.targets = [options.targets];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
logger.warn("targets must be 'all', 'deb', 'appimage', we will use default 'all'");
|
logger.warn("targets must be 'all', 'deb', 'appimage', we will use default 'all'");
|
||||||
|
|||||||
Reference in New Issue
Block a user