Add build script
All checks were successful
Build / build (push) Successful in 21s

This commit is contained in:
Mathieu Strypsteen 2024-02-18 08:54:29 +01:00
parent 7a2bf53a77
commit bfbef78977
4 changed files with 28 additions and 3 deletions

View file

@ -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

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
node_modules node_modules
*.js *.js
proxy-settings.zip

5
build.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
set -e
npx tsc
rm -f proxy-settings.zip
zip proxy-settings manifest.json *.html *.js

View file

@ -8,12 +8,12 @@
<body> <body>
<form id="proxySettings"> <form id="proxySettings">
<label>Active:</label> <label for="proxyActive">Active:</label>
<input type="checkbox" id="proxyActive"> <input type="checkbox" id="proxyActive">
<br> <br>
<label>Host:</label> <label for="proxyHost">Host:</label>
<input type="text" id="proxyHost"> <input type="text" id="proxyHost">
<label>Port:</label> <label for="proxyPort">Port:</label>
<input type="number" id="proxyPort"> <input type="number" id="proxyPort">
<br> <br>
<input type="submit" value="Save"> <input type="submit" value="Save">