Bump all tauri deps except cli (incl. updater fix) (#2914)

* Bump all tauri deps except cli (incl. updater fix)
Fixes #2741

* A snapshot a day keeps the bugs away! 📷🐛 (OS: ubuntu)

* Trigger CI

* Remove promises from getOsInfo for tauri apis

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Pierre Jacquier
2024-07-04 12:39:18 -04:00
committed by GitHub
parent 85403e47e4
commit 6cebb84ae0
8 changed files with 319 additions and 391 deletions

View File

@ -69,31 +69,14 @@ export class CoreDumpManager {
// Get the os information.
getOsInfo(): Promise<string> {
if (this.isTauri()) {
return tauriArch()
.catch((error: any) => {
throw new Error(`Error getting arch: ${error}`)
})
.then((arch: string) => {
return tauriPlatform()
.catch((error: any) => {
throw new Error(`Error getting platform: ${error}`)
})
.then((platform: string) => {
return tauriKernelVersion()
.catch((error: any) => {
throw new Error(`Error getting kernel version: ${error}`)
})
.then((kernelVersion: string) => {
const osinfo: OsInfo = {
platform,
arch,
browser: 'tauri',
version: kernelVersion,
}
return JSON.stringify(osinfo)
})
})
})
const osinfo: OsInfo = {
platform: tauriPlatform(),
arch: tauriArch(),
browser: 'tauri',
version: tauriKernelVersion(),
}
return new Promise((resolve) => resolve(JSON.stringify(osinfo)))
// TODO: get rid of promises now that the tauri api doesn't require them anymore
}
const userAgent = window.navigator.userAgent || 'unknown browser'