stream-clients/pack-chrome.sh

11 lines
313 B
Bash
Executable File

#!/usr/bin/env sh
dir=$(dirname $(realpath $0))
${dir}/icons.sh
temp_name=$(head -c 20 /dev/random | xxd -p | tr -dc a-f0-9)
temp_dir="/tmp/${temp_name}"
chromium-browser --no-sandbox --user-data-dir=${temp_dir} --pack-extension="${dir}/chrome" --pack-extension-key=${HOME}/keys/privkey.pem
rm -rf ${temp_dir}