desktop: Add version info to crash report
This commit is contained in:
parent
2189d19324
commit
e27fdda3dc
|
@ -33,6 +33,13 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
# Device information
|
# Device information
|
||||||
|
- type: input
|
||||||
|
id: ruffle_version
|
||||||
|
attributes:
|
||||||
|
label: Ruffle Version
|
||||||
|
description: What version of Ruffle did this crash occur in?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
- type: dropdown
|
- type: dropdown
|
||||||
id: platform
|
id: platform
|
||||||
attributes:
|
attributes:
|
||||||
|
|
|
@ -54,11 +54,13 @@ thread_local! {
|
||||||
static GLOBAL: tracing_tracy::client::ProfiledAllocator<std::alloc::System> =
|
static GLOBAL: tracing_tracy::client::ProfiledAllocator<std::alloc::System> =
|
||||||
tracing_tracy::client::ProfiledAllocator::new(std::alloc::System, 100);
|
tracing_tracy::client::ProfiledAllocator::new(std::alloc::System, 100);
|
||||||
|
|
||||||
|
static RUFFLE_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/version-info.txt"));
|
||||||
|
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
#[clap(
|
#[clap(
|
||||||
name = "Ruffle",
|
name = "Ruffle",
|
||||||
author,
|
author,
|
||||||
version = include_str!(concat!(env!("OUT_DIR"), "/version-info.txt")),
|
version = RUFFLE_VERSION,
|
||||||
)]
|
)]
|
||||||
struct Opt {
|
struct Opt {
|
||||||
/// Path to a Flash movie (SWF) to play.
|
/// Path to a Flash movie (SWF) to play.
|
||||||
|
@ -909,6 +911,7 @@ fn panic_hook(info: &PanicInfo) {
|
||||||
params.push(("panic_text", info.to_string()));
|
params.push(("panic_text", info.to_string()));
|
||||||
params.push(("platform", "Desktop app".to_string()));
|
params.push(("platform", "Desktop app".to_string()));
|
||||||
params.push(("operating_system", os_info::get().to_string()));
|
params.push(("operating_system", os_info::get().to_string()));
|
||||||
|
params.push(("ruffle_version", RUFFLE_VERSION.to_string()));
|
||||||
let mut extra_info = vec![];
|
let mut extra_info = vec![];
|
||||||
RENDER_INFO.with(|i| {
|
RENDER_INFO.with(|i| {
|
||||||
if let Some(render_info) = i.take() {
|
if let Some(render_info) = i.take() {
|
||||||
|
|
Loading…
Reference in New Issue