fixup target of 'all' can't be recognize in pake-cli
This commit is contained in:
8
bin/builders/common.ts
vendored
8
bin/builders/common.ts
vendored
@@ -175,7 +175,11 @@ export async function mergeTauriConfig(
|
||||
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'");
|
||||
}
|
||||
@@ -279,7 +283,7 @@ export async function mergeTauriConfig(
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let bundleConf = {tauri: {bundle: tauriConf.tauri.bundle}};
|
||||
await fs.writeFile(
|
||||
configPath,
|
||||
|
||||
Reference in New Issue
Block a user