tauri: bump tauri to latest version
* include plugin to remember window position and size * change app category to social network * bump version * use withGlobalTauri to expose tauri namespace to glowing bear javascript
This commit is contained in:
parent
6a1d5cd276
commit
e9a8387d7b
|
@ -1,4 +1,3 @@
|
||||||
# Generated by Cargo
|
# Generated by Cargo
|
||||||
# will have compiled files and executables
|
# will have compiled files and executables
|
||||||
/target/
|
/target/
|
||||||
WixTools
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,23 +1,24 @@
|
||||||
[package]
|
[package]
|
||||||
name = "glowing-bear"
|
name = "glowing-bear"
|
||||||
version = "0.1.0"
|
version = "0.10.0" #sync to ../package.json
|
||||||
description = "A web client for WeeChat"
|
description = "A web client for WeeChat"
|
||||||
authors = ["glowing-bear-contributors"]
|
authors = ["glowing-bear-contributors"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
repository = "https://github.com/glowing-bear/glowing-bear"
|
repository = "https://github.com/glowing-bear/glowing-bear"
|
||||||
default-run = "app"
|
default-run = "glowing-bear"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.57"
|
rust-version = "1.57"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
tauri-build = { version = "1.0.0-rc.3", features = [] }
|
tauri-build = { version = "1.2.1", features = [] }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
tauri = { version = "1.0.0-rc.3", features = ["api-all"] }
|
tauri = { version = "1.2.4", features = ["api-all"] }
|
||||||
|
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
# by default Tauri runs in production mode
|
# by default Tauri runs in production mode
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
tauri::Builder::default()
|
tauri::Builder::default()
|
||||||
|
.plugin(tauri_plugin_window_state::Builder::default().build()) // register plugin to remember window state
|
||||||
.run(tauri::generate_context!())
|
.run(tauri::generate_context!())
|
||||||
.expect("error while running tauri application");
|
.expect("error while running tauri application");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,68 +1,65 @@
|
||||||
{
|
{
|
||||||
|
"build": {
|
||||||
|
"beforeBuildCommand": "npm run build",
|
||||||
|
"beforeDevCommand": "npm run start",
|
||||||
|
"devPath": " http://localhost:8080/",
|
||||||
|
"distDir": "../build",
|
||||||
|
"withGlobalTauri": true
|
||||||
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "glowing-bear",
|
"productName": "glowing-bear",
|
||||||
"version": "0.1.0"
|
"version": "0.10.0"
|
||||||
},
|
|
||||||
"build": {
|
|
||||||
"distDir": "../build",
|
|
||||||
"devPath": "http://localhost:8000",
|
|
||||||
"beforeDevCommand": "",
|
|
||||||
"beforeBuildCommand": ""
|
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
|
"allowlist": {
|
||||||
|
"all": true
|
||||||
|
},
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": "all",
|
"category": "SocialNetworking",
|
||||||
"identifier": "org.glowing-bear",
|
"copyright": "Glowing Bear developers",
|
||||||
|
"deb": {
|
||||||
|
"depends": []
|
||||||
|
},
|
||||||
|
"externalBin": [],
|
||||||
"icon": [
|
"icon": [
|
||||||
"../src/assets/img/favicon.png",
|
"../src/assets/img/favicon.png",
|
||||||
"../src/assets/img/glowing_bear_128x128.png",
|
"../src/assets/img/glowing_bear_128x128.png",
|
||||||
"../src/assets/img/glowing-bear.png",
|
"../src/assets/img/glowing-bear.png",
|
||||||
"../src/assets/img/glowing-bear.icns"
|
"../src/assets/img/glowing-bear.icns"
|
||||||
],
|
],
|
||||||
"resources": [],
|
"identifier": "org.glowing-bear",
|
||||||
"externalBin": [],
|
"longDescription": "Glowing Bear is a web frontend for the WeeChat IRC client",
|
||||||
"copyright": "",
|
|
||||||
"category": "Chat",
|
|
||||||
"shortDescription": "",
|
|
||||||
"longDescription": "",
|
|
||||||
"deb": {
|
|
||||||
"depends": [],
|
|
||||||
"useBootstrapper": false
|
|
||||||
},
|
|
||||||
"macOS": {
|
"macOS": {
|
||||||
"frameworks": [],
|
"entitlements": null,
|
||||||
"minimumSystemVersion": "",
|
|
||||||
"useBootstrapper": false,
|
|
||||||
"exceptionDomain": "",
|
"exceptionDomain": "",
|
||||||
"signingIdentity": null,
|
"frameworks": [],
|
||||||
"providerShortName": null,
|
"providerShortName": null,
|
||||||
"entitlements": null
|
"signingIdentity": null
|
||||||
},
|
},
|
||||||
|
"resources": [],
|
||||||
|
"shortDescription": "",
|
||||||
|
"targets": "all",
|
||||||
"windows": {
|
"windows": {
|
||||||
"certificateThumbprint": null,
|
"certificateThumbprint": null,
|
||||||
"digestAlgorithm": "sha256",
|
"digestAlgorithm": "sha256",
|
||||||
"timestampUrl": ""
|
"timestampUrl": ""
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"security": {
|
||||||
|
"csp": null
|
||||||
|
},
|
||||||
"updater": {
|
"updater": {
|
||||||
"active": false
|
"active": false
|
||||||
},
|
},
|
||||||
"allowlist": {
|
|
||||||
"all": true
|
|
||||||
},
|
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"title": "Glowing Bear",
|
"fullscreen": false,
|
||||||
"center": true,
|
|
||||||
"width": 800,
|
|
||||||
"height": 600,
|
"height": 600,
|
||||||
"resizable": true,
|
"resizable": true,
|
||||||
"fullscreen": false
|
"title": "Glowing Bear",
|
||||||
|
"width": 800
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"security": {
|
|
||||||
"csp": null
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue