diff --git a/config.json b/config.json new file mode 100644 index 0000000..7b69ce2 --- /dev/null +++ b/config.json @@ -0,0 +1,38 @@ +{ + "defaultHomeserver": 2, + "homeserverList": [ + "converser.eu", + "envs.net", + "matrix.org", + "monero.social", + "mozilla.org", + "xmr.se" + ], + "allowCustomHomeservers": true, + + "featuredCommunities": { + "openAsDefault": false, + "spaces": [ + "#cinny-space:matrix.org", + "#community:matrix.org", + "#space:envs.net", + "#science-space:matrix.org", + "#libregaming-games:tchncs.de", + "#mathematics-on:matrix.org" + ], + "rooms": [ + "#cinny:matrix.org", + "#freesoftware:matrix.org", + "#pcapdroid:matrix.org", + "#gentoo:matrix.org", + "#PrivSec.dev:arcticfoxes.net", + "#disroot:aria-net.org" + ], + "servers": ["envs.net", "matrix.org", "monero.social", "mozilla.org"] + }, + + "hashRouter": { + "enabled": true, + "basename": "/" + } +} diff --git a/package.json b/package.json index 7695a6f..bf51ec9 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "node": ">=16.0.0" }, "scripts": { - "tauri": "tauri", + "tauri": "cp config.json cinny/ && tauri", "release": "node scripts/release.mjs" }, "keywords": [], diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index d8fe283..dd8795a 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -450,7 +450,6 @@ dependencies = [ "serde_json", "tauri", "tauri-build", - "tauri-plugin-single-instance", ] [[package]] @@ -1775,46 +1774,12 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" -[[package]] -name = "libappindicator" -version = "0.7.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db2d3cb96d092b4824cb306c9e544c856a4cb6210c1081945187f7f1924b47e8" -dependencies = [ - "glib", - "gtk", - "gtk-sys", - "libappindicator-sys", - "log", -] - -[[package]] -name = "libappindicator-sys" -version = "0.7.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1b3b6681973cea8cc3bce7391e6d7d5502720b80a581c9a95c9cbaf592826aa" -dependencies = [ - "gtk-sys", - "libloading", - "once_cell", -] - [[package]] name = "libc" version = "0.2.149" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" -[[package]] -name = "libloading" -version = "0.7.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" -dependencies = [ - "cfg-if", - "winapi", -] - [[package]] name = "line-wrap" version = "0.1.1" @@ -3452,7 +3417,6 @@ dependencies = [ "core-foundation", "core-graphics", "crossbeam-channel", - "dirs-next", "dispatch", "gdk", "gdk-pixbuf", @@ -3467,7 +3431,6 @@ dependencies = [ "instant", "jni", "lazy_static", - "libappindicator", "libc", "log", "ndk", @@ -3632,20 +3595,6 @@ dependencies = [ "tauri-utils", ] -[[package]] -name = "tauri-plugin-single-instance" -version = "0.0.0" -source = "git+https://github.com/tauri-apps/plugins-workspace?branch=v1#a32008965b5cf060cc04e1e143dd221ce410715d" -dependencies = [ - "log", - "serde", - "serde_json", - "tauri", - "thiserror", - "windows-sys 0.52.0", - "zbus", -] - [[package]] name = "tauri-runtime" version = "0.14.3"