Skip to content

Commit 9ef22e7

Browse files
committed
fix manifest
1 parent 7df79e9 commit 9ef22e7

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

Makefile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# 変数定義
2+
EXTENSION_NAME := amazon_affiliate_code_for_cocoon
3+
ZIP_NAME := $(EXTENSION_NAME).zip
4+
SOURCE_DIR := .
5+
6+
# デフォルトのターゲット
7+
all: clean package
8+
9+
# クリーンアップ
10+
clean:
11+
@echo "Cleaning up..."
12+
@rm -f $(ZIP_NAME)
13+
14+
# パッケージング
15+
package:
16+
@echo "Packaging extension..."
17+
@zip -r $(ZIP_NAME) $(SOURCE_DIR) \
18+
-x "*.git*" \
19+
-x "*.DS_Store" \
20+
-x "*Thumbs.db" \
21+
-x "Makefile" \
22+
-x "node_modules/*" \
23+
-x "doc/*" \
24+
-x "*.un~" \
25+
-x ".*" \
26+
-x "package*" \
27+
-x "README.md" \
28+
-x "*.zip"
29+
@echo "Package created: $(ZIP_NAME)"
30+
31+
# 検証
32+
verify:
33+
@echo "Verifying package..."
34+
@unzip -l $(ZIP_NAME)
35+
@echo "Verification complete."
36+
37+
# ヘルプ
38+
help:
39+
@echo "Available targets:"
40+
@echo " all : Clean and package the extension (default)"
41+
@echo " clean : Remove the ZIP file"
42+
@echo " package : Create the ZIP file"
43+
@echo " verify : List contents of the ZIP file"
44+
@echo " help : Show this help message"
45+
46+
.PHONY: all clean package verify help
47+

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "Amazon Affiliate Code Generator for Cocoon",
4-
"version": "1.0.1",
4+
"version": "1.0.5",
55
"description": "Generate affiliate link for Amazon products with keyword exclusion",
66
"permissions": ["activeTab", "clipboardWrite", "storage"],
77
"action": {
@@ -22,6 +22,6 @@
2222
],
2323
"options_page": "options/index.html",
2424
"content_security_policy": {
25-
"extension_pages": "script-src 'self' https://cdn.jsdelivr.net https://cdnjs.buymeacoffee.com; object-src 'self'"
25+
"extension_pages": "script-src 'self'; script-src-elem 'self' https://cdnjs.buymeacoffee.com; object-src 'self'"
2626
}
2727
}

0 commit comments

Comments
 (0)