-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Makefile to check if 127.0.0.1 is in config.js before creating…
… a zip file
- Loading branch information
Showing
3 changed files
with
10 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,8 @@ | |
*.log | ||
|
||
.idea/ | ||
.vscode/ | ||
node_modules/ | ||
crx/ | ||
package-lock.json | ||
crx/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
ZIP_FILENAME = ../ubuku_crx.zip | ||
ZIP_FILENAME = unblock_youku_crx.zip | ||
INCLUDED_FILES = manifest.json chrome shared _locales COPYING.txt | ||
EXCLUDED_FILES = _locales/backup* | ||
|
||
GREP_RESULT = $(shell grep --quiet "127\.0\.0\.1" chrome/config.js; echo $$?) | ||
|
||
.PHONY: zip | ||
zip: | ||
ifeq ($(GREP_RESULT), 0) | ||
@echo "Remove 127.0.0.1 from chrome/config.js and try again" | ||
else | ||
rm -rf $(ZIP_FILENAME) | ||
zip -9 -r $(ZIP_FILENAME) $(INCLUDED_FILES) -x=$(EXCLUDED_FILES) | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters