Compare commits

...

2 Commits
master ... zwin

Author SHA1 Message Date
Przemek Grondek
72b414535c zwin VR desktop 2023-07-17 14:11:32 +02:00
Przemek Grondek
71af430079 zwin VR desktop 2023-07-17 14:08:51 +02:00
2 changed files with 107 additions and 0 deletions

View File

@ -17,3 +17,4 @@
- intellij - intellij
- chromium - chromium
- terraform - terraform
- zwin

106
roles/zwin/tasks/main.yml Normal file
View File

@ -0,0 +1,106 @@
---
- 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
- name: realod libraries paths
become: yes
shell: |
ldconfig