00.flutter:02.flutterでwebアプリを作成
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| 00.flutter:02.flutterでwebアプリを作成 [2021/05/22] – [02.FlutterでWebアプリを作成してNetlifyにデプロイ] adash333 | 00.flutter:02.flutterでwebアプリを作成 [2021/05/22] (現在) – [Flutter for WebのNetlifyへのデプロイに関するリンク] adash333 | ||
|---|---|---|---|
| 行 51: | 行 51: | ||
| flutter run -d chrome --web-renderer html | flutter run -d chrome --web-renderer html | ||
| </ | </ | ||
| + | (--web-renderer html は、日本語フォントが< | ||
| 約20秒ほど待つと、以下のようにChromeが自動で開きます。 | 約20秒ほど待つと、以下のようにChromeが自動で開きます。 | ||
| 行 196: | 行 197: | ||
| Build command | Build command | ||
| < | < | ||
| - | if cd flutter; then git pull && cd..; else git clone https:// | + | if cd flutter; then git pull && cd..; else git clone https:// |
| </ | </ | ||
| Publish directory | Publish directory | ||
| 行 209: | 行 210: | ||
| https:// | https:// | ||
| + | |||
| + | https:// | ||
| + | {{: | ||
| + | |||
| + | ==== netlify.tomlの利用 ==== | ||
| + | |||
| + | ./ | ||
| + | < | ||
| + | [build] | ||
| + | command = "chmod 777 ./build.sh && ./ | ||
| + | publish = " | ||
| + | </ | ||
| + | |||
| + | ./build.sh | ||
| + | < | ||
| + | if cd flutter; then | ||
| + | git pull | ||
| + | cd .. | ||
| + | else | ||
| + | git clone https:// | ||
| + | fi | ||
| + | |||
| + | flutter/ | ||
| + | </ | ||
| + | |||
| + | 参考: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== シェルスクリプトについて ==== | ||
| + | if文 | ||
| + | < | ||
| + | if 条件式 ; then | ||
| + | 処理1 | ||
| + | else | ||
| + | 処理2 | ||
| + | fi | ||
| + | </ | ||
| + | → 条件式が真の場合は処理1を、それ以外の場合は処理2を行う。 | ||
| + | |||
| + | https:// | ||
| + | if 文と test コマンド | ||
| + | |||
| + | https:// | ||
| + | @toshihirock | ||
| + | が2015年10月28日に作成 | ||
| + | シェルスクリプト(bash)のif文とtestコマンド([])自分メモ | ||
| + | |||
| + | https:// | ||
| + | シェルスクリプトでつまずいた・・・ | ||
| + | 2013.07.07 16:44 | ||
| + | |||
| + | |||
| + | http:// | ||
| + | UNIX/ | ||
| + | |||
| + | https:// | ||
| + | 2020年3月6日 | ||
| + | 【 git pull 】コマンド――リモートリポジトリの変更内容を取り込む | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| ===== Flutter for WebとFirebase ===== | ===== Flutter for WebとFirebase ===== | ||
00.flutter/02.flutterでwebアプリを作成.1621661496.txt.gz · 最終更新: 2021/05/22 by adash333
