initial commit

This commit is contained in:
askiiart 2025-02-23 13:32:45 -06:00
commit d76a511e84
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A
2 changed files with 43 additions and 0 deletions

23
.drone.yml Normal file
View file

@ -0,0 +1,23 @@
kind: pipeline
type: docker
name: default
steps:
- name: Build extension
image: node
commands:
- '/drone/src/build.sh'
volumes:
- name: misc
path: /misc
volumes:
- name: misc
host:
path: /mnt/user/files/misc
- name: bookworm-repo
host:
path: /mnt/user/files/repos/debian
- name: arch-repo
host:
path: /mnt/user/files/repos/archlinux/x86_64

20
build.sh Normal file
View file

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
npm install -g web-ext pnpm
git clone --depth 1 https://github.com/Vendicated/Vencord
cd ./Vencord/
# build extension
pnpm i
pnpm run buildWeb
# change id
cd ./dist/
jq '.browser_specific_settings.gecko.id = "vencord-firefox@askiiart.net"' ./firefox-unpacked/manifest.json >./firefox-unpacked/manifest.json
web-ext build -s ./firefox-unpacked/
# move to /misc and set version
mkdir -p /misc/vencord-firefox/
mv ./extension-firefox.zip /misc/vencord-firefox/vencord-firefox.zip
jq '.version' firefox-unpacked/manifest.json | tr -d '"' >/misc/vencord-firefox/version