From bfbef789777b5fee9e2e920e1015e471ec3b61d7 Mon Sep 17 00:00:00 2001 From: Mathieu Strypsteen Date: Sun, 18 Feb 2024 08:54:29 +0100 Subject: [PATCH] Add build script --- .forgejo/workflows/build.yaml | 19 +++++++++++++++++++ .gitignore | 1 + build.sh | 5 +++++ options.html | 6 +++--- 4 files changed, 28 insertions(+), 3 deletions(-) create mode 100644 .forgejo/workflows/build.yaml create mode 100755 build.sh diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..96da19d --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,19 @@ +name: Build +on: [push] +jobs: + build: + runs-on: debian-12 + steps: + - name: Install zip + run: apt-get update && apt-get install zip + - name: Checkout + uses: actions/checkout@v4 + - name: Install dependencies + run: npm install + - name: Build extension + run: ./build.sh + - name: Upload extension + uses: actions/upload-artifact@v3 + with: + name: Proxy Settings Extension + path: proxy-settings.zip diff --git a/.gitignore b/.gitignore index 23a608b..54bcd51 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules *.js +proxy-settings.zip diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..f0ef4d1 --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +npx tsc +rm -f proxy-settings.zip +zip proxy-settings manifest.json *.html *.js diff --git a/options.html b/options.html index 303fabc..883211a 100644 --- a/options.html +++ b/options.html @@ -8,12 +8,12 @@
- +
- + - +