diff --git a/build.sh b/build.sh index e66c56b..2ef1198 100755 --- a/build.sh +++ b/build.sh @@ -3,4 +3,5 @@ set -e rm -rf out proxy-settings.crx npx tsc 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 diff --git a/manifest.json b/manifest.json index 77f1b67..393b4b2 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Proxy Settings", - "version": "0.0.1", + "version": "{{DATE}}", "action": { "default_popup": "options.html" }, diff --git a/package-lock.json b/package-lock.json index 371bd6d..eb512fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,6 @@ "packages": { "": { "name": "chromium-proxy-settings", - "version": "0.0.1", "devDependencies": { "@types/chrome": "^0.0.260", "crx3": "^1.1.3", diff --git a/package.json b/package.json index f2bfd38..7b52ee8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "name": "chromium-proxy-settings", - "version": "0.0.1", "type": "module", "devDependencies": { "@types/chrome": "^0.0.260",