diff options
-rw-r--r-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,4 +1,5 @@ # Copyright 2019 Google LLC +# Copyright 2021 Benjamin Barenblat # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of @@ -14,11 +15,11 @@ NAME = disable_keyboard_shortcuts -FILES = background.js manifest.json icon128.png icon48.png - -$(NAME).zip: $(FILES) +$(NAME).zip: background.js manifest.json icon128.png icon48.png mkdir $(NAME) - cp -al $(FILES) $(NAME) + uglifyjs background.js -m -o $(NAME)/background.js + jq -Sc . manifest.json >$(NAME)/manifest.json + cp -al icon128.png icon48.png $(NAME) zip -9r $(NAME) $(NAME) $(RM) -r $(NAME) |