You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.py
+31-11Lines changed: 31 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
# Change Logs:
22
22
# Date Author Notes
23
23
# 2018-5-28 SummerGift Add copyright information
24
+
# 2018-12-28 Ernest Chen Add package information and enjoy package maker
24
25
#
25
26
26
27
importos
@@ -79,17 +80,36 @@
79
80
80
81
'''
81
82
82
-
Package_json_file='''
83
-
{
84
-
"name": "${name}",
85
-
"description": "${description}",
86
-
"keywords": [
87
-
"${keyword}"
88
-
],
89
-
"site" : [
90
-
{"version" : "v${version}", "URL" : "https://${name}-${version}.zip", "filename" : "${name}-${version}.zip","VER_SHA" : "fill in the git version SHA value"},
91
-
{"version" : "latest", "URL" : "https://xxxxx.git", "filename" : "Null for git package","VER_SHA" : "fill in latest version branch name, such as master"}
92
-
]
83
+
Package_json_file='''{
84
+
"name": "${name}",
85
+
"description": "${description}",
86
+
"keywords": [
87
+
"${keyword}"
88
+
],
89
+
"category": "${pkgsclass}",
90
+
"author": {
91
+
"name": "${authorname}",
92
+
"email": "${authoremail}"
93
+
},
94
+
"license": "${license}",
95
+
"repository": "${repository}",
96
+
"icon": "unknown",
97
+
"homepage": "unknown",
98
+
"doc": "unknown",
99
+
"site": [
100
+
{
101
+
"version": "v${version}",
102
+
"URL": "https://${name}-${version}.zip",
103
+
"filename": "${name}-${version}.zip",
104
+
"VER_SHA": "fill in the git version SHA value"
105
+
},
106
+
{
107
+
"version": "latest",
108
+
"URL": "https://xxxxx.git",
109
+
"filename": "Null for git package",
110
+
"VER_SHA": "fill in latest version branch name, such as master"
0 commit comments