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}