s2-dungeonsandexploits/flask/init.sh

16 lines
410 B
Bash
Raw Permalink Normal View History

2022-11-18 09:04:33 +01:00
#!/bin/bash
set -e
here="$(realpath "$(dirname "$0")")"
cd "$here"
echo "---------- generate https certificate ----------"
openssl req -x509 -newkey RSA:4096 -keyform PEM -keyout "./key.pem" -outform PEM -out "./cert.pem" -days 3650 --nodes -subj "/CN="
echo "---------- link game ----------"
ln -sf "../../unity/game/Builds/WebGL" "./static/game"
realpath "."
cd "$here"
echo "---------- done ----------"