Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -36,17 +36,33 @@ body:
|
|||||||
validations:
|
validations:
|
||||||
required: true
|
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
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Server Config
|
label: Server Config
|
||||||
description: Provide the content of `config.json` for the server.
|
description: |
|
||||||
placeholder: Add the content of config.json here...
|
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
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
label: Server Logs
|
label: Server Logs
|
||||||
description: Provide the `wivrn-server` output.
|
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
|
- type: dropdown
|
||||||
id: gpu
|
id: gpu
|
||||||
@@ -64,7 +80,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: Vulkan Info
|
label: Vulkan Info
|
||||||
description: Provide the output of `vulkaninfo --summary` command.
|
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
|
- type: dropdown
|
||||||
id: hmd
|
id: hmd
|
||||||
@@ -90,4 +106,4 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: ADB Logs
|
label: ADB Logs
|
||||||
description: Provide the output of `adb logcat` command.
|
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.
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ execute_process(
|
|||||||
|
|
||||||
if (GIT_DESC)
|
if (GIT_DESC)
|
||||||
string(STRIP ${GIT_DESC} 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")
|
message(STATUS "Setting version to ${GIT_DESC} from git")
|
||||||
else()
|
else()
|
||||||
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
set(GIT_DESC v${CMAKE_PROJECT_VERSION})
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (GIT_DESC)
|
if (GIT_DESC)
|
||||||
|
string(REGEX REPLACE "^v([0-9])" "\\1" GIT_DESC ${GIT_DESC})
|
||||||
configure_file(version.cpp.in version.cpp)
|
configure_file(version.cpp.in version.cpp)
|
||||||
else ()
|
else ()
|
||||||
add_custom_target(wivrn-version ALL
|
add_custom_target(wivrn-version ALL
|
||||||
|
|||||||
@@ -969,6 +969,7 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
std::string config_file;
|
std::string config_file;
|
||||||
app.add_option("-f", config_file, "configuration file")->option_text("FILE")->check(CLI::ExistingFile);
|
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 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 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("");
|
auto no_instructions = app.add_flag("--no-instructions")->group("");
|
||||||
@@ -981,6 +982,12 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
CLI11_PARSE(app, argc, 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())
|
if (not config_file.empty())
|
||||||
configuration::set_config_file(config_file);
|
configuration::set_config_file(config_file);
|
||||||
|
|
||||||
|
|||||||
+16
-16
@@ -95,7 +95,7 @@ if __name__ == "__main__":
|
|||||||
dashboard_ref = polib.pofile(dashboard_pot)
|
dashboard_ref = polib.pofile(dashboard_pot)
|
||||||
|
|
||||||
for lang in args.lang:
|
for lang in args.lang:
|
||||||
|
lang_issues = 0
|
||||||
for po_ref, po in ((client_ref, os.path.join(locale_dir, lang, "wivrn.po")),
|
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"))):
|
(dashboard_ref, os.path.join(locale_dir, lang, "wivrn-dashboard.po"))):
|
||||||
if not os.path.exists(po):
|
if not os.path.exists(po):
|
||||||
@@ -110,23 +110,23 @@ if __name__ == "__main__":
|
|||||||
if not i.msgid in entries:
|
if not i.msgid in entries:
|
||||||
missing = missing + 1
|
missing = missing + 1
|
||||||
print(f"::notice file={po}::{flag(lang)} Translation for {repr(i.msgid)} is missing")
|
print(f"::notice file={po}::{flag(lang)} Translation for {repr(i.msgid)} is missing")
|
||||||
|
lang_issues += missing
|
||||||
|
|
||||||
if missing > 0:
|
if missing > 0:
|
||||||
print(f"::warning file={po}::{flag(lang)} {missing} translations missing")
|
print(f"::warning file={po}::{flag(lang)} {missing} translations missing")
|
||||||
|
|
||||||
if args.manage_issues:
|
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)]
|
issues = [i for i in repo.get_issues(state="all", labels = [ISSUE_LABEL]) if i.title == ISSUE_TITLE.format(lang=lang)]
|
||||||
if not issues:
|
if lang_issues > 0:
|
||||||
issue = repo.create_issue(
|
if issues:
|
||||||
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)]
|
|
||||||
for issue in 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")
|
||||||
|
|||||||
Reference in New Issue
Block a user