electron-version-deployer-cli 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.cjs
CHANGED
|
@@ -278,7 +278,7 @@ async function genChangelog(configs) {
|
|
|
278
278
|
headerIds: false
|
|
279
279
|
})
|
|
280
280
|
);
|
|
281
|
-
const allChanges = changes.map((change) => {
|
|
281
|
+
const allChanges = changes.versions.map((change) => {
|
|
282
282
|
const { date: date2, version: version2, title: title2, body: body2 } = change;
|
|
283
283
|
return {
|
|
284
284
|
date: date2,
|
|
@@ -303,7 +303,7 @@ async function genChangelog(configs) {
|
|
|
303
303
|
"utf-8"
|
|
304
304
|
);
|
|
305
305
|
const changelogTemplate = node_fs.readFileSync(
|
|
306
|
-
|
|
306
|
+
node_path.join(node_path.resolve(__dirname), "templates", "changelogs.html"),
|
|
307
307
|
"utf-8"
|
|
308
308
|
);
|
|
309
309
|
node_fs.writeFileSync(
|
|
@@ -637,4 +637,4 @@ async function installPrebuilt(configs) {
|
|
|
637
637
|
}
|
|
638
638
|
commander.program.description(
|
|
639
639
|
"Electron 版本部署 CLI,简化你的 Electron 软件更新,让一切变得简单。"
|
|
640
|
-
).helpOption("-h, --help", "使用帮助").version("0.2.
|
|
640
|
+
).helpOption("-h, --help", "使用帮助").version("0.2.1", "-V, --version", "显示版本号").parse(process.argv);
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
<title>Changelogs</title>
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
|
-
<div
|
|
13
|
+
<div
|
|
14
|
+
id="container"
|
|
15
|
+
style="margin: 0 auto; max-width: 960px; padding-top: 24px"
|
|
16
|
+
></div>
|
|
14
17
|
</body>
|
|
15
18
|
|
|
16
19
|
<script>
|
|
@@ -19,7 +22,7 @@
|
|
|
19
22
|
let html = ``;
|
|
20
23
|
for (const change of changelogs) {
|
|
21
24
|
html += `<div class="item">`;
|
|
22
|
-
html += `<div class="title">${change.title}</div>`;
|
|
25
|
+
html += `<div class="title" style="font-weight: bold;font-size: 20px;margin-top: 8px">${change.title}</div>`;
|
|
23
26
|
html += `<div class="changes">${change.changes}</div>`;
|
|
24
27
|
html += `</div>`;
|
|
25
28
|
}
|