File tree Expand file tree Collapse file tree 2 files changed +49
-2
lines changed Expand file tree Collapse file tree 2 files changed +49
-2
lines changed Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change 1
1
{
2
2
"manifest_version" : 3 ,
3
3
"name" : " Amazon Affiliate Code Generator for Cocoon" ,
4
- "version" : " 1.0.1 " ,
4
+ "version" : " 1.0.5 " ,
5
5
"description" : " Generate affiliate link for Amazon products with keyword exclusion" ,
6
6
"permissions" : [" activeTab" , " clipboardWrite" , " storage" ],
7
7
"action" : {
22
22
],
23
23
"options_page" : " options/index.html" ,
24
24
"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'"
26
26
}
27
27
}
You can’t perform that action at this time.
0 commit comments