From 71af430079434a0e1adbcdaae84ca7f8e014ab00 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 17 Jul 2023 14:08:51 +0200 Subject: [PATCH] zwin VR desktop --- localhost.yml | 1 + roles/zwin/tasks/main.yml | 101 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+) create mode 100644 roles/zwin/tasks/main.yml diff --git a/localhost.yml b/localhost.yml index dd1c73c..081503a 100644 --- a/localhost.yml +++ b/localhost.yml @@ -17,3 +17,4 @@ - intellij - chromium - terraform + - zwin \ No newline at end of file diff --git a/roles/zwin/tasks/main.yml b/roles/zwin/tasks/main.yml new file mode 100644 index 0000000..18f8f05 --- /dev/null +++ b/roles/zwin/tasks/main.yml @@ -0,0 +1,101 @@ +--- +- name: install required packages for zwin + become: yes + apt: + update_cache: yes + pkg: + - adb + - clang + - cmake + - git + - libcairo2-dev + - libcglm-dev + - libdrm-dev + - libegl-mesa0 + - libgbm-dev + - libgles-dev + - libglm-dev + - libglu1-mesa-dev + - libjpeg-dev + - librsvg2-dev + - libwayland-dev + - libwlroots-dev + - meson + - pkg-config + - wayland-protocols + - weston + - python3-virtualenv + +- name: create directory for zwin + file: + path: "{{ ansible_user_dir }}/src/zwin" + state: directory + mode: '0755' + +- name: checkout zen-release-manager + git: + repo: https://github.com/zwin-project/zen-release-manager.git + dest: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + clone: yes + update: yes + +- name: prepare build + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + virtualenv --system-site-packages . + source bin/activate + pip3 install -r requirements.txt + ./zen-release configure ./release/latest.yaml + +- name: download zen-mirror apk + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release download zen-mirror + +- name: build zen protocols + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release build protocol + +- name: install zen protocol + become: yes + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release install protocol + +- name: build zen deps + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release build deps + +- name: install zen deps + become: yes + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release install deps + +- name: build zen desktop + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release build desktop + +- name: install zen desktop + become: yes + shell: + chdir: "{{ ansible_user_dir }}/src/zwin/zen-release-manager" + cmd: | + source bin/activate + ./zen-release install desktop