fix app build (#6086)
This commit is contained in:
committed by
GitHub
parent
538eda6976
commit
71559d62c8
@@ -17,13 +17,11 @@ pub struct AdsState {
|
|||||||
|
|
||||||
const AD_LINK: &str = "https://modrinth.com/wrapper/app-ads-cookie";
|
const AD_LINK: &str = "https://modrinth.com/wrapper/app-ads-cookie";
|
||||||
#[cfg(not(target_os = "linux"))]
|
#[cfg(not(target_os = "linux"))]
|
||||||
const APP_VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
||||||
#[cfg(not(target_os = "linux"))]
|
|
||||||
const ADS_USER_AGENT: &str = concat!(
|
const ADS_USER_AGENT: &str = concat!(
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ",
|
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ",
|
||||||
"(KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 ",
|
"(KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 ",
|
||||||
"ModrinthApp/",
|
"ModrinthApp/",
|
||||||
APP_VERSION,
|
env!("CARGO_PKG_VERSION"),
|
||||||
" (Modrinth App)",
|
" (Modrinth App)",
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -36,14 +34,14 @@ fn ads_user_agent_override_params() -> String {
|
|||||||
"brands": [
|
"brands": [
|
||||||
{ "brand": "Chromium", "version": "128" },
|
{ "brand": "Chromium", "version": "128" },
|
||||||
{ "brand": "Google Chrome", "version": "128" },
|
{ "brand": "Google Chrome", "version": "128" },
|
||||||
{ "brand": "Modrinth App", "version": APP_VERSION },
|
{ "brand": "Modrinth App", "version": env!("CARGO_PKG_VERSION") },
|
||||||
{ "brand": "Not=A?Brand", "version": "99" },
|
{ "brand": "Not=A?Brand", "version": "99" },
|
||||||
],
|
],
|
||||||
"fullVersion": "128.0.0.0",
|
"fullVersion": "128.0.0.0",
|
||||||
"fullVersionList": [
|
"fullVersionList": [
|
||||||
{ "brand": "Chromium", "version": "128.0.0.0" },
|
{ "brand": "Chromium", "version": "128.0.0.0" },
|
||||||
{ "brand": "Google Chrome", "version": "128.0.0.0" },
|
{ "brand": "Google Chrome", "version": "128.0.0.0" },
|
||||||
{ "brand": "Modrinth App", "version": APP_VERSION },
|
{ "brand": "Modrinth App", "version": env!("CARGO_PKG_VERSION") },
|
||||||
{ "brand": "Not=A?Brand", "version": "99.0.0.0" },
|
{ "brand": "Not=A?Brand", "version": "99.0.0.0" },
|
||||||
],
|
],
|
||||||
"platform": "Windows",
|
"platform": "Windows",
|
||||||
|
|||||||
Reference in New Issue
Block a user