Skip to content

Commit 991ec43

Browse files
authored
added opening curly brackets and missing languages to code blocks (tauri-apps#193)
1 parent e943418 commit 991ec43

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/en/usage/guides/updater.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Add this in tauri.conf.json
1111
"updater": {
1212
"active": true,
1313
"endpoints": [
14-
"https://releases.myapp.com/{target}}/{current_version}}"
14+
"https://releases.myapp.com/{{target}}/{{current_version}}"
1515
],
1616
"dialog": true,
1717
"pubkey": ""
@@ -57,7 +57,7 @@ If the user accepts, the download and install are initialized. The user will be
5757
**Attention, you need to _disable built-in dialog_ in your [tauri configuration](#configuration), otherwise, events aren't emitted and the javascript API will NOT work.**
5858

5959

60-
```
60+
```js
6161
import { checkUpdate, installUpdate } from "@tauri-apps/api/updater";
6262
import { relaunch } from "@tauri-apps/api/app";
6363
try {
@@ -101,7 +101,7 @@ emit("tauri://update");
101101
Event: `tauri://update-available`
102102

103103
Emitted data:
104-
```
104+
```none
105105
version Version announced by the server
106106
date Date announced by the server
107107
body Note announced by the server
@@ -144,7 +144,7 @@ emit("tauri://update-install");
144144
Event: `tauri://update-status`
145145

146146
Emitted data:
147-
```
147+
```none
148148
status [ERROR/PENDING/DONE]
149149
error String/null
150150
```
@@ -236,7 +236,7 @@ You can see how it's [bundled with the CI](https://github.com/tauri-apps/tauri/b
236236

237237
On MACOS we create a .tar.gz from the whole application. (.app)
238238

239-
```
239+
```none
240240
target/release/bundle
241241
└── osx
242242
└── app.app
@@ -248,7 +248,7 @@ target/release/bundle
248248

249249
On Windows we create a .zip from the MSI, when downloaded and validated, we run the MSI install.
250250

251-
```
251+
```none
252252
target/release
253253
└── app.x64.msi
254254
└── app.x64.msi.zip (update bundle)
@@ -259,7 +259,7 @@ target/release
259259

260260
On Linux, we create a .tar.gz from the AppImage.
261261

262-
```
262+
```none
263263
target/release/bundle
264264
└── appimage
265265
└── app.AppImage

0 commit comments

Comments
 (0)