From 121930af4a81f6dbe61c7e6533194d5cbba5da5f Mon Sep 17 00:00:00 2001 From: Endre Fejes Date: Wed, 8 Jul 2020 17:34:05 +0200 Subject: [PATCH] Simple setup for linux --- setup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..81b5b07 --- /dev/null +++ b/setup.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -uex + +base_dir=$(realpath "$(dirname "${BASH_SOURCE[0]}")") + +cd "${base_dir}" +pip3 install -r requirements.txt + +cards_dir="${base_dir}/static/cards/dixit" +tmp_dir=$(mktemp -d) +git clone https://github.com/jminuscula/dixit-online.git "${tmp_dir}" +cp "${tmp_dir}/cards/"*.jpg "$cards_dir/" +rm -rf $tmp_dir