Use date as version
All checks were successful
Build / build (push) Successful in 33s

This commit is contained in:
Mathieu Strypsteen 2024-02-18 15:39:48 +01:00
parent 7f52254c6b
commit fc61e8bd65
4 changed files with 2 additions and 3 deletions

View file

@ -3,4 +3,5 @@ set -e
rm -rf out proxy-settings.crx rm -rf out proxy-settings.crx
npx tsc npx tsc
cp manifest.json ./*.html out cp manifest.json ./*.html out
sed "s/{{DATE}}/$(date -u "+%Y.%m.%d")/" -i out/manifest.json
npx crx3 -p key.pem -o proxy-settings.crx out npx crx3 -p key.pem -o proxy-settings.crx out

View file

@ -1,7 +1,7 @@
{ {
"manifest_version": 3, "manifest_version": 3,
"name": "Proxy Settings", "name": "Proxy Settings",
"version": "0.0.1", "version": "{{DATE}}",
"action": { "action": {
"default_popup": "options.html" "default_popup": "options.html"
}, },

1
package-lock.json generated
View file

@ -6,7 +6,6 @@
"packages": { "packages": {
"": { "": {
"name": "chromium-proxy-settings", "name": "chromium-proxy-settings",
"version": "0.0.1",
"devDependencies": { "devDependencies": {
"@types/chrome": "^0.0.260", "@types/chrome": "^0.0.260",
"crx3": "^1.1.3", "crx3": "^1.1.3",

View file

@ -1,6 +1,5 @@
{ {
"name": "chromium-proxy-settings", "name": "chromium-proxy-settings",
"version": "0.0.1",
"type": "module", "type": "module",
"devDependencies": { "devDependencies": {
"@types/chrome": "^0.0.260", "@types/chrome": "^0.0.260",