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
- r("public/templates/changelogs.html"),
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.0", "-V, --version", "显示版本号").parse(process.argv);
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 id="container"></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
  }
@@ -122,7 +122,7 @@
122
122
  <a
123
123
  href="#"
124
124
  class="see-all-changes"
125
- style="text-decoration: underline; font-size: 12px"
125
+ style="text-decoration: underline; font-size: 14px"
126
126
  >(所有版本更新记录)</a
127
127
  >
128
128
  </div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "electron-version-deployer-cli",
3
3
  "private": false,
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.cjs.js",
7
7
  "module": "./dist/index.es.js",