mirror of
https://github.com/tonytins/amtkstat.git
synced 2025-07-13 09:31:52 -04:00
Upgraded to Tauri 2.0
- Added EUPL 1.2
This commit is contained in:
parent
ebfe2d644c
commit
17a5599067
11 changed files with 1866 additions and 1128 deletions
1973
src-tauri/Cargo.lock
generated
1973
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -8,13 +8,14 @@ edition = "2021"
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[build-dependencies]
|
||||
tauri-build = { version = "1", features = [] }
|
||||
tauri-build = { version = "2", features = [] }
|
||||
|
||||
[dependencies]
|
||||
tauri = { version = "1", features = ["shell-open"] }
|
||||
tauri = { version = "2", features = [] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
webbrowser = "1.0.2"
|
||||
tauri-plugin-shell = "2"
|
||||
|
||||
[features]
|
||||
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!
|
||||
|
|
13
src-tauri/capabilities/migrated.json
Normal file
13
src-tauri/capabilities/migrated.json
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"identifier": "migrated",
|
||||
"description": "permissions that were migrated from v1",
|
||||
"local": true,
|
||||
"windows": [
|
||||
"main"
|
||||
],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"shell:allow-open",
|
||||
"shell:default"
|
||||
]
|
||||
}
|
|
@ -9,6 +9,7 @@ fn open_browser(address: &str) {
|
|||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_shell::init())
|
||||
.invoke_handler(tauri::generate_handler![open_browser])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
|
|
|
@ -2,22 +2,27 @@
|
|||
"build": {
|
||||
"beforeDevCommand": "dotnet watch run --project src/AmtrakStatus.csproj",
|
||||
"beforeBuildCommand": "dotnet publish -c release src/AmtrakStatus.csproj -o dist",
|
||||
"devPath": "http://localhost:1420",
|
||||
"distDir": "../dist/wwwroot",
|
||||
"withGlobalTauri": true
|
||||
"frontendDist": "../dist/wwwroot",
|
||||
"devUrl": "http://localhost:1420"
|
||||
},
|
||||
"package": {
|
||||
"productName": "AMTK Status",
|
||||
"version": "0.201.0"
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
]
|
||||
},
|
||||
"tauri": {
|
||||
"allowlist": {
|
||||
"all": false,
|
||||
"shell": {
|
||||
"all": false,
|
||||
"open": true
|
||||
}
|
||||
},
|
||||
"productName": "AMTK Status",
|
||||
"mainBinaryName": "AMTK Status",
|
||||
"version": "0.201.0",
|
||||
"identifier": "com.tpaw.amtkstat",
|
||||
"plugins": {},
|
||||
"app": {
|
||||
"withGlobalTauri": true,
|
||||
"windows": [
|
||||
{
|
||||
"title": "Amtrak Status",
|
||||
|
@ -32,18 +37,6 @@
|
|||
],
|
||||
"security": {
|
||||
"csp": null
|
||||
},
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"identifier": "com.tpaw.amtkstat",
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue