Compare commits

...

3 Commits
v111 ... master

Author SHA1 Message Date
0eedf53fc8
use extension packer 2022-10-16 22:34:25 +02:00
1e6316f2b3
add firefox extension
All checks were successful
continuous-integration/drone Build is passing
2022-10-16 21:17:23 +02:00
da2c738c52
set playlistid
Some checks reported errors
continuous-integration/drone Build was killed
2022-03-06 09:31:36 +01:00
4 changed files with 8 additions and 5 deletions

View File

@ -1,13 +1,13 @@
kind: pipeline kind: pipeline
name: default name: default
steps: steps:
- name: compile-chrome - name: compile-extensions
image: roypur/chrome-packer:latest image: roypur/extension-packer:latest
environment: environment:
CHROME_PRIVKEY: CHROME_PRIVKEY:
from_secret: chrome_privkey from_secret: chrome_privkey
commands: commands:
- ./pack-chrome.sh - ./pack-browsers.sh
- name: gitea_release - name: gitea_release
image: plugins/gitea-release image: plugins/gitea-release
settings: settings:
@ -15,6 +15,6 @@ steps:
from_secret: gitea_token from_secret: gitea_token
base_url: https://git.purser.it base_url: https://git.purser.it
title: ${DRONE_TAG} title: ${DRONE_TAG}
files: out/proxy-stream-${DRONE_TAG}.crx files: out/proxy-stream-${DRONE_TAG}.crx out/proxy-stream-${DRONE_TAG}.xpi
when: when:
event: tag event: tag

1
.gitignore vendored
View File

@ -11,4 +11,5 @@ android/.gradle/*
android/gradle/* android/gradle/*
chrome/*.png chrome/*.png
*.crx *.crx
*.xpi
sources.json sources.json

View File

@ -97,7 +97,7 @@ document.addEventListener("DOMContentLoaded", () => {
} }
if(playlistid) { if(playlistid) {
req.params.playlistid = 1 req.params.playlistid = playlistid
} }
const resp = await fetch("http://127.0.0.1:4000/jsonrpc", { const resp = await fetch("http://127.0.0.1:4000/jsonrpc", {

View File

@ -50,6 +50,8 @@ fi
release_folder="${temp_dir}/out/proxy-stream-${DRONE_TAG}" release_folder="${temp_dir}/out/proxy-stream-${DRONE_TAG}"
cp -r "${dir}/chrome" "${release_folder}" 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 if grep "/proc/1/cgroup" -q -F -e docker
then 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" ${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"