From 0b5feb4bff2723d54fc68ecb2d572f08d1fca937 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Tue, 15 Jun 2021 17:32:31 +0200 Subject: [PATCH] move out dir --- pack-chrome.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pack-chrome.sh b/pack-chrome.sh index cbe1589..6e0fbb4 100755 --- a/pack-chrome.sh +++ b/pack-chrome.sh @@ -36,8 +36,11 @@ then browser=$(which chromium 2> /dev/null) fi -cp "${dir}/chrome" "${temp_dir}/out/proxy-stream-${DRONE_TAG}" +release_folder="${temp_dir}/out/proxy-stream-${DRONE_TAG}" +cp -r "${dir}/chrome" "${release_folder}" ${browser} --disable-gpu --no-sandbox --user-data-dir=${chrome_dir} --pack-extension="${temp_dir}/out/proxy-stream-${DRONE_TAG}" --pack-extension-key="${temp_dir}/privkey.pem" +rm -rf "${release_folder}" +mv "${temp_dir}/out" "${dir}/out" rm -rf ${temp_dir}