2021-08-15 15:47:40 -04:00
|
|
|
# https://stackoverflow.com/a/6273809
|
|
|
|
run_options := $(filter-out $@,$(MAKECMDGOALS))
|
|
|
|
|
2024-11-11 13:20:54 -05:00
|
|
|
.PHONY: all clean cleanassets test lint chromium opera firefox npm dig \
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-chromium mv3-firefox mv3-edge mv3-safari ubol-codemirror \
|
2025-08-25 15:10:36 -04:00
|
|
|
compare maxcost medcost mincost modifiers record wasm \
|
2025-09-04 09:51:02 -04:00
|
|
|
publish-chromium publish-edge publish-firefox \
|
|
|
|
publish-dev-chromium publish-dev-firefox \
|
|
|
|
upload-firefox upload-dev-firefox
|
2021-07-31 18:11:28 +05:30
|
|
|
|
2025-05-02 14:33:33 -04:00
|
|
|
sources := ./dist/version $(shell find ./assets -type f) $(shell find ./src -type f)
|
2025-05-08 16:53:07 -04:00
|
|
|
platform := $(wildcard platform/*/*)
|
2022-11-14 09:50:53 -05:00
|
|
|
assets := dist/build/uAssets
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-sources := \
|
|
|
|
$(shell find ./src -type f) \
|
|
|
|
$(wildcard platform/mv3/*) \
|
|
|
|
$(shell find ./platform/mv3/extension -name codemirror-ubol -prune -o -type f) \
|
|
|
|
platform/mv3/extension/lib/codemirror/codemirror-ubol/dist/cm6.bundle.ubol.min.js
|
2025-05-02 14:33:33 -04:00
|
|
|
mv3-data := $(shell find ./dist/build/mv3-data -type f)
|
2025-05-08 16:53:07 -04:00
|
|
|
|
|
|
|
mv3-edge-deps := $(wildcard platform/mv3/edge/*)
|
|
|
|
mv3-safari-deps := $(wildcard platform/mv3/safari/*)
|
2021-07-31 18:11:28 +05:30
|
|
|
|
2021-08-15 10:43:36 -04:00
|
|
|
all: chromium firefox npm
|
2021-07-31 18:11:28 +05:30
|
|
|
|
2021-08-03 11:27:55 -04:00
|
|
|
dist/build/uBlock0.chromium: tools/make-chromium.sh $(sources) $(platform) $(assets)
|
2021-07-31 18:11:28 +05:30
|
|
|
tools/make-chromium.sh
|
|
|
|
|
|
|
|
# Build the extension for Chromium.
|
|
|
|
chromium: dist/build/uBlock0.chromium
|
|
|
|
|
2023-01-01 10:21:54 -05:00
|
|
|
dist/build/uBlock0.opera: tools/make-opera.sh $(sources) $(platform) $(assets)
|
|
|
|
tools/make-opera.sh
|
|
|
|
|
|
|
|
# Build the extension for Opera.
|
|
|
|
opera: dist/build/uBlock0.opera
|
|
|
|
|
2021-08-03 11:27:55 -04:00
|
|
|
dist/build/uBlock0.firefox: tools/make-firefox.sh $(sources) $(platform) $(assets)
|
2021-07-31 18:11:28 +05:30
|
|
|
tools/make-firefox.sh all
|
|
|
|
|
|
|
|
# Build the extension for Firefox.
|
|
|
|
firefox: dist/build/uBlock0.firefox
|
|
|
|
|
2021-08-15 10:43:36 -04:00
|
|
|
dist/build/uBlock0.npm: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
|
|
|
tools/make-npm.sh
|
2021-07-31 18:11:28 +05:30
|
|
|
|
2025-01-11 10:53:36 -05:00
|
|
|
npm: dist/build/uBlock0.npm
|
|
|
|
|
2025-01-09 09:33:22 -05:00
|
|
|
# Dev tools
|
2025-01-10 11:08:54 -05:00
|
|
|
node_modules:
|
2025-01-09 09:33:22 -05:00
|
|
|
npm install
|
2021-07-31 18:11:28 +05:30
|
|
|
|
2025-01-11 10:53:36 -05:00
|
|
|
init: node_modules
|
2025-01-10 11:08:54 -05:00
|
|
|
|
2025-01-11 10:53:36 -05:00
|
|
|
lint: init
|
2025-01-09 09:33:22 -05:00
|
|
|
npm run lint
|
2021-08-05 00:10:20 +05:30
|
|
|
|
2021-08-15 10:43:36 -04:00
|
|
|
dist/build/uBlock0.dig: tools/make-nodejs.sh $(sources) $(platform) $(assets)
|
|
|
|
tools/make-dig.sh
|
|
|
|
|
|
|
|
dig: dist/build/uBlock0.dig
|
2021-08-15 15:47:40 -04:00
|
|
|
cd dist/build/uBlock0.dig && npm install
|
|
|
|
|
|
|
|
dig-snfe: dig
|
|
|
|
cd dist/build/uBlock0.dig && npm run snfe $(run_options)
|
2021-08-10 23:20:06 +05:30
|
|
|
|
2025-03-10 09:24:26 -04:00
|
|
|
dist/build/mv3-data:
|
2025-03-09 08:41:28 -04:00
|
|
|
mkdir -p dist/build/mv3-data
|
2025-03-08 13:39:53 -05:00
|
|
|
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
ubol-codemirror:
|
|
|
|
$(MAKE) -sC platform/mv3/extension/lib/codemirror/codemirror-ubol/ ubol.bundle
|
|
|
|
|
2025-05-05 08:37:26 -04:00
|
|
|
dist/build/uBOLite.chromium: tools/make-mv3.sh $(mv3-sources) $(platform) $(mv3-data) dist/build/mv3-data
|
2023-04-07 10:19:43 -04:00
|
|
|
tools/make-mv3.sh chromium
|
|
|
|
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-chromium: ubol-codemirror dist/build/uBOLite.chromium
|
2024-11-11 13:20:54 -05:00
|
|
|
|
2025-05-05 08:37:26 -04:00
|
|
|
dist/build/uBOLite.firefox: tools/make-mv3.sh $(mv3-sources) $(platform) $(mv3-data) dist/build/mv3-data
|
2023-04-07 10:19:43 -04:00
|
|
|
tools/make-mv3.sh firefox
|
2022-09-06 13:47:52 -04:00
|
|
|
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-firefox: ubol-codemirror dist/build/uBOLite.firefox
|
2024-11-11 13:20:54 -05:00
|
|
|
|
2025-05-08 16:53:07 -04:00
|
|
|
dist/build/uBOLite.edge: tools/make-mv3.sh $(mv3-sources) $(mv3-edge-deps) $(mv3-data) dist/build/mv3-data
|
2025-03-08 10:43:59 -05:00
|
|
|
tools/make-mv3.sh edge
|
2022-09-13 17:44:24 -04:00
|
|
|
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-edge: ubol-codemirror dist/build/uBOLite.edge
|
2022-09-06 13:47:52 -04:00
|
|
|
|
2025-05-05 08:37:26 -04:00
|
|
|
dist/build/uBOLite.safari: tools/make-mv3.sh $(mv3-sources) $(mv3-safari-deps) $(mv3-data) dist/build/mv3-data
|
2025-04-19 13:08:59 -04:00
|
|
|
tools/make-mv3.sh safari
|
|
|
|
|
[mv3] Add support for custom DNR rules
This feature is hidden behind the "Developer mode" setting in
the dashboard. When "Developer mode" is enabled, a tab named
"Develop" will become available in the dashboard. This tab is
meant to contain tools for technical users.
At the moment, the "Develop" pane allows to create custom DNR
rules through a (CodeMirror-based) editor.
For the sake of convenience, the DNR rule must be entered in
YAML-like format. The format is not really full compliant YAML,
just YAML-like, and very strict in order to ensure the parser
stays simple enough.
Lines starting with `#` are comments and will be ignored by the
parser.
Any line which do not match the parser's expectation will be
marked as invalid, and the whole DNR rule containing such invalid
lines will be discarded.
There must not be empty lines inside a rule definition.
Each DNR rule must be separated with a `---` line, which is
known as a YAML document separator.
String values must not be quoted, otherwise the quotes will be
considered part of the value. There is one exception: `''` will
be parsed as "an empty string".
The editor will attempt to auto-complete known DNR keywords. That
feature will improve over time.
Though the parser will identify some errors, not all invalid DNR
rules are currently identified by the parser, and these will be
reported when the rules are registered through the DNR API. Better
identifying invalid DNR rules at edit time will improve over time.
The editor will report `regexFilter` values which are not
supported by the DNR engine on the current platform.
The editor reacts to instances of `regexFilter: ...` to report
whether a regex value is supported. This means you can test for
a regex value by using `# regexFilter: ...` so that you do not
have to create an actual DNR rules just for the sake of testing.
Custom DNR rules can be exported into a JSON file (a format
known by the DNR API as a "static ruleset").
JSON-based ruleset can be imported, the content will be converted
to YAML-like syntax.
The editor will attempt to convert to YAML pasted content which
can be JSON-parsed. It's possible to paste partially or wholly
JSON-based rulesets.
When disabling "Developer mode", all custom DNR rules will be
unregistered from the DNR API. The DNR rules content will be left
intact in such case. Existing DNR rules will be registered into
the DNR API when re-enabling "Developer mode".
Administrators can prevent "Developer mode" from being enabled
by adding `develop` token to `disabledFeatures` setting.
Related discussion:
https://github.com/uBlockOrigin/uBOL-home/discussions/323
The main motivation is to give list maintainers a tool to assist
with resolving filter issues. Custom DNR rules can assist in
crafting and validating filters meant to work with uBOL.
A secondary motivation is to provide technical users the ability
to further customize their content blocker.
More conveniences will be added over time, this is a first version.
2025-05-29 09:06:02 -04:00
|
|
|
mv3-safari: ubol-codemirror dist/build/uBOLite.safari
|
2025-04-19 13:08:59 -04:00
|
|
|
|
2022-11-14 09:50:53 -05:00
|
|
|
dist/build/uAssets:
|
|
|
|
tools/pull-assets.sh
|
2021-07-31 14:50:31 -04:00
|
|
|
|
2021-07-31 18:11:28 +05:30
|
|
|
clean:
|
2025-01-10 11:08:54 -05:00
|
|
|
rm -rf dist/build tmp/node_modules node_modules
|
2021-08-15 15:47:40 -04:00
|
|
|
|
2024-02-25 18:27:07 -05:00
|
|
|
cleanassets:
|
|
|
|
rm -rf dist/build/mv3-data dist/build/uAssets
|
2021-08-15 15:47:40 -04:00
|
|
|
|
2025-09-04 09:51:02 -04:00
|
|
|
# Usage: make publish-publish version=?
|
2025-08-25 15:10:36 -04:00
|
|
|
publish-chromium:
|
2025-09-04 09:51:02 -04:00
|
|
|
node publish-extension/publish-chromium.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=chromium \
|
|
|
|
storeid=cjpalhdlnbpafiamejdnhcphjbkeiagm
|
|
|
|
|
|
|
|
# Usage: make publish-edge version=?
|
2025-08-25 15:10:36 -04:00
|
|
|
publish-edge:
|
2025-09-04 09:51:02 -04:00
|
|
|
node publish-extension/publish-edge.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=chromium \
|
|
|
|
datebasedmajor=1 \
|
|
|
|
storeid=odfafepnkmbhccpbejgmiehpchacaeak \
|
2025-09-20 09:21:14 -04:00
|
|
|
productid=$(shell secret-tool lookup token ubo_edge_id)
|
2025-09-04 09:51:02 -04:00
|
|
|
|
|
|
|
# Usage: make publish-firefox version=?
|
|
|
|
publish-firefox:
|
|
|
|
node publish-extension/publish-firefox.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=firefox \
|
|
|
|
storeid=uBlock0@raymondhill.net \
|
|
|
|
channel=listed
|
|
|
|
|
|
|
|
# Usage: make publish-dev-chromium version=?
|
|
|
|
publish-dev-chromium:
|
|
|
|
node publish-extension/publish-chromium.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=chromium \
|
|
|
|
storeid=cgbcahbpdhpcegmbfconppldiemgcoii
|
|
|
|
|
|
|
|
# Usage: make publish-dev-firefox version=?
|
|
|
|
publish-dev-firefox:
|
|
|
|
node publish-extension/publish-firefox.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=firefox \
|
|
|
|
storeid=uBlock0@raymondhill.net \
|
|
|
|
channel=unlisted \
|
2025-09-06 10:22:45 -04:00
|
|
|
updatepath=./dist/firefox/updates.json
|
2025-09-04 09:51:02 -04:00
|
|
|
|
|
|
|
# Usage: make upload-firefox version=?
|
|
|
|
upload-firefox:
|
|
|
|
node publish-extension/upload-firefox.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=firefox \
|
|
|
|
storeid=uBlock0@raymondhill.net \
|
|
|
|
channel=listed
|
|
|
|
|
|
|
|
# Usage: make upload-dev-firefox version=?
|
|
|
|
upload-dev-firefox:
|
|
|
|
node publish-extension/upload-firefox.js \
|
|
|
|
ghowner=gorhill \
|
|
|
|
ghrepo=uBlock \
|
|
|
|
ghtag=$(version) \
|
|
|
|
ghasset=firefox \
|
|
|
|
storeid=uBlock0@raymondhill.net \
|
|
|
|
channel=unlisted \
|
2025-09-06 10:22:45 -04:00
|
|
|
updatepath=./dist/firefox/updates.json
|
2025-08-25 15:10:36 -04:00
|
|
|
|
2021-08-15 15:47:40 -04:00
|
|
|
# Not real targets, just convenient for auto-completion at shell prompt
|
|
|
|
compare:
|
|
|
|
@echo
|
|
|
|
maxcost:
|
|
|
|
@echo
|
2021-08-29 08:58:20 -04:00
|
|
|
medcost:
|
|
|
|
@echo
|
2021-08-15 15:47:40 -04:00
|
|
|
mincost:
|
|
|
|
@echo
|
2021-08-17 12:48:39 -04:00
|
|
|
modifiers:
|
|
|
|
@echo
|
2021-08-15 15:47:40 -04:00
|
|
|
record:
|
|
|
|
@echo
|
|
|
|
wasm:
|
|
|
|
@echo
|