Skip to content

Commit

Permalink
Merge branch 'main' into build-monero
Browse files Browse the repository at this point in the history
  • Loading branch information
brianp authored Nov 27, 2024
2 parents 29797c7 + 78b2a94 commit 7e91d23
Show file tree
Hide file tree
Showing 56 changed files with 405 additions and 155 deletions.
20 changes: 10 additions & 10 deletions .updater/latest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "0.7.4",
"version": "0.7.7",
"notes": "Tari Universe - See the assets to download this version and install",
"pub_date": "2024-11-21T19:25:02.610Z",
"pub_date": "2024-11-24T09:24:28.921Z",
"platforms": {
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFVpRzdZTnd3aWlhZVpuaklpSTVGc0k3ZWJITlJ1dDNuRExrOWJyT2Q5UDByeHlDa0p1NVh4QnBZSUV2cVROc3c2RjE0OXNCcGs0V3BubmhpWXB3cGc4PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjE2MTA3CWZpbGU6dGFyaS11bml2ZXJzZV8wLjcuNF9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKKy91MVJ4cjBScWZwd0QwRXNPaS9UTjlkY05PVktLMk5ZdUtBeitOVXpuRmQrS3RGVzdFTXQyU081ditZMlZncVFvVFQ1bWYwMjkzYUIxSEkxY21oQVE9PQo=",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.4/tari-universe_0.7.4_amd64.AppImage.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFpzN05JN3FFRUdxYlZKNjlXa0NLYUVHdFNIQmJQUitiTkRsWW9vTHc4MVpRdGlPUFRDNkdOZkFES3pIQ2ZtQ2VRUmtrNVdiOUY4aW5mWE14N3pJUUFVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5MTU3CWZpbGU6dGFyaS11bml2ZXJzZV8wLjcuN19hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKeXZ4enFaTEcxSHV0TXpkaVJFODJTSHRVVStGRmQ2bEpyM281aEtpNHFDejgyVHV4T1pBZmRDSFdMU2dOWnNNU2hqTkN4ZFQrYVg3Q2RoWkVUMjFlQ2c9PQo=",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/tari-universe_0.7.7_amd64.AppImage.tar.gz"
},
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOGVhWmtmK0F5U01pclltcUpGRkpEVitSSGNLbTBDZDhOQ1NWbStldERVWGRIWnJWbTNDREtyYThwYnpHaDRlYmE0SWtjWWxwMWUrdTl3Q2lIRlcrZHdRPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjE2ODUwCWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6Cm8rMWNTOUtxSWZlajcvSFFOZ3VqQ01JcHN6eGNnQ0NkRzJlYVYrbjc3THgzSW1MNm5KYkVhaFYwV1NKRDBTVTBUVm5BbHdUNElVVDdQei9hRmR5eEJRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.4/Tari.Universe_universal.app.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFlZOEZ4ckt1Skt4MzdhNnB5aVpSdmw0emNhem9NQkd4ck9jSUVTRndrUkRVcEt2eFRxVWZBRERDdlFZUHM4eGhLUUNOMEZrdVZsVG9wcmFpRzdHWmdBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5NjE1CWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6ClFJYjViNWxRcitWcmQ1ZW5MdmVPeDRkbGJ2ODBKWGMrbGRKSW5JUFNuNXR0RHJYczEvclI2L0VqVWdhZ2ZsemJocjdjVWxHdVpkRFo2cWhidnRPaUNRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_universal.app.tar.gz"
},
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOGVhWmtmK0F5U01pclltcUpGRkpEVitSSGNLbTBDZDhOQ1NWbStldERVWGRIWnJWbTNDREtyYThwYnpHaDRlYmE0SWtjWWxwMWUrdTl3Q2lIRlcrZHdRPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjE2ODUwCWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6Cm8rMWNTOUtxSWZlajcvSFFOZ3VqQ01JcHN6eGNnQ0NkRzJlYVYrbjc3THgzSW1MNm5KYkVhaFYwV1NKRDBTVTBUVm5BbHdUNElVVDdQei9hRmR5eEJRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.4/Tari.Universe_universal.app.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFlZOEZ4ckt1Skt4MzdhNnB5aVpSdmw0emNhem9NQkd4ck9jSUVTRndrUkRVcEt2eFRxVWZBRERDdlFZUHM4eGhLUUNOMEZrdVZsVG9wcmFpRzdHWmdBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5NjE1CWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6ClFJYjViNWxRcitWcmQ1ZW5MdmVPeDRkbGJ2ODBKWGMrbGRKSW5JUFNuNXR0RHJYczEvclI2L0VqVWdhZ2ZsemJocjdjVWxHdVpkRFo2cWhidnRPaUNRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_universal.app.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFFieFJMSXI3MFZLdE1QMW5sd1BVeFZIOGZXdFZUMllsbVlFaDVtUTNTVlM1SitZL3hhdnVadm0zdHNWMW9iRnRRZmc2bmNOUnV6ZVhWWitHVm9FVUFNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjE3MDk2CWZpbGU6VGFyaSBVbml2ZXJzZV8wLjcuNF94NjRfZW4tVVMubXNpLnppcApBYXNIcG1pYlFVaHVBVzlMS1pka0I5QWZ6ZjZVVTQ1c0haTXRTbW1SSE1MUWZDeEdpNTZNa3dIUlRoZFpDaUhaRGdiKy8yNFF4Q0k4NmRWeDA4YUNBdz09Cg==",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.4/Tari.Universe_0.7.4_x64_en-US.msi.zip"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFhaWjJvS3pUUy93WkNpUUN5djZWUWNnSEJEWEVBSHp0SUt0ZVNhTkNLck9RazRxVmo2YTFtNjRTSTRsTXY1SDBKTjBZV1ZUWWprUktWR0MrRGxCQXdVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDQwMjY0CWZpbGU6VGFyaSBVbml2ZXJzZV8wLjcuN194NjRfZW4tVVMubXNpLnppcAowSDlUVFVQVi9PNUFQRnhCbUhJTkdnMVduZFQzM1RjRVdrR0RwNG5NZlFucXRTbC9TMDVhYzZ3WXRQcTlYYUJTUkxJd1pJeGNrSVpkcmZTeCtBSDRCZz09Cg==",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_0.7.7_x64_en-US.msi.zip"
}
}
}
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,14 @@
glApp.setSize(window.innerWidth, window.innerHeight);
}

document.addEventListener('DOMContentLoaded', preload);
document.addEventListener('DOMContentLoaded', () => {
if (!window.WebGL2RenderingContext && !window.WebGLRenderingContext) {
console.error('WebGL not supported!');
return;
}

preload();
});
</script>
</main>
</body>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tari-universe",
"private": true,
"version": "0.7.4",
"version": "0.7.8",
"type": "module",
"scripts": {
"dev": "vite dev --mode development",
Expand Down
3 changes: 2 additions & 1 deletion public/locales/af/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Gebruik",
"utilization": "Benutting",
"version": "Weergawe",
"versions": "Weergawes"
"versions": "Weergawes",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/cn/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "使用",
"utilization": "利用率",
"version": "版本",
"versions": "版本"
"versions": "版本",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Nutzung",
"utilization": "Auslastung",
"version": "Version",
"versions": "Versionen"
"versions": "Versionen",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Usage",
"utilization": "Utilization",
"version": "Version",
"versions": "Versions"
"versions": "Versions",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Utilisation",
"utilization": "Utilisation",
"version": "Version",
"versions": "Versions"
"versions": "Versions",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/hi/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "उपयोग",
"utilization": "उपयोग",
"version": "संस्करण",
"versions": "संस्करण"
"versions": "संस्करण",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/id/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Penggunaan",
"utilization": "Pemanfaatan",
"version": "Versi",
"versions": "Versi"
"versions": "Versi",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/ja/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "使用量",
"utilization": "利用率",
"version": "バージョン",
"versions": "バージョン"
"versions": "バージョン",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/ko/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "사용량",
"utilization": "활용도",
"version": "버전",
"versions": "버전"
"versions": "버전",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/pl/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Użycie",
"utilization": "Wykorzystanie",
"version": "Wersja",
"versions": "Wersje"
"versions": "Wersje",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/ru/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Использование",
"utilization": "Использование",
"version": "Версия",
"versions": "Версии"
"versions": "Версии",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion public/locales/tr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"usage": "Kullanım",
"utilization": "Fayda",
"version": "Versiyon",
"versions": "Versiyon"
"versions": "Versiyon",
"webgl-not-supported": "WebGL not supported. Disabled visual mode."
}
3 changes: 2 additions & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ description = "Tari Universe"
edition = "2021"
name = "tari-universe"
repository = "https://github.com/tari-project/universe"
version = "0.7.4"
version = "0.7.8"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
embed-resource = "2.5.0"
tauri-build = { version = "1.5.5", features = ["isolation"] }

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src-tauri/binaries_versions_esmeralda.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"mmproxy": "=1.9.0-pre.0",
"minotari_node": "=1.9.0-pre.0",
"wallet": "=1.9.0-pre.0",
"sha-p2pool": "=0.10.2",
"xtrgpuminer": "=0.1.22",
"sha-p2pool": "=0.11.0",
"xtrgpuminer": "=0.2.9",
"tor": "=13.5.7"
}
}
4 changes: 2 additions & 2 deletions src-tauri/binaries_versions_nextnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"mmproxy": "=1.9.0-rc.0",
"minotari_node": "=1.9.0-rc.0",
"wallet": "=1.9.0-rc.0",
"sha-p2pool": "=0.10.2",
"xtrgpuminer": "=0.1.22",
"sha-p2pool": "=0.11.0",
"xtrgpuminer": "=0.2.9",
"tor": "=13.5.7"
}
}
34 changes: 33 additions & 1 deletion src-tauri/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
fn main() {
tauri_build::build()
if cfg!(target_os = "windows") {
let mut windows = tauri_build::WindowsAttributes::new();
// Require Administrator permissions to handle Firewall prompts
windows = windows.app_manifest(
r#"
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
"#,
);
let attrs = tauri_build::Attributes::new().windows_attributes(windows);
tauri_build::try_build(attrs).expect("failed to run build script")
} else {
tauri_build::build()
}
}
20 changes: 14 additions & 6 deletions src-tauri/src/app_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,11 @@ pub struct AppConfigFromFile {
reset_earnings: bool,
eco_mode_cpu_threads: Option<u32>,
ludicrous_mode_cpu_threads: Option<u32>,
#[serde(default = "default_vec_string")]
eco_mode_cpu_options: Vec<String>,
#[serde(default = "default_vec_string")]
ludicrous_mode_cpu_options: Vec<String>,
#[serde(default = "default_vec_string")]
custom_mode_cpu_options: Vec<String>,
#[serde(default = "default_false")]
mmproxy_use_monero_fail: bool,
Expand All @@ -67,7 +70,7 @@ pub struct AppConfigFromFile {
#[serde(default = "default_custom_max_cpu_usage")]
custom_max_cpu_usage: Option<u32>,
#[serde(default = "default_custom_max_gpu_usage")]
custom_max_gpu_usage: Vec<GpuThreads>,
custom_max_gpu_usage: Option<Vec<GpuThreads>>,
#[serde(default = "default_true")]
auto_update: bool,
#[serde(default = "default_false")]
Expand Down Expand Up @@ -100,7 +103,7 @@ impl Default for AppConfigFromFile {
should_auto_launch: false,
application_language: default_application_language(),
custom_max_cpu_usage: None,
custom_max_gpu_usage: vec![],
custom_max_gpu_usage: Some(vec![]),
paper_wallet_enabled: true,
use_tor: true,
eco_mode_cpu_options: Vec::new(),
Expand Down Expand Up @@ -313,7 +316,7 @@ impl AppConfig {
self.mmproxy_monero_nodes = config.mmproxy_monero_nodes;
self.mmproxy_use_monero_fail = config.mmproxy_use_monero_fail;
self.custom_max_cpu_usage = config.custom_max_cpu_usage;
self.custom_max_gpu_usage = config.custom_max_gpu_usage.clone();
self.custom_max_gpu_usage = config.custom_max_gpu_usage.unwrap_or(vec![]);
self.auto_update = config.auto_update;
self.reset_earnings = config.reset_earnings;
self.custom_power_levels_enabled = config.custom_power_levels_enabled;
Expand Down Expand Up @@ -658,7 +661,7 @@ impl AppConfig {
application_language: self.application_language.clone(),
paper_wallet_enabled: self.paper_wallet_enabled,
custom_max_cpu_usage: self.custom_max_cpu_usage,
custom_max_gpu_usage: self.custom_max_gpu_usage.clone(),
custom_max_gpu_usage: Some(self.custom_max_gpu_usage.clone()),
use_tor: self.use_tor,
reset_earnings: self.reset_earnings,
eco_mode_cpu_options: self.eco_mode_cpu_options.clone(),
Expand Down Expand Up @@ -690,8 +693,8 @@ fn default_custom_max_cpu_usage() -> Option<u32> {
None
}

fn default_custom_max_gpu_usage() -> Vec<GpuThreads> {
vec![]
fn default_custom_max_gpu_usage() -> Option<Vec<GpuThreads>> {
Some(vec![])
}

fn default_mode() -> String {
Expand Down Expand Up @@ -748,6 +751,11 @@ async fn create_monereo_address(path: PathBuf) -> Result<String, anyhow::Error>
.to_address::<Mainnet>()
.unwrap_or(DEFAULT_MONERO_ADDRESS.to_string()))
}

fn default_vec_string() -> Vec<String> {
vec![]
}

fn default_application_language() -> String {
"en".to_string()
}
Expand Down
Loading

0 comments on commit 7e91d23

Please sign in to comment.