Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2025-08-11 17:16:30 +00:00
5 changed files with 46 additions and 21 deletions
+21 -5
View File
@@ -36,17 +36,33 @@ body:
validations:
required: true
- type: input
attributes:
label: Installation method
description: Describe how WiVRn and OpenComposite/xrizer were installed
placeholder: flatpak --user, flatpak, AUR, Gentoo/Guru, built from sources...
- type: textarea
attributes:
label: Server Config
description: Provide the content of `config.json` for the server.
placeholder: Add the content of config.json here...
description: |
Provide the content of `config.json` for the server.
Located in `${XDG_CONFIG_HOME-${HOME}/.config}/wivrn/config.json`
or `~/.var/app/io.github.wivrn.wivrn/config/wivrn/config.json` for the flatpak version
placeholder: |
{
"encoders": [
{"codec": "h264"}
]
}
- type: textarea
attributes:
label: Server Logs
description: Provide the `wivrn-server` output.
placeholder: Add the output of the wivrn-server here...
placeholder: |
Add the output of the wivrn-server here.
If more than a few lines, prefer file attachment.
- type: dropdown
id: gpu
@@ -64,7 +80,7 @@ body:
attributes:
label: Vulkan Info
description: Provide the output of `vulkaninfo --summary` command.
placeholder: Add the output of vulkaninfo command here...
placeholder: Attach the output as a file here.
- type: dropdown
id: hmd
@@ -90,4 +106,4 @@ body:
attributes:
label: ADB Logs
description: Provide the output of `adb logcat` command.
placeholder: Add the output of adb logcat command here...
placeholder: Attach the output of adb logcat as a file.
+1
View File
@@ -13,6 +13,7 @@ execute_process(
if (GIT_DESC)
string(STRIP ${GIT_DESC} GIT_DESC)
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
message(STATUS "Setting version to ${GIT_DESC} from git")
else()
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
+1
View File
@@ -7,6 +7,7 @@ else()
endif()
if (GIT_DESC)
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
configure_file(version.cpp.in version.cpp)
else ()
add_custom_target(wivrn-version ALL
+7
View File
@@ -969,6 +969,7 @@ int main(int argc, char * argv[])
std::string config_file;
app.add_option("-f", config_file, "configuration file")->option_text("FILE")->check(CLI::ExistingFile);
auto version_flag = app.add_flag("--version")->description("print version and exit");
auto no_active_runtime = app.add_flag("--no-manage-active-runtime")->description("don't set the active runtime on connection");
auto early_active_runtime = app.add_flag("--early-active-runtime")->description("forcibly manages the active runtime even if no headset present");
auto no_instructions = app.add_flag("--no-instructions")->group("");
@@ -981,6 +982,12 @@ int main(int argc, char * argv[])
CLI11_PARSE(app, argc, argv);
if (*version_flag)
{
std::cout << "WiVRn version " << wivrn::git_version << std::endl;
return 0;
}
if (not config_file.empty())
configuration::set_config_file(config_file);
+16 -16
View File
@@ -95,7 +95,7 @@ if __name__ == "__main__":
dashboard_ref = polib.pofile(dashboard_pot)
for lang in args.lang:
lang_issues = 0
for po_ref, po in ((client_ref, os.path.join(locale_dir, lang, "wivrn.po")),
(dashboard_ref, os.path.join(locale_dir, lang, "wivrn-dashboard.po"))):
if not os.path.exists(po):
@@ -110,23 +110,23 @@ if __name__ == "__main__":
if not i.msgid in entries:
missing = missing + 1
print(f"::notice file={po}::{flag(lang)} Translation for {repr(i.msgid)} is missing")
lang_issues += missing
if missing > 0:
print(f"::warning file={po}::{flag(lang)} {missing} translations missing")
if args.manage_issues:
issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)]
if not issues:
issue = repo.create_issue(
title=ISSUE_TITLE.format(lang=lang),
labels = [ISSUE_LABEL]
)
else:
for issue in issues:
if issue.state != "open":
issue.edit(state = "open")
else:
if args.manage_issues:
issues = [i for i in repo.get_issues(state="open", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)]
if args.manage_issues:
issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)]
if lang_issues > 0:
if issues:
for issue in issues:
issue.edit(state = "closed")
if issue.state != "open":
issue.edit(state="open")
else:
issue = repo.create_issue(
title=ISSUE_TITLE.format(lang=lang),
labels=[ISSUE_LABEL]
)
else:
for issue in issues:
issue.edit(state="closed")