source: ogBrowser-Git/vagrant/ogbrowser-sway/init.sh

jenkins
Last change on this file was 8035462, checked in by Natalia Serrano <natalia.serrano@…>, 15 months ago

Don't remove libqt6webenginecore6-bin, support vbox, install sway config to user's home

  • Property mode set to 100755
File size: 1.1 KB
Line 
1#!/bin/bash
2set -e
3export DEBIAN_FRONTEND=noninteractive
4export DEBIAN_PRIORITY=critical
5export NEEDRESTART_MODE=a
6
7
8BUILD_DEPENDENCIES="build-essential cmake g++ qt6-base-dev qt6-webengine-dev linguist-qt6  libgl1-mesa-dev qt6-tools-dev qt6-l10n-tools  qt6-tools-dev-tools libqt6core5compat6-dev lxqt-build-tools qt6-webengine-dev-tools libqt6webenginecore6-bin"
9
10
11## Initial setup
12sudo apt update
13sudo apt dist-upgrade -y
14
15
16## Install dependencies and build
17sudo apt install -y $BUILD_DEPENDENCIES
18
19mkdir -p /tmp/build
20cd /tmp/build
21cmake /vagrant_data/
22make -j2
23sudo make install
24
25
26## Ensure we have the requirements to run the browser
27sudo apt install -y sway qt6-wayland kitty-terminfo ncdu libqt6core5compat6 libqt6webenginewidgets6 libqt6webenginecore6-bin
28
29
30
31## Remove everything unneeded.
32sudo apt -y remove $BUILD_DEPENDENCIES libqt6webenginecore6-bin+
33sudo apt -y autoremove
34sudo apt clean all
35sudo journalctl --vacuum-size=16M
36
37## Setup sway
38
39mkdir -p /home/vagrant/.config/sway
40cp -v /vagrant/files/sway/config /home/vagrant/.config/sway
41chown -R vagrant:vagrant /home/vagrant/.config
Note: See TracBrowser for help on using the repository browser.