mirror of
https://github.com/plebbit/seedit.git
synced 2026-02-08 04:50:57 -05:00
22 lines
1.0 KiB
JavaScript
22 lines
1.0 KiB
JavaScript
import {execSync} from 'child_process'
|
|
import path from 'path'
|
|
import {fileURLToPath} from 'url'
|
|
const dirname = path.join(path.dirname(fileURLToPath(import.meta.url)))
|
|
const conventionalChangelog = path.join(dirname, '..', 'node_modules', '.bin', 'conventional-changelog')
|
|
|
|
// sometimes release-count 1 is empty
|
|
let releaseChangelog =
|
|
execSync(`${conventionalChangelog} --preset angular --release-count 1`).toString() ||
|
|
execSync(`${conventionalChangelog} --preset angular --release-count 2`).toString()
|
|
|
|
// format
|
|
releaseChangelog = releaseChangelog.trim().replace(/\n\n+/g, '\n\n')
|
|
|
|
const releaseBody = `- Web app: https://seedit.app
|
|
- Mobile app: available for Android (APK). Download link under "Assets" ⬇️
|
|
- Desktop app (full P2P node, run your own community): available for Mac (.dmg), Windows (.exe), Linux (.AppImage). Download links under "Assets" ⬇️
|
|
- Command Line Interface (full P2P node, run your own community): https://github.com/plebbit/plebbit-cli/releases/latest
|
|
|
|
${releaseChangelog}`
|
|
|
|
console.log(releaseBody) |