fix invalid lang tags (#19513)
This commit is contained in:
parent
6e367dab9a
commit
af3316707f
10 changed files with 15 additions and 15 deletions
|
@ -64,7 +64,7 @@ If you want to support displays with different DPI densities at the same time,
|
||||||
you can put images with different sizes in the same folder and use the filename
|
you can put images with different sizes in the same folder and use the filename
|
||||||
without DPI suffixes. For example:
|
without DPI suffixes. For example:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
images/
|
images/
|
||||||
├── icon.png
|
├── icon.png
|
||||||
├── icon@2x.png
|
├── icon@2x.png
|
||||||
|
|
|
@ -20,7 +20,7 @@ below.
|
||||||
|
|
||||||
On macOS:
|
On macOS:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
electron/Electron.app/Contents/Resources/app/
|
electron/Electron.app/Contents/Resources/app/
|
||||||
├── package.json
|
├── package.json
|
||||||
├── main.js
|
├── main.js
|
||||||
|
@ -29,7 +29,7 @@ electron/Electron.app/Contents/Resources/app/
|
||||||
|
|
||||||
On Windows and Linux:
|
On Windows and Linux:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
electron/resources/app
|
electron/resources/app
|
||||||
├── package.json
|
├── package.json
|
||||||
├── main.js
|
├── main.js
|
||||||
|
@ -52,14 +52,14 @@ below, and Electron will then try to read the archive and start from it.
|
||||||
|
|
||||||
On macOS:
|
On macOS:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
electron/Electron.app/Contents/Resources/
|
electron/Electron.app/Contents/Resources/
|
||||||
└── app.asar
|
└── app.asar
|
||||||
```
|
```
|
||||||
|
|
||||||
On Windows and Linux:
|
On Windows and Linux:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
electron/resources/
|
electron/resources/
|
||||||
└── app.asar
|
└── app.asar
|
||||||
```
|
```
|
||||||
|
@ -91,7 +91,7 @@ file's name.
|
||||||
|
|
||||||
The structure of a renamed app would be like:
|
The structure of a renamed app would be like:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
MyApp.app/Contents
|
MyApp.app/Contents
|
||||||
├── Info.plist
|
├── Info.plist
|
||||||
├── MacOS/
|
├── MacOS/
|
||||||
|
|
|
@ -93,7 +93,7 @@ Specifically, the above means:
|
||||||
|
|
||||||
For each major and minor bump, you should expect to see something like the following:
|
For each major and minor bump, you should expect to see something like the following:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
2.0.0-beta.1
|
2.0.0-beta.1
|
||||||
2.0.0-beta.2
|
2.0.0-beta.2
|
||||||
2.0.0-beta.3
|
2.0.0-beta.3
|
||||||
|
|
|
@ -17,7 +17,7 @@ Node.js application. The starting point is a `package.json` that is identical
|
||||||
to that of a Node.js module. A most basic Electron app would have the following
|
to that of a Node.js module. A most basic Electron app would have the following
|
||||||
folder structure:
|
folder structure:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
your-app/
|
your-app/
|
||||||
├── package.json
|
├── package.json
|
||||||
├── main.js
|
├── main.js
|
||||||
|
|
|
@ -55,13 +55,13 @@ You can use environment variables to override the base URL, the path at which to
|
||||||
look for Electron binaries, and the binary filename. The url used by `electron-download`
|
look for Electron binaries, and the binary filename. The url used by `electron-download`
|
||||||
is composed as follows:
|
is composed as follows:
|
||||||
|
|
||||||
```txt
|
```plaintext
|
||||||
url = ELECTRON_MIRROR + ELECTRON_CUSTOM_DIR + '/' + ELECTRON_CUSTOM_FILENAME
|
url = ELECTRON_MIRROR + ELECTRON_CUSTOM_DIR + '/' + ELECTRON_CUSTOM_FILENAME
|
||||||
```
|
```
|
||||||
|
|
||||||
For instance, to use the China mirror:
|
For instance, to use the China mirror:
|
||||||
|
|
||||||
```txt
|
```plaintext
|
||||||
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
|
ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Generally speaking, shortcuts are added by providing a `Name` and `Exec`
|
||||||
property for each entry in the shortcuts menu. Unity will execute the
|
property for each entry in the shortcuts menu. Unity will execute the
|
||||||
`Exec` field once clicked by the user. The format is as follows:
|
`Exec` field once clicked by the user. The format is as follows:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
Actions=PlayPause;Next;Previous
|
Actions=PlayPause;Next;Previous
|
||||||
|
|
||||||
[Desktop Action PlayPause]
|
[Desktop Action PlayPause]
|
||||||
|
|
|
@ -391,7 +391,7 @@ easy way to improve your application's security.
|
||||||
The following CSP will allow Electron to execute scripts from the current
|
The following CSP will allow Electron to execute scripts from the current
|
||||||
website and from `apis.example.com`.
|
website and from `apis.example.com`.
|
||||||
|
|
||||||
```txt
|
```plaintext
|
||||||
// Bad
|
// Bad
|
||||||
Content-Security-Policy: '*'
|
Content-Security-Policy: '*'
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ your application's size.
|
||||||
|
|
||||||
The output should look roughly like this:
|
The output should look roughly like this:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
.
|
.
|
||||||
└── dist
|
└── dist
|
||||||
└── app-linux-x64
|
└── app-linux-x64
|
||||||
|
|
|
@ -122,7 +122,7 @@ is built with another system, you'll need to ensure that you build with a
|
||||||
delay-load hook installed in the main `.node` file. Your `link.exe` invocation
|
delay-load hook installed in the main `.node` file. Your `link.exe` invocation
|
||||||
should look like this:
|
should look like this:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
link.exe /OUT:"foo.node" "...\node.lib" delayimp.lib /DELAYLOAD:node.exe /DLL
|
link.exe /OUT:"foo.node" "...\node.lib" delayimp.lib /DELAYLOAD:node.exe /DLL
|
||||||
"my_addon.obj" "win_delay_load_hook.obj"
|
"my_addon.obj" "win_delay_load_hook.obj"
|
||||||
```
|
```
|
||||||
|
|
|
@ -48,7 +48,7 @@ any module you don't actually need will increase your application's size.
|
||||||
|
|
||||||
The output should look roughly like this:
|
The output should look roughly like this:
|
||||||
|
|
||||||
```text
|
```plaintext
|
||||||
├── Ghost.exe
|
├── Ghost.exe
|
||||||
├── LICENSE
|
├── LICENSE
|
||||||
├── content_resources_200_percent.pak
|
├── content_resources_200_percent.pak
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue