Skip to content

Commit 0960ca6

Browse files
authored
[i18n-ignore] fix npm args (#2860)
1 parent 44e2caf commit 0960ca6

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

src/content/docs/develop/configuration-files.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ For instance to distribute a completely isolated _beta_ application you can use
162162
```
163163

164164
<CommandTabs
165-
npm="npm run tauri build --config src-tauri/tauri.beta.conf.json"
165+
npm="npm run tauri build -- --config src-tauri/tauri.beta.conf.json"
166166
yarn="yarn tauri build --config src-tauri/tauri.beta.conf.json"
167167
pnpm="pnpm tauri build --config src-tauri/tauri.beta.conf.json"
168168
cargo="cargo tauri build --config src-tauri/tauri.beta.conf.json"

src/content/docs/distribute/dmg.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To distribute your macOS app in the App Store, see the [App Store distribution g
2121
To create an Apple Disk Image for your app you can use the Tauri CLI and run the `tauri build` command in a Mac computer:
2222

2323
<CommandTabs
24-
npm="npm run tauri build --bundles dmg"
24+
npm="npm run tauri build -- --bundles dmg"
2525
yarn="yarn tauri build --bundles dmg"
2626
pnpm="pnpm tauri build --bundles dmg"
2727
cargo="cargo tauri build --bundles dmg"

src/content/docs/distribute/google-play.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Once you've created a Play Console developer account, you need to register your
4343
You can build an Android App Bundle (AAB) to upload to Google Play by running the following command:
4444

4545
<CommandTabs
46-
npm="npm run tauri android build --aab"
46+
npm="npm run tauri android build -- --aab"
4747
yarn="yarn tauri android build --aab"
4848
pnpm="pnpm tauri android build --aab"
4949
cargo="cargo tauri android build --aab"
@@ -70,7 +70,7 @@ that can be used for testing or distribution outside the store.
7070
To compile APKs for your app you can use the `--apk` argument:
7171

7272
<CommandTabs
73-
npm="npm run tauri android build --apk"
73+
npm="npm run tauri android build -- --apk"
7474
yarn="yarn tauri android build --apk"
7575
pnpm="pnpm tauri android build --apk"
7676
cargo="cargo tauri android build --apk"
@@ -82,7 +82,7 @@ By default Tauri builds your app for all supported architectures (aarch64, armv7
8282
To only compile for a subset of targets, you can use the `--target` argument:
8383

8484
<CommandTabs
85-
npm="npm run tauri android build --aab --target aarch64 --target armv7"
85+
npm="npm run tauri android build -- --aab --target aarch64 --target armv7"
8686
yarn="yarn tauri android build --aab --target aarch64 --target armv7"
8787
pnpm="pnpm tauri android build --aab --target aarch64 --target armv7"
8888
cargo="cargo tauri android build --aab --target aarch64 --target armv7"
@@ -97,7 +97,7 @@ This is only useful for testing or distribution outside Google Play, as it reduc
9797
:::
9898

9999
<CommandTabs
100-
npm="npm run tauri android build --apk --split-per-abi"
100+
npm="npm run tauri android build -- --apk --split-per-abi"
101101
yarn="yarn tauri android build --apk --split-per-abi"
102102
pnpm="pnpm tauri android build --apk --split-per-abi"
103103
cargo="cargo tauri android build --apk --split-per-abi"

src/content/docs/distribute/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ By default the `build` command automatically bundles your application for the co
3535
If you need further customization on how the platform bundles are generated, you can split the build and bundle steps:
3636

3737
<CommandTabs
38-
npm="npm run tauri build --no-bundle
38+
npm="npm run tauri build -- --no-bundle
3939
# bundle for distribution outside the macOS App Store
40-
npm run tauri bundle --bundles app,dmg
40+
npm run tauri bundle -- --bundles app,dmg
4141
# bundle for App Store distribution
42-
npm run tauri bundle --bundles app --config src-tauri/tauri.appstore.conf.json"
42+
npm run tauri bundle -- --bundles app --config src-tauri/tauri.appstore.conf.json"
4343
yarn="yarn tauri build --no-bundle
4444
# bundle for distribution outside the macOS App Store
4545
yarn tauri bundle --bundles app,dmg

src/content/docs/distribute/macos-application-bundle.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ including your app executable, resources, the Info.plist file and other files su
1212
To package your app as a macOS application bundle you can use the Tauri CLI and run the `tauri build` command in a Mac computer:
1313

1414
<CommandTabs
15-
npm="npm run tauri build --bundles app"
15+
npm="npm run tauri build -- --bundles app"
1616
yarn="yarn tauri build --bundles app"
1717
pnpm="pnpm tauri build --bundles app"
1818
cargo="cargo tauri build --bundles app"

src/content/docs/distribute/microsoft-store.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ To only apply this installer configuration when bundling for Microsoft Store, yo
6262
Then merge that config file with the main one when bundling your Tauri app for Microsoft Store:
6363

6464
<CommandTabs
65-
npm="npm run tauri build --no-bundle
66-
npm run tauri bundle --config src-tauri/tauri.microsoftstore.conf.json"
65+
npm="npm run tauri build -- --no-bundle
66+
npm run tauri bundle -- --config src-tauri/tauri.microsoftstore.conf.json"
6767
yarn="yarn tauri build --no-bundle
6868
yarn tauri bundle --config src-tauri/tauri.microsoftstore.conf.json"
6969
pnpm="pnpm tauri build --no-bundle

src/content/docs/distribute/windows-installer.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you have multiple projects and want to share those files you can set the `XWI
123123
Now it should be as simple as adding the runner and target to the `tauri build` command:
124124

125125
<CommandTabs
126-
npm="npm run tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc"
126+
npm="npm run tauri build -- --runner cargo-xwin --target x86_64-pc-windows-msvc"
127127
yarn="yarn tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc"
128128
pnpm="pnpm tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc"
129129
cargo="cargo tauri build --runner cargo-xwin --target x86_64-pc-windows-msvc"
@@ -140,7 +140,7 @@ If you need to support **32-bit** machines, you can compile your application wit
140140
using the `--target` flag:
141141

142142
<CommandTabs
143-
npm="npm run tauri build --target i686-pc-windows-msvc"
143+
npm="npm run tauri build -- --target i686-pc-windows-msvc"
144144
yarn="yarn tauri build --target i686-pc-windows-msvc"
145145
pnpm="pnpm tauri build --target i686-pc-windows-msvc"
146146
cargo="cargo tauri build --target i686-pc-windows-msvc"
@@ -155,7 +155,7 @@ At the time of writing, the exact name in VS2022 is `MSVC v143 - VS 2022 C++ ARM
155155
Now you can add the rust target with `rustup target add aarch64-pc-windows-msvc` and then use the above-mentioned method to compile your app:
156156

157157
<CommandTabs
158-
npm="npm run tauri build --target aarch64-pc-windows-msvc"
158+
npm="npm run tauri build -- --target aarch64-pc-windows-msvc"
159159
yarn="yarn tauri build --target aarch64-pc-windows-msvc"
160160
pnpm="pnpm tauri build --target aarch64-pc-windows-msvc"
161161
cargo="cargo tauri build --target aarch64-pc-windows-msvc"

src/content/docs/it/develop/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Questo può aiutarti ad identificare dei problemi durante lo sviluppo usando l'I
159159
Per aprire l'IDE al posto di far partire l'applicazione sul dispositivo connesso o sul simulatore, usa l'opzione `--open`:
160160

161161
<CommandTabs
162-
npm="npm run tauri [android|ios] dev --open"
162+
npm="npm run tauri [android|ios] dev -- --open"
163163
yarn="yarn tauri [android|ios] dev --open"
164164
pnpm="pnpm tauri [android|ios] dev --open"
165165
cargo="cargo tauri [android|ios] dev --open"

src/content/docs/zh-cn/distribute/dmg.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ DMG(苹果磁盘镜像)格式是一个常见的 macOS 安装程序文件,
2121
要为你的应用创建一个苹果磁盘镜像(DMG),你可以使用 Tauri 命令行并在 Mac 电脑上运行 `tauri build` 命令。
2222

2323
<CommandTabs
24-
npm="npm run tauri build --bundles dmg"
24+
npm="npm run tauri build -- --bundles dmg"
2525
yarn="yarn tauri build --bundles dmg"
2626
pnpm="pnpm tauri build --bundles dmg"
2727
cargo="cargo tauri build --bundles dmg"

0 commit comments

Comments
 (0)