fixup target of 'all' can't be recognize in pake-cli
This commit is contained in:
7
dist/cli.js
vendored
7
dist/cli.js
vendored
@@ -1767,7 +1767,12 @@ function mergeTauriConfig(url, options, tauriConf) {
|
||||
if (process.platform === "linux") {
|
||||
delete tauriConf.tauri.bundle.deb.files;
|
||||
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 {
|
||||
logger.warn("targets must be 'all', 'deb', 'appimage', we will use default 'all'");
|
||||
|
||||
Reference in New Issue
Block a user