0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

flutterをマルチユーザ環境で使うときのTIPS

Posted at

モチベーション

  • 1台のMacに複数のユーザがログインする環境でflutterを使いたい
  • 全員の~/flutter/binにインストールするのはバカっぽい

前提

  • 自分およびログインしようとするユーザが管理者権限があること

手順

  • 管理者でログインし、/usr/local/opt/にflutterを解凍する
$ cd /usr/local/opt/
$ chmod -R g+w flutter # ファイルすべてにgroupに書き込み権限を付与
$ find flutter -type d -print | xargs chmod g+x # ディレクトリ全てに権限を追加

おまけ

  • Android Studio自体はユーザ毎にインストールする必要はないが、プラグインはすべて入れ直し
  • flutter doctor --android-licensesはユーザ毎にやる必要がある
  • VSCodeのプラグインもユーザ毎にインストールする必要がある
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?