Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Latest commit

 

History

History
71 lines (43 loc) · 2.03 KB

ForWindows.md

File metadata and controls

71 lines (43 loc) · 2.03 KB

Windows 開発者向けドキュメント

このドキュメントは、Windows での開発に関する情報を提供します。

インストール系の操作は Powershell を管理者権限で実行する前提とします。

開発者モードの有効化

https://paso-kake.com/it/windows11/18020/

Chocolatey のインストール

Chocolatey は、Windows でのパッケージ管理を簡単にするためのツールです。

Chocolatey Software | Installing Chocolatey

画像の部分のコマンドをコピーします。

Chocolatey01

コピーしたコマンドを実行して、Chocolatey をインストールします。

# Example
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

dart-sdk のインストール

https://dart.dev/get-dart

choco install dart-sdk

melos のインストール

https://melos.invertase.dev/getting-started#installation

dart pub global activate melos

fvm のインストール

2023/04/02 現在、fvmChocolatey 経由でインストールすると Dart のバージョンが古くなってしまいます。 leoafarias/fvm#474

以下の手順でインストールしてください。

https://fvm.app/docs/getting_started/installation

dart pub global activate fvm

dart pub のアップグレード

dart pub global activate でインストールしたパッケージをアップグレードする場合は、以下のコマンドを実行してください。

dart pub upgrade

bootstrap スクリプトの実行

以下のコマンドを実行してください。

powershell -ExecutionPolicy RemoteSigned -File .\tools\bootstrap.ps1