fix: some buildflag has uncertain value

Fully initialize those options.

Log:
This commit is contained in:
kamiyadm 2024-11-06 17:59:15 +08:00 committed by dengbo
parent f9ae16f25d
commit 7d848ab3a5
2 changed files with 21 additions and 5 deletions

View File

@ -214,8 +214,20 @@ You can report bugs to the linyaps team under this project: https://github.com/O
""
};
CliOptions options;
options.type = "app";
CliOptions options = CliOptions{ .filePath = "",
.fileUrl = "",
.workDir = "",
.appid = "",
.instance = "",
.module = "",
.type = "app",
.repoName = "",
.repoUrl = "",
.commands = {},
.showDevel = false,
.showUpgradeList = false,
.forceOpt = false,
.confirmOpt = false };
// groups
std::string CliBuildInGroup = _("Managing installed applications and runtimes");

View File

@ -27,9 +27,13 @@ struct BuilderBuildOptions
{
// 兼容选项在制作runtime时构建全量develop, 以兼容旧版本linglong-builder使用
// TODO 后续版本删除该选项
bool fullDevelop;
bool skipFetchSource, skipPullDepend, skipRunContainer, skipCommitOutput, skipCheckOutput,
skipStripSymbols;
bool fullDevelop {false};
bool skipFetchSource {false};
bool skipPullDepend {false};
bool skipRunContainer {false};
bool skipCommitOutput {false};
bool skipCheckOutput {false};
bool skipStripSymbols {false};
};
class Builder