Skip to content

Commit

Permalink
feat: hide ts update, README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DrAugus committed Jun 23, 2022
1 parent fe79f92 commit 5b40d6c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,8 @@ run `rustup update`

### Building

- Windows Installer
run `yarn tauri build`. It will build your Frontend, compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.
- macOS Bundle
run `yarn tauri build`. It will build your frontend (if configured, see [beforeBuildCommand](https://tauri.app/v1/api/config#buildconfig.beforebuildcommand)), compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.
- **Windows Installer**: run `yarn tauri build`. It will build your Frontend, compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.
- **macOS Bundle**: run `yarn tauri build`. It will build your frontend (if configured, see [beforeBuildCommand](https://tauri.app/v1/api/config#buildconfig.beforebuildcommand)), compile the Rust binary, collect all external binaries and resources and finally produce neat platform-specific bundles and installers.

### Update

Expand Down
28 changes: 14 additions & 14 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ import App from './App.vue'
createApp(App).mount('#app')

// update
import {checkUpdate, installUpdate} from '@tauri-apps/api/updater'
import {relaunch} from '@tauri-apps/api/process'

try {
const {shouldUpdate, manifest} = await checkUpdate()
if (shouldUpdate) {
// display dialog
await installUpdate()
// install complete, restart app
await relaunch()
}
} catch (error) {
console.log(error)
}
// import {checkUpdate, installUpdate} from '@tauri-apps/api/updater'
// import {relaunch} from '@tauri-apps/api/process'
//
// try {
// const {shouldUpdate, manifest} = await checkUpdate()
// if (shouldUpdate) {
// // display dialog
// await installUpdate()
// // install complete, restart app
// await relaunch()
// }
// } catch (error) {
// console.log(error)
// }

0 comments on commit 5b40d6c

Please sign in to comment.