fix: 添加打开应用功能
This commit is contained in:
785
src-tauri/Cargo.lock
generated
785
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -23,3 +23,6 @@ serde = { version = "1.0", features = ["derive"] }
|
||||
log = "0.4"
|
||||
tauri = { version = "2.7.0", features = [] }
|
||||
tauri-plugin-log = "2"
|
||||
tauri-plugin-window-state = "2"
|
||||
tauri-plugin-fs = "2"
|
||||
tauri-plugin-opener = "2"
|
||||
|
||||
581
src-tauri/binaries/applications/Applications.deps.json
Normal file
581
src-tauri/binaries/applications/Applications.deps.json
Normal file
@@ -0,0 +1,581 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"Applications/1.0.0": {
|
||||
"dependencies": {
|
||||
"MySql.Data": "9.3.0",
|
||||
"SharpZipLib": "1.4.2",
|
||||
"System.Management": "9.0.8",
|
||||
"System.ServiceProcess.ServiceController": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"Applications.dll": {}
|
||||
}
|
||||
},
|
||||
"BouncyCastle.Cryptography/2.5.1": {
|
||||
"runtime": {
|
||||
"lib/net6.0/BouncyCastle.Cryptography.dll": {
|
||||
"assemblyVersion": "2.0.0.0",
|
||||
"fileVersion": "2.5.1.28965"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Google.Protobuf/3.30.0": {
|
||||
"runtime": {
|
||||
"lib/net5.0/Google.Protobuf.dll": {
|
||||
"assemblyVersion": "3.30.0.0",
|
||||
"fileVersion": "3.30.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"K4os.Compression.LZ4/1.3.8": {
|
||||
"runtime": {
|
||||
"lib/net6.0/K4os.Compression.LZ4.dll": {
|
||||
"assemblyVersion": "1.3.8.0",
|
||||
"fileVersion": "1.3.8.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"K4os.Compression.LZ4.Streams/1.3.8": {
|
||||
"dependencies": {
|
||||
"K4os.Compression.LZ4": "1.3.8",
|
||||
"K4os.Hash.xxHash": "1.0.8",
|
||||
"System.IO.Pipelines": "9.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net6.0/K4os.Compression.LZ4.Streams.dll": {
|
||||
"assemblyVersion": "1.3.8.0",
|
||||
"fileVersion": "1.3.8.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"K4os.Hash.xxHash/1.0.8": {
|
||||
"runtime": {
|
||||
"lib/net6.0/K4os.Hash.xxHash.dll": {
|
||||
"assemblyVersion": "1.0.8.0",
|
||||
"fileVersion": "1.0.8.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {},
|
||||
"Microsoft.NETCore.Targets/1.1.0": {},
|
||||
"MySql.Data/9.3.0": {
|
||||
"dependencies": {
|
||||
"BouncyCastle.Cryptography": "2.5.1",
|
||||
"Google.Protobuf": "3.30.0",
|
||||
"K4os.Compression.LZ4.Streams": "1.3.8",
|
||||
"System.Buffers": "4.5.1",
|
||||
"System.Configuration.ConfigurationManager": "8.0.0",
|
||||
"System.Diagnostics.DiagnosticSource": "8.0.1",
|
||||
"System.Runtime.CompilerServices.Unsafe": "6.0.0",
|
||||
"System.Runtime.Loader": "4.3.0",
|
||||
"System.Security.Permissions": "8.0.0",
|
||||
"System.Text.Encoding.CodePages": "8.0.0",
|
||||
"System.Text.Json": "9.0.0",
|
||||
"System.Threading.Tasks.Extensions": "4.5.4",
|
||||
"ZstdSharp.Port": "0.8.5"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/MySql.Data.dll": {
|
||||
"assemblyVersion": "9.3.0.0",
|
||||
"fileVersion": "9.3.0.0"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win-x64/native/comerr64.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "4.3.0.1"
|
||||
},
|
||||
"runtimes/win-x64/native/gssapi64.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "4.3.0.1"
|
||||
},
|
||||
"runtimes/win-x64/native/k5sprt64.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "4.3.0.1"
|
||||
},
|
||||
"runtimes/win-x64/native/krb5_64.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "4.3.0.1"
|
||||
},
|
||||
"runtimes/win-x64/native/krbcc64.dll": {
|
||||
"rid": "win-x64",
|
||||
"assetType": "native",
|
||||
"fileVersion": "4.3.0.1"
|
||||
}
|
||||
}
|
||||
},
|
||||
"SharpZipLib/1.4.2": {
|
||||
"runtime": {
|
||||
"lib/net6.0/ICSharpCode.SharpZipLib.dll": {
|
||||
"assemblyVersion": "1.4.2.13",
|
||||
"fileVersion": "1.4.2.13"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Buffers/4.5.1": {},
|
||||
"System.CodeDom/9.0.8": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.CodeDom.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.825.36511"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/8.0.0": {
|
||||
"dependencies": {
|
||||
"System.Diagnostics.EventLog": "9.0.6",
|
||||
"System.Security.Cryptography.ProtectedData": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Configuration.ConfigurationManager.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Diagnostics.DiagnosticSource/8.0.1": {},
|
||||
"System.Diagnostics.EventLog/9.0.6": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Diagnostics.EventLog.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "0.0.0.0"
|
||||
},
|
||||
"runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.IO/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.Runtime": "4.3.0",
|
||||
"System.Text.Encoding": "4.3.0",
|
||||
"System.Threading.Tasks": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.IO.Pipelines/9.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.IO.Pipelines.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.24.52809"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Management/9.0.8": {
|
||||
"dependencies": {
|
||||
"System.CodeDom": "9.0.8"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Management.dll": {
|
||||
"assemblyVersion": "9.0.0.8",
|
||||
"fileVersion": "9.0.825.36511"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/System.Management.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.8",
|
||||
"fileVersion": "9.0.825.36511"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Reflection/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.IO": "4.3.0",
|
||||
"System.Reflection.Primitives": "4.3.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.Reflection.Primitives/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.Runtime/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0"
|
||||
}
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.0.0": {},
|
||||
"System.Runtime.Loader/4.3.0": {
|
||||
"dependencies": {
|
||||
"System.IO": "4.3.0",
|
||||
"System.Reflection": "4.3.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.Security.Cryptography.ProtectedData/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Security.Cryptography.ProtectedData.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Security.Permissions/8.0.0": {
|
||||
"dependencies": {
|
||||
"System.Windows.Extensions": "8.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Security.Permissions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.ServiceProcess.ServiceController/9.0.6": {
|
||||
"dependencies": {
|
||||
"System.Diagnostics.EventLog": "9.0.6"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.ServiceProcess.ServiceController.dll": {
|
||||
"assemblyVersion": "9.0.0.6",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/System.ServiceProcess.ServiceController.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.6",
|
||||
"fileVersion": "9.0.625.26613"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Encoding/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.Text.Encoding.CodePages/8.0.0": {},
|
||||
"System.Text.Encodings.Web/9.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Text.Encodings.Web.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.24.52809"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/browser/lib/net8.0/System.Text.Encodings.Web.dll": {
|
||||
"rid": "browser",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.24.52809"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Text.Json/9.0.0": {
|
||||
"dependencies": {
|
||||
"System.IO.Pipelines": "9.0.0",
|
||||
"System.Text.Encodings.Web": "9.0.0"
|
||||
},
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Text.Json.dll": {
|
||||
"assemblyVersion": "9.0.0.0",
|
||||
"fileVersion": "9.0.24.52809"
|
||||
}
|
||||
}
|
||||
},
|
||||
"System.Threading.Tasks/4.3.0": {
|
||||
"dependencies": {
|
||||
"Microsoft.NETCore.Platforms": "1.1.0",
|
||||
"Microsoft.NETCore.Targets": "1.1.0",
|
||||
"System.Runtime": "4.3.0"
|
||||
}
|
||||
},
|
||||
"System.Threading.Tasks.Extensions/4.5.4": {},
|
||||
"System.Windows.Extensions/8.0.0": {
|
||||
"runtime": {
|
||||
"lib/net8.0/System.Windows.Extensions.dll": {
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
},
|
||||
"runtimeTargets": {
|
||||
"runtimes/win/lib/net8.0/System.Windows.Extensions.dll": {
|
||||
"rid": "win",
|
||||
"assetType": "runtime",
|
||||
"assemblyVersion": "8.0.0.0",
|
||||
"fileVersion": "8.0.23.53103"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ZstdSharp.Port/0.8.5": {
|
||||
"runtime": {
|
||||
"lib/net8.0/ZstdSharp.dll": {
|
||||
"assemblyVersion": "0.8.5.0",
|
||||
"fileVersion": "0.8.5.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Applications/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
},
|
||||
"BouncyCastle.Cryptography/2.5.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-zy8TMeTP+1FH2NrLaNZtdRbBdq7u5MI+NFZQOBSM69u5RFkciinwzV2eveY6Kjf5MzgsYvvl6kTStsj3JrXqkg==",
|
||||
"path": "bouncycastle.cryptography/2.5.1",
|
||||
"hashPath": "bouncycastle.cryptography.2.5.1.nupkg.sha512"
|
||||
},
|
||||
"Google.Protobuf/3.30.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ZnEI4oZWnHvd+Yz5Gcnx5Q5RQIuzptIzd0fmxAN8f81FYHI0USZqMOrPTkrsd/QEzo9vl2b217v9FqFgHfufQw==",
|
||||
"path": "google.protobuf/3.30.0",
|
||||
"hashPath": "google.protobuf.3.30.0.nupkg.sha512"
|
||||
},
|
||||
"K4os.Compression.LZ4/1.3.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-LhwlPa7c1zs1OV2XadMtAWdImjLIsqFJPoRcIWAadSRn0Ri1DepK65UbWLPmt4riLqx2d40xjXRk0ogpqNtK7g==",
|
||||
"path": "k4os.compression.lz4/1.3.8",
|
||||
"hashPath": "k4os.compression.lz4.1.3.8.nupkg.sha512"
|
||||
},
|
||||
"K4os.Compression.LZ4.Streams/1.3.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-P15qr8dZAeo9GvYbUIPEYFQ0MEJ0i5iqr37wsYeRC3la2uCldOoeCa6to0CZ1taiwxIV+Mk8NGuZi+4iWivK9w==",
|
||||
"path": "k4os.compression.lz4.streams/1.3.8",
|
||||
"hashPath": "k4os.compression.lz4.streams.1.3.8.nupkg.sha512"
|
||||
},
|
||||
"K4os.Hash.xxHash/1.0.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Wp2F7BamQ2Q/7Hk834nV9vRQapgcr8kgv9Jvfm8J3D0IhDqZMMl+a2yxUq5ltJitvXvQfB8W6K4F4fCbw/P6YQ==",
|
||||
"path": "k4os.hash.xxhash/1.0.8",
|
||||
"hashPath": "k4os.hash.xxhash.1.0.8.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.NETCore.Platforms/1.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-kz0PEW2lhqygehI/d6XsPCQzD7ff7gUJaVGPVETX611eadGsA3A877GdSlU0LRVMCTH/+P3o2iDTak+S08V2+A==",
|
||||
"path": "microsoft.netcore.platforms/1.1.0",
|
||||
"hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512"
|
||||
},
|
||||
"Microsoft.NETCore.Targets/1.1.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-aOZA3BWfz9RXjpzt0sRJJMjAscAUm3Hoa4UWAfceV9UTYxgwZ1lZt5nO2myFf+/jetYQo4uTP7zS8sJY67BBxg==",
|
||||
"path": "microsoft.netcore.targets/1.1.0",
|
||||
"hashPath": "microsoft.netcore.targets.1.1.0.nupkg.sha512"
|
||||
},
|
||||
"MySql.Data/9.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-f4iZBKubzwNnc84ecEwguv5TSwHpoArFGa+XpZY+8S9SoAnQaHfymLdZUKK4LbUbH9ACZ6X71LUvq58Mfdyipw==",
|
||||
"path": "mysql.data/9.3.0",
|
||||
"hashPath": "mysql.data.9.3.0.nupkg.sha512"
|
||||
},
|
||||
"SharpZipLib/1.4.2": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-yjj+3zgz8zgXpiiC3ZdF/iyTBbz2fFvMxZFEBPUcwZjIvXOf37Ylm+K58hqMfIBt5JgU/Z2uoUS67JmTLe973A==",
|
||||
"path": "sharpziplib/1.4.2",
|
||||
"hashPath": "sharpziplib.1.4.2.nupkg.sha512"
|
||||
},
|
||||
"System.Buffers/4.5.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
|
||||
"path": "system.buffers/4.5.1",
|
||||
"hashPath": "system.buffers.4.5.1.nupkg.sha512"
|
||||
},
|
||||
"System.CodeDom/9.0.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-kxg1TE/BMUAaMve/lPH9Bds+CFF4JPrN9WkQqHejc7UP6PO4KDAjZNF0uhvpZmoLR+EvHdRt232J++ZDI7aGqA==",
|
||||
"path": "system.codedom/9.0.8",
|
||||
"hashPath": "system.codedom.9.0.8.nupkg.sha512"
|
||||
},
|
||||
"System.Configuration.ConfigurationManager/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-JlYi9XVvIREURRUlGMr1F6vOFLk7YSY4p1vHo4kX3tQ0AGrjqlRWHDi66ImHhy6qwXBG3BJ6Y1QlYQ+Qz6Xgww==",
|
||||
"path": "system.configuration.configurationmanager/8.0.0",
|
||||
"hashPath": "system.configuration.configurationmanager.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Diagnostics.DiagnosticSource/8.0.1": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-vaoWjvkG1aenR2XdjaVivlCV9fADfgyhW5bZtXT23qaEea0lWiUljdQuze4E31vKM7ZWJaSUsbYIKE3rnzfZUg==",
|
||||
"path": "system.diagnostics.diagnosticsource/8.0.1",
|
||||
"hashPath": "system.diagnostics.diagnosticsource.8.0.1.nupkg.sha512"
|
||||
},
|
||||
"System.Diagnostics.EventLog/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-lum+Dv+8S4gqN5H1C576UcQe0M2buoRjEUVs4TctXRSWjBH3ay3w2KyQrOo1yPdRs1I+xK69STz+4mjIisFI5w==",
|
||||
"path": "system.diagnostics.eventlog/9.0.6",
|
||||
"hashPath": "system.diagnostics.eventlog.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"System.IO/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-3qjaHvxQPDpSOYICjUoTsmoq5u6QJAFRUITgeT/4gqkF1bajbSmb1kwSxEA8AHlofqgcKJcM8udgieRNhaJ5Cg==",
|
||||
"path": "system.io/4.3.0",
|
||||
"hashPath": "system.io.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.IO.Pipelines/9.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-eA3cinogwaNB4jdjQHOP3Z3EuyiDII7MT35jgtnsA4vkn0LUrrSHsU0nzHTzFzmaFYeKV7MYyMxOocFzsBHpTw==",
|
||||
"path": "system.io.pipelines/9.0.0",
|
||||
"hashPath": "system.io.pipelines.9.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Management/9.0.8": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-D7icHff0OpEEIOLsTgnPL+Ff1VmJ3tzA8y20LNKgv4hx1MFMA3XGAVlWMCkLQfBkyvEwib6rMG6nP27lf98KRA==",
|
||||
"path": "system.management/9.0.8",
|
||||
"hashPath": "system.management.9.0.8.nupkg.sha512"
|
||||
},
|
||||
"System.Reflection/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-KMiAFoW7MfJGa9nDFNcfu+FpEdiHpWgTcS2HdMpDvt9saK3y/G4GwprPyzqjFH9NTaGPQeWNHU+iDlDILj96aQ==",
|
||||
"path": "system.reflection/4.3.0",
|
||||
"hashPath": "system.reflection.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Reflection.Primitives/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-5RXItQz5As4xN2/YUDxdpsEkMhvw3e6aNveFXUn4Hl/udNTCNhnKp8lT9fnc3MhvGKh1baak5CovpuQUXHAlIA==",
|
||||
"path": "system.reflection.primitives/4.3.0",
|
||||
"hashPath": "system.reflection.primitives.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-JufQi0vPQ0xGnAczR13AUFglDyVYt4Kqnz1AZaiKZ5+GICq0/1MH/mO/eAJHt/mHW1zjKBJd7kV26SrxddAhiw==",
|
||||
"path": "system.runtime/4.3.0",
|
||||
"hashPath": "system.runtime.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.CompilerServices.Unsafe/6.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==",
|
||||
"path": "system.runtime.compilerservices.unsafe/6.0.0",
|
||||
"hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Runtime.Loader/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-DHMaRn8D8YCK2GG2pw+UzNxn/OHVfaWx7OTLBD/hPegHZZgcZh3H6seWegrC4BYwsfuGrywIuT+MQs+rPqRLTQ==",
|
||||
"path": "system.runtime.loader/4.3.0",
|
||||
"hashPath": "system.runtime.loader.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Cryptography.ProtectedData/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-+TUFINV2q2ifyXauQXRwy4CiBhqvDEDZeVJU7qfxya4aRYOKzVBpN+4acx25VcPB9ywUN6C0n8drWl110PhZEg==",
|
||||
"path": "system.security.cryptography.protecteddata/8.0.0",
|
||||
"hashPath": "system.security.cryptography.protecteddata.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Security.Permissions/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-v/BBylw7XevuAsHXoX9dDUUfmBIcUf7Lkz8K3ZXIKz3YRKpw8YftpSir4n4e/jDTKFoaK37AsC3xnk+GNFI1Ow==",
|
||||
"path": "system.security.permissions/8.0.0",
|
||||
"hashPath": "system.security.permissions.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.ServiceProcess.ServiceController/9.0.6": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-ba3cPFu9mNtSJ5DTYsDWIkAheBIOENxnsDsrvtk7TbfgcaYMP9oV5+kPH0c/ENkuD1TSpBT5U2tC1Pe7OiDWLA==",
|
||||
"path": "system.serviceprocess.servicecontroller/9.0.6",
|
||||
"hashPath": "system.serviceprocess.servicecontroller.9.0.6.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encoding/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-BiIg+KWaSDOITze6jGQynxg64naAPtqGHBwDrLaCtixsa5bKiR8dpPOHA7ge3C0JJQizJE+sfkz1wV+BAKAYZw==",
|
||||
"path": "system.text.encoding/4.3.0",
|
||||
"hashPath": "system.text.encoding.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encoding.CodePages/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-OZIsVplFGaVY90G2SbpgU7EnCoOO5pw1t4ic21dBF3/1omrJFpAGoNAVpPyMVOC90/hvgkGG3VFqR13YgZMQfg==",
|
||||
"path": "system.text.encoding.codepages/8.0.0",
|
||||
"hashPath": "system.text.encoding.codepages.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Encodings.Web/9.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-e2hMgAErLbKyUUwt18qSBf9T5Y+SFAL3ZedM8fLupkVj8Rj2PZ9oxQ37XX2LF8fTO1wNIxvKpihD7Of7D/NxZw==",
|
||||
"path": "system.text.encodings.web/9.0.0",
|
||||
"hashPath": "system.text.encodings.web.9.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Text.Json/9.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-js7+qAu/9mQvnhA4EfGMZNEzXtJCDxgkgj8ohuxq/Qxv+R56G+ljefhiJHOxTNiw54q8vmABCWUwkMulNdlZ4A==",
|
||||
"path": "system.text.json/9.0.0",
|
||||
"hashPath": "system.text.json.9.0.0.nupkg.sha512"
|
||||
},
|
||||
"System.Threading.Tasks/4.3.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-LbSxKEdOUhVe8BezB/9uOGGppt+nZf6e1VFyw6v3DN6lqitm0OSn2uXMOdtP0M3W4iMcqcivm2J6UgqiwwnXiA==",
|
||||
"path": "system.threading.tasks/4.3.0",
|
||||
"hashPath": "system.threading.tasks.4.3.0.nupkg.sha512"
|
||||
},
|
||||
"System.Threading.Tasks.Extensions/4.5.4": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
|
||||
"path": "system.threading.tasks.extensions/4.5.4",
|
||||
"hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
|
||||
},
|
||||
"System.Windows.Extensions/8.0.0": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-Obg3a90MkOw9mYKxrardLpY2u0axDMrSmy4JCdq2cYbelM2cUwmUir5Bomvd1yxmPL9h5LVHU1tuKBZpUjfASg==",
|
||||
"path": "system.windows.extensions/8.0.0",
|
||||
"hashPath": "system.windows.extensions.8.0.0.nupkg.sha512"
|
||||
},
|
||||
"ZstdSharp.Port/0.8.5": {
|
||||
"type": "package",
|
||||
"serviceable": true,
|
||||
"sha512": "sha512-TR4j17WeVSEb3ncgL2NqlXEqcy04I+Kk9CaebNDplUeL8XOgjkZ7fP4Wg4grBdPLIqsV86p2QaXTkZoRMVOsew==",
|
||||
"path": "zstdsharp.port/0.8.5",
|
||||
"hashPath": "zstdsharp.port.0.8.5.nupkg.sha512"
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
src-tauri/binaries/applications/Applications.dll
Normal file
BIN
src-tauri/binaries/applications/Applications.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/Applications.exe
Normal file
BIN
src-tauri/binaries/applications/Applications.exe
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/Applications.pdb
Normal file
BIN
src-tauri/binaries/applications/Applications.pdb
Normal file
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
src-tauri/binaries/applications/BouncyCastle.Cryptography.dll
Normal file
BIN
src-tauri/binaries/applications/BouncyCastle.Cryptography.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/Google.Protobuf.dll
Normal file
BIN
src-tauri/binaries/applications/Google.Protobuf.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/ICSharpCode.SharpZipLib.dll
Normal file
BIN
src-tauri/binaries/applications/ICSharpCode.SharpZipLib.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/K4os.Compression.LZ4.Streams.dll
Normal file
BIN
src-tauri/binaries/applications/K4os.Compression.LZ4.Streams.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/K4os.Compression.LZ4.dll
Normal file
BIN
src-tauri/binaries/applications/K4os.Compression.LZ4.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/K4os.Hash.xxHash.dll
Normal file
BIN
src-tauri/binaries/applications/K4os.Hash.xxHash.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/MySql.Data.dll
Normal file
BIN
src-tauri/binaries/applications/MySql.Data.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/System.CodeDom.dll
Normal file
BIN
src-tauri/binaries/applications/System.CodeDom.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Diagnostics.EventLog.dll
Normal file
BIN
src-tauri/binaries/applications/System.Diagnostics.EventLog.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/System.IO.Pipelines.dll
Normal file
BIN
src-tauri/binaries/applications/System.IO.Pipelines.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Management.dll
Normal file
BIN
src-tauri/binaries/applications/System.Management.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Security.Permissions.dll
Normal file
BIN
src-tauri/binaries/applications/System.Security.Permissions.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Text.Encodings.Web.dll
Normal file
BIN
src-tauri/binaries/applications/System.Text.Encodings.Web.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Text.Json.dll
Normal file
BIN
src-tauri/binaries/applications/System.Text.Json.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/System.Windows.Extensions.dll
Normal file
BIN
src-tauri/binaries/applications/System.Windows.Extensions.dll
Normal file
Binary file not shown.
BIN
src-tauri/binaries/applications/ZstdSharp.dll
Normal file
BIN
src-tauri/binaries/applications/ZstdSharp.dll
Normal file
Binary file not shown.
1230
src-tauri/binaries/applications/ps/checkPSD.jsx
Normal file
1230
src-tauri/binaries/applications/ps/checkPSD.jsx
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,3 +1,8 @@
|
||||
fn main() {
|
||||
tauri_build::build()
|
||||
// 处理可能的权限问题
|
||||
if let Err(e) = std::env::var("OUT_DIR") {
|
||||
println!("cargo:warning=OUT_DIR not set: {}", e);
|
||||
}
|
||||
|
||||
tauri_build::build()
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "../gen/schemas/desktop-schema.json",
|
||||
"identifier": "default",
|
||||
"description": "enables the default permissions",
|
||||
"description": "Capability for the main window",
|
||||
"windows": ["*"],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
@@ -22,23 +22,11 @@
|
||||
"core:window:allow-set-fullscreen",
|
||||
"core:window:allow-minimize",
|
||||
"core:window:allow-maximize",
|
||||
"core:path:allow-dirname",
|
||||
"core:resources:allow-close",
|
||||
"core:resources:default",
|
||||
"core:window:allow-set-position",
|
||||
"core:window:allow-set-always-on-top",
|
||||
"core:window:allow-set-always-on-bottom",
|
||||
"core:window:allow-unmaximize",
|
||||
"core:window:allow-unminimize",
|
||||
"core:window:allow-center",
|
||||
"core:window:allow-request-user-attention",
|
||||
"core:window:allow-set-decorations",
|
||||
"core:window:allow-set-resizable",
|
||||
"core:window:allow-set-skip-taskbar",
|
||||
"core:webview:allow-set-webview-position",
|
||||
"core:webview:allow-set-webview-size",
|
||||
"core:window:allow-create",
|
||||
"core:event:allow-emit",
|
||||
"core:event:allow-listen",
|
||||
"core:event:allow-unlisten"
|
||||
"core:window:allow-set-always-on-bottom"
|
||||
]
|
||||
}
|
||||
|
||||
BIN
src-tauri/icons/logo.png
Normal file
BIN
src-tauri/icons/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 88 KiB |
@@ -1,16 +1,65 @@
|
||||
use tauri::{Manager, WindowEvent};
|
||||
use std::process::Command;
|
||||
use tauri::command;
|
||||
|
||||
#[command]
|
||||
async fn run_sidecar(app: tauri::AppHandle, app_name: String) -> Result<String, String> {
|
||||
let resource_dir = app.path().resource_dir()
|
||||
.map_err(|e| format!("Failed to get resource directory: {}", e))?;
|
||||
|
||||
let exe_path = resource_dir.join(&app_name).join(format!("{}.exe", &app_name));
|
||||
|
||||
if !exe_path.exists() {
|
||||
return Err(format!("Executable not found: {:?}", exe_path));
|
||||
}
|
||||
|
||||
let output = Command::new(&exe_path)
|
||||
.current_dir(resource_dir.join(&app_name)) // 设置工作目录为应用所在目录
|
||||
.output()
|
||||
.map_err(|e| format!("Failed to execute: {}", e))?;
|
||||
|
||||
if output.status.success() {
|
||||
Ok(String::from_utf8_lossy(&output.stdout).to_string())
|
||||
} else {
|
||||
Err(String::from_utf8_lossy(&output.stderr).to_string())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.setup(|app| {
|
||||
if cfg!(debug_assertions) {
|
||||
app.handle().plugin(
|
||||
tauri_plugin_log::Builder::default()
|
||||
.level(log::LevelFilter::Info)
|
||||
.build(),
|
||||
)?;
|
||||
}
|
||||
Ok(())
|
||||
})
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.setup(|app| {
|
||||
if cfg!(debug_assertions) {
|
||||
app.handle().plugin(
|
||||
tauri_plugin_log::Builder::default()
|
||||
.level(log::LevelFilter::Info)
|
||||
.build(),
|
||||
)?;
|
||||
}
|
||||
|
||||
// ...已删除系统托盘相关逻辑...
|
||||
|
||||
// 监听窗口事件
|
||||
if let Some(window) = app.get_webview_window("main") {
|
||||
let window_clone = window.clone();
|
||||
window.on_window_event(move |event| {
|
||||
match event {
|
||||
WindowEvent::CloseRequested { api, .. } => {
|
||||
// 阻止默认关闭行为
|
||||
api.prevent_close();
|
||||
// 隐藏窗口而不是关闭
|
||||
let _ = window_clone.hide();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Ok(())
|
||||
})
|
||||
.invoke_handler(tauri::generate_handler![run_sidecar])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
app_lib::run();
|
||||
app_lib::run();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "teacher-end",
|
||||
"productName": "教师端",
|
||||
"version": "0.1.0",
|
||||
"identifier": "com.pengcheng.teacherend",
|
||||
"build": {
|
||||
@@ -12,9 +12,11 @@
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"title": "teacher-end",
|
||||
"width": 1280,
|
||||
"title": "教师端",
|
||||
"width": 1200,
|
||||
"height": 720,
|
||||
"minWidth": 800,
|
||||
"minHeight": 600,
|
||||
"resizable": true,
|
||||
"fullscreen": false,
|
||||
"decorations": false
|
||||
@@ -27,12 +29,36 @@
|
||||
"bundle": {
|
||||
"active": true,
|
||||
"targets": "all",
|
||||
"windows": {
|
||||
"allowDowngrades": true,
|
||||
"certificateThumbprint": null,
|
||||
"digestAlgorithm": null,
|
||||
"nsis": {
|
||||
"languages": ["SimpChinese"],
|
||||
"displayLanguageSelector": true,
|
||||
"installMode": "perMachine"
|
||||
},
|
||||
"signCommand": null,
|
||||
"timestampUrl": null,
|
||||
"tsp": false,
|
||||
"webviewInstallMode": {
|
||||
"silent": true,
|
||||
"type": "downloadBootstrapper"
|
||||
},
|
||||
"wix": {
|
||||
"language": "zh-CN"
|
||||
}
|
||||
},
|
||||
"icon": [
|
||||
"icons/32x32.png",
|
||||
"icons/128x128.png",
|
||||
"icons/128x128@2x.png",
|
||||
"icons/icon.icns",
|
||||
"icons/icon.ico"
|
||||
]
|
||||
],
|
||||
"externalBin": [],
|
||||
"resources": {
|
||||
"binaries/applications": "applications"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user