Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaRHristov committed Aug 31, 2024
1 parent 39d9707 commit 260a81b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 35 deletions.
42 changes: 19 additions & 23 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ path = "Source/Library.rs"
serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
toml = "0.8.19"

tauri-build = { version = "2.0.0-rc.7", features = [] }

[dependencies]
Expand All @@ -16,32 +15,29 @@ serde = { version = "1.0.209", features = ["derive"] }
serde_json = "1.0.127"
tokio = "1.40.0"
tokio-tungstenite = "0.23.1"

tauri = { version = "2.0.0-rc.2", features = [] }

tauri = { version = "2.0.0-rc.8", features = [] }
portpicker = "0.1.1"

tauri-plugin-authenticator = "2.0.0-rc.0"
tauri-plugin-autostart = "2.0.0-rc.0"
tauri-plugin-cli = "2.0.0-rc.0"
tauri-plugin-authenticator = "2.0.0-rc.1"
tauri-plugin-autostart = "2.0.0-rc.1"
tauri-plugin-cli = "2.0.0-rc.1"
tauri-plugin-clipboard-manager = "2.1.0-beta.7"
tauri-plugin-deep-link = "0.1.2"
tauri-plugin-devtools = "2.0.0-rc.0"
tauri-plugin-dialog = "2.0.0-rc.0"
tauri-plugin-fs = "2.0.0-rc.0"
tauri-plugin-global-shortcut = "2.0.0-rc.0"
tauri-plugin-http = "2.0.0-rc.0"
tauri-plugin-log = "2.0.0-rc.0"
tauri-plugin-notification = "2.0.0-rc.0"
tauri-plugin-os = "2.0.0-rc.0"
tauri-plugin-process = "2.0.0-rc.0"
tauri-plugin-shell = "2.0.0-rc.0"
tauri-plugin-single-instance = "2.0.0-rc.0"
tauri-plugin-store = "2.0.0-rc.0"
tauri-plugin-stronghold = "2.0.0-rc.0"
tauri-plugin-updater = "2.0.0-rc.0"
tauri-plugin-upload = "2.0.0-rc.0"
tauri-plugin-websocket = "2.0.0-rc.0"
tauri-plugin-dialog = "2.0.0-rc.3"
tauri-plugin-fs = "2.0.0-rc.1"
tauri-plugin-global-shortcut = "2.0.0-rc.2"
tauri-plugin-http = "2.0.0-rc.1"
tauri-plugin-log = "2.0.0-rc.2"
tauri-plugin-notification = "2.0.0-rc.3"
tauri-plugin-os = "2.0.0-rc.1"
tauri-plugin-process = "2.0.0-rc.1"
tauri-plugin-shell = "2.0.0-rc.3"
tauri-plugin-single-instance = "2.0.0-rc.1"
tauri-plugin-store = "2.0.0-rc.3"
tauri-plugin-stronghold = "2.0.0-rc.1"
tauri-plugin-updater = "2.0.0-rc.2"
tauri-plugin-upload = "2.0.0-rc.1"
tauri-plugin-websocket = "2.0.0-rc.1"

# TODO:
# ^^ use of undeclared type `Db`
Expand Down
16 changes: 10 additions & 6 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,18 @@ fn main() {

Tauri.get_mut("version").map(|Entry| *Entry = Value::String(Version.clone()));

let Formatter = serde_json::ser::PrettyFormatter::with_indent(b" ");
let mut Serializer = serde_json::Serializer::with_formatter(
Vec::new(),
serde_json::ser::PrettyFormatter::with_indent(b"\t"),
);

let Buffer = Vec::new();
let mut Serializer = serde_json::Serializer::with_formatter(Buffer, Formatter);
Tauri.serialize(&mut Serializer).expect("Cannot Tauri.");

Tauri.serialize(&mut Serializer).expect("Cannot serialize.");

fs::write("tauri.conf.json", Tauri.to_string()).expect("Cannot tauri.conf.json.");
fs::write(
"tauri.conf.json",
String::from_utf8(Serializer.into_inner()).expect("Cannot String."),
)
.expect("Cannot tauri.conf.json.");

println!("cargo:rustc-env=CARGO_PKG_VERSION={}", Version);
}
Expand Down
27 changes: 21 additions & 6 deletions tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@
"app": {
"macOSPrivateApi": false,
"security": {
"assetProtocol": { "enable": false, "scope": [] },
"assetProtocol": {
"enable": false,
"scope": []
},
"capabilities": [],
"csp": null,
"dangerousDisableAssetCspModification": false,
"freezePrototype": false,
"pattern": { "use": "brownfield" }
"pattern": {
"use": "brownfield"
}
},
"trayIcon": null,
"windows": [{ "height": 600, "title": "Mountain", "width": 800 }],
"windows": [
{
"height": 600,
"title": "Mountain",
"width": 800
}
],
"withGlobalTauri": false
},
"build": {
Expand All @@ -25,15 +36,19 @@
},
"bundle": {
"active": true,
"android": { "minSdkVersion": 24 },
"android": {
"minSdkVersion": 24
},
"category": "DeveloperTool",
"copyright": "PlayForm",
"createUpdaterArtifacts": false,
"externalBin": [],
"fileAssociations": [
{
"description": "Reserved",
"ext": ["land"],
"ext": [
"land"
],
"mimeType": "text/plain",
"name": "Reserved",
"role": "Editor"
Expand All @@ -51,4 +66,4 @@
"identifier": "mountain.editor.land",
"productName": "Mountain",
"version": "0.0.1"
}
}

0 comments on commit 260a81b

Please sign in to comment.