PowerShell 7.2.5
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\Users\aki> (Get-WmiObject Win32_OperatingSystem).Caption
Microsoft Windows 11 Pro
PS C:\Users\aki>
PowerShell 7.2.5
Copyright (c) Microsoft Corporation.
https://aka.ms/powershell
Type 'help' to get help.
PS C:\Users\aki> cd .\development\
PS C:\Users\aki\development> cargo install tauri-cli --version "^1.0.0"
ながいので省略
PS C:\Users\aki\development> npm create tauri-app
We hope to help you create something special with Tauri!
You will have a choice of one of the UI frameworks supported by the greater web tech community.
This tool should get you quickly started. See our docs at https://tauri.app/
If you haven't already, please take a moment to setup your system.
You may find the requirements here: https://tauri.app/v1/guides/getting-started/prerequisites
Press any key to continue...
? What is your app name? tauri-app
? What should the window title be? Tauri App
? What UI recipe would you like to add? Vanilla.js (html, css, and js without the bundlers)
>> Running initial command(s)
>> Installing any additional needed dependencies
added 2 packages, and audited 3 packages in 2s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
added 2 packages, and audited 5 packages in 3s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
>> Updating "package.json"
>> Running "tauri init"
> tauri
> tauri
>> Updating "tauri.conf.json"
>> Running final command(s)
Your installation completed.
$ cd tauri-app
$ npm install
$ npm run tauri dev
PS C:\Users\aki\development>
PS C:\Users\aki\development\tauri-app> cd ..
PS C:\Users\aki\development> npm create tauri-app
We hope to help you create something special with Tauri!
You will have a choice of one of the UI frameworks supported by the greater web tech community.
This tool should get you quickly started. See our docs at https://tauri.app/
If you haven't already, please take a moment to setup your system.
You may find the requirements here: https://tauri.app/v1/guides/getting-started/prerequisites
Press any key to continue...
? What is your app name? breakout-app
? What should the window title be? Breakout
? What UI recipe would you like to add? Vanilla.js (html, css, and js without the bundlers)
>> Running initial command(s)
>> Installing any additional needed dependencies
added 2 packages, and audited 3 packages in 2s
2 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
added 2 packages, and audited 5 packages in 3s
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
>> Updating "package.json"
>> Running "tauri init"
> tauri
> tauri
>> Updating "tauri.conf.json"
>> Running final command(s)
Your installation completed.
$ cd breakout-app
$ npm install
$ npm run tauri dev
PS C:\Users\aki\development>
dist と src-tauri はいらない
1
2
3
4
5
6
7
8
9
10
11
12
13
PS C:\Users\aki\development\breakout-app> rm dist
Confirm
The item at C:\Users\aki\development\breakout-app\dist has children and the Recurse parameter was not specified. If you continue, all
children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): a
PS C:\Users\aki\development\breakout-app> rm .\src-tauri\
Confirm
The item at C:\Users\aki\development\breakout-app\src-tauri\ has children and the Recurse parameter was not specified. If you continue,
all children will be removed with the item. Are you sure you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): a
PS C:\Users\aki\development\breakout-app>
aki:~/breakout/lesson10$ cd /mnt/c/Users/aki/development/breakout-app/ui/
aki:/mnt/c/Users/aki/development/breakout-app/ui$ ls
index.html index.js packages.dhall spago.dhall src test
aki:/mnt/c/Users/aki/development/breakout-app/ui$
PS C:\Users\aki\development\breakout-app> ls
Directory: C:\Users\aki\development\breakout-app
Mode LastWriteTime Length Name
---- ------------- ------ ----
d---- 2022/06/26 22:19 node_modules
d---- 2022/06/26 22:12 ui
-a--- 2022/06/26 22:22 11069 package-lock.json
-a--- 2022/06/26 22:19 187 package.json
PS C:\Users\aki\development\breakout-app> npm install
up to date, audited 7 packages in 422ms
3 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
PS C:\Users\aki\development\breakout-app> npm run tauri init
> tauri
> tauri
✔ What is your app name? · breakout-app
✔ What should the window title be? · breakout
? Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri/tauri.conf.json" file that will be created? › ✔ Where are your web assets (HTML/CSS/JS) located, relative to the "<current dir>/src-tauri/tauri.conf.json" file that will be created? · ../ui
✔ What is the url of your dev server? · ../ui
PS C:\Users\aki\development\breakout-app>
Tauriのビルド
1
2
3
4
5
6
PS C:\Users\aki\development\breakout-app> npm run tauri build
> tauri
> tauri
Error You must change the bundle identifier in `tauri.conf.json > tauri > bundle > identifier`. The default value `com.tauri.dev` is not allowed as it must be unique across applications.