Preparations for costume rules

+ Preparations for costume rules
- Feature "Report URLs"
+ Auto hash rules
+ Minimize rules length
+ Add start and end delimiters to rules
This commit is contained in:
Kevin Röbert
2019-03-12 18:13:23 +01:00
parent 81bc71de5e
commit 9c638c52f9
10 changed files with 541 additions and 140 deletions

View File

@@ -1,14 +1,22 @@
image: debian:latest
before_script:
before_script:
- export DEBIAN_FRONTEND= noninteractive
- apt-get update -y
- apt-get install -y zip unzip
stages:
stages:
- build
build firefox:
hash rules:
stage: build
script:
- sha256sum data/data.min.json > rules.min.hash
artifacts:
paths:
- rules.min.hash
build firefox:
stage: build
script:
- zip ClearUrls_firefox -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
@@ -20,7 +28,7 @@ build firefox:
paths:
- ClearUrls_firefox.zip
build chrome:
build chrome:
stage: build
script:
- zip ClearUrls_chrome -r -FS ChromeVersion/clearurls.js browser-polyfill.js ChromeVersion/manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/* ChromeVersion/css/core.css
@@ -30,4 +38,4 @@ build chrome:
artifacts:
paths:
- ClearUrls_chrome.zip
- ClearUrls_chrome.zip