os1ma / dotfiles

MIT License
0 stars 0 forks source link

Unity (Unity Hub も ?) をインストールする #34

Open os1ma opened 4 years ago

os1ma commented 4 years ago

unity 2019.3.7f1

os1ma commented 4 years ago

Unity Hub と u3d は似た機能をもつが、CI などで使えるのは u3d

https://blog.yucchiy.com/2019/01/04/setup-unity-build-environment-with-u3d-on-linux/

os1ma commented 4 years ago

Linux の対応バージョン出力

$ bundle exec u3d available --no-central --force -o linux
:
:
:
Version 2019.1.0f2: http://beta.unity3d.com/download/292b93d75a2c/
Version 2019.3.15f1: https://beta.unity3d.com/download/59ff3e03856d/
Version 2019.4.1f1: https://download.unity3d.com/download_unity/e6c045e14e4e/
Version 2020.1.0b12: https://beta.unity3d.com/download/9e6726e6ce12/
Version 2020.2.0a15: https://beta.unity3d.com/download/86048ae4b4bd/
os1ma commented 4 years ago

バージョンは f か p が良さそう

'f' are the main release candidates for Unity 'p' are patches fixing those releases 'b' are the beta releases 'a' are the alpha releases (not currently discovered online)

https://github.com/DragonBox/u3d

os1ma commented 4 years ago

以下でインストールに成功

sudo apt install -y p7zip-full
bundle exec u3d available --no-central --force -o linux
bundle exec u3d install 2019.4.2f1 --packages Unity,Documentation,Android,iOS
os1ma commented 4 years ago

u3d install でパスワードを聞かれないようにする

os1ma commented 4 years ago

Unity 起動時

sudo apt install -y libgconf-2-4
os1ma commented 4 years ago

Unity Hub インストール

curl -LO https://public-cdn.cloud.unity3d.com/hub/prod/UnityHub.AppImage
chmod +x UnityHub.AppImage
./UnityHub.AppImage
os1ma commented 4 years ago

Unity のバージョンが違うと Unity Hub のプロジェクトに追加できない ?

os1ma commented 4 years ago

現時点で以下のコマンドで u3d 経由で Unity をインストール可能。ただし u3d install でパスワード入力を求められる

git clone https://github.com/os1ma/unity-github-actions-sample.git
cd unity-github-actions-sample
bundle install
bundle exec u3d available --no-central --force -o linux
# TODO バージョンを自動で取得
bundle exec u3d install 2019.4.7f1 --packages unity,android,ios,webgl

u3d による Unity のインストール先は /opt 以下