From 1e6316f2b369108a68bf026c24eb6073ef111167 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sun, 16 Oct 2022 21:17:23 +0200 Subject: [PATCH] add firefox extension --- .drone.yml | 4 ++-- .gitignore | 1 + pack-chrome.sh => pack-browsers.sh | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) rename pack-chrome.sh => pack-browsers.sh (95%) diff --git a/.drone.yml b/.drone.yml index 594ffbb..e81af9a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,7 @@ steps: CHROME_PRIVKEY: from_secret: chrome_privkey commands: - - ./pack-chrome.sh + - ./pack-browsers.sh - name: gitea_release image: plugins/gitea-release settings: @@ -15,6 +15,6 @@ steps: from_secret: gitea_token base_url: https://git.purser.it title: ${DRONE_TAG} - files: out/proxy-stream-${DRONE_TAG}.crx + files: out/proxy-stream-${DRONE_TAG}.crx out/proxy-stream-${DRONE_TAG}.xpi when: event: tag diff --git a/.gitignore b/.gitignore index f7cf877..b71bbbb 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ android/.gradle/* android/gradle/* chrome/*.png *.crx +*.xpi sources.json diff --git a/pack-chrome.sh b/pack-browsers.sh similarity index 95% rename from pack-chrome.sh rename to pack-browsers.sh index 036931f..44ecdfb 100755 --- a/pack-chrome.sh +++ b/pack-browsers.sh @@ -50,6 +50,8 @@ fi release_folder="${temp_dir}/out/proxy-stream-${DRONE_TAG}" cp -r "${dir}/chrome" "${release_folder}" +(cd "${release_folder}" && zip -r "${temp_dir}/out/proxy-stream-${DRONE_TAG}.xpi" .) + if grep "/proc/1/cgroup" -q -F -e docker then ${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"