#!/bin/bash ############################################################### # Uses LXD to create an Ubuntu Xenial container and produce # # a reasonably portable AppImage of PrimeWorldEditor. # ############################################################### set -e CMAKE_VERSION=3.15.5 CONTAINER_NAME=pwe-ci # Set up container, deleting existing if necessary if lxc info $CONTAINER_NAME >& /dev/null then lxc delete $CONTAINER_NAME --force fi lxc init ubuntu:16.04 $CONTAINER_NAME # Inject build script lxc file push - $CONTAINER_NAME/root/dobuild.sh <