Skip to content

Commit b0a0fed

Browse files
committed
Merge PR #840 from '6.x-proposal'
2 parents a416c96 + 5a87588 commit b0a0fed

File tree

5 files changed

+38
-15
lines changed

5 files changed

+38
-15
lines changed

docs/release-notes/release-notes-6.x.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@ a plugin. Configurations with `wallet-` prefix will be passed to the wallet.
7676
- \[[`2bb8f0b0`](https://github.com/handshake-org/hsd/commit/2bb8f0b0)] - [#810](https://github.com/handshake-org/hsd/pull/810) - **docs**: Minor doc fix about release docs (@nodech - Nodari Chkuaselidze)
7777
- \[[`6b47c3a0`](https://github.com/handshake-org/hsd/commit/6b47c3a0)] - [#805](https://github.com/handshake-org/hsd/pull/805) - **net**: update last checkpoint. (@nodech - Nodari Chkuaselidze)
7878
- \[[`008374ca`](https://github.com/handshake-org/hsd/commit/008374ca)] - [#800](https://github.com/handshake-org/hsd/pull/800) - **docs**: backport v5.0.0 release notes. (@nodech - Nodari Chkuaselidze)
79+
- \[[`500d638d`](https://github.com/handshake-org/hsd/commit/500d638d)] - [#838](https://github.com/handshake-org/hsd/pull/838) - **scripts**: Update hs-client generator. (@nodech - Nodari Chkuaselidze)
7980

8081
[hs-client]: https://github.com/handshake-org/hs-client

docs/release-schedule.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,7 @@ Maintenance period
66
| v3.x | 2021-10-14 | 2022-10-31 | 2023-04-30 |
77
| v4.x | 2022-04-30 | 2023-04-30 | 2023-10-31 |
88
| v5.x | 2023-01-19 | 2023-10-31 | 2024-04-30 |
9-
| v6.x | 2023-04-30 | 2024-04-30 | 2024-10-31 |
10-
| v7.x | 2023-10-31 | after v9.0 | after v10.0 |
9+
| v6.x | 2023-08-10 | 2024-04-30 | 2024-10-31 |
10+
| v7.x | 2024-04-30 | 2024-10-31 | 2024-04-30 |
11+
| v8.x | 2024-10-31 | 2025-04-30 | 2025-10-31 |
12+
| v9.x | 2025-04-30 | 2025-10-30 | 2026-04-30 |

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hsd",
3-
"version": "6.0.0-rc.1",
3+
"version": "6.0.0",
44
"description": "Cryptocurrency bike-shed",
55
"license": "MIT",
66
"repository": "git://github.com/handshake-org/hsd.git",

scripts/gen-hsclient.js

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ const COPY_FILES = [
6262
'bin/hsw-rpc',
6363
'lib/client/index.js',
6464
'lib/client/wallet.js',
65-
'lib/client/node.js'
65+
'lib/client/node.js',
66+
'LICENSE',
67+
'SECURITY.md'
6668
];
6769

6870
const README = `
@@ -139,22 +141,36 @@ async function setupPackageContent(dir) {
139141
return hsClientPkg;
140142
}
141143

142-
async function setupGit(dir, version, log) {
144+
async function setupGit(dir, log) {
143145
const commands = [
144146
'git init -b master',
145147
`git remote add origin ${REMOTE}`,
148+
'git fetch -q origin master',
149+
'git pull -q origin master',
150+
'git rm -r .'
151+
];
152+
153+
log('Setting up git: ', dir);
154+
155+
for (const cmd of [...commands]) {
156+
log(` > ${cmd} in ${dir}.`);
157+
log(await execCmd(cmd, dir, 20000));
158+
commands.shift();
159+
}
160+
}
161+
162+
async function finalGit(dir, version, log) {
163+
const commands = [
146164
'git add .',
147165
`git commit --gpg-sign -m "v${version}"`,
148166
`git tag --sign v${version} -m "v${version}"`
149167
];
150168

151169
const manualCommands = [
152-
'git push -f origin master',
153-
`git push -f origin v${version}`
170+
'git push origin master',
171+
`git push origin v${version}`
154172
];
155173

156-
log('Setting up git: ', dir);
157-
158174
for (const cmd of [...commands]) {
159175
log(` > ${cmd} in ${dir}.`);
160176

@@ -199,16 +215,20 @@ async function setupGit(dir, version, log) {
199215

200216
const pkgDir = await ensureDir(dir);
201217

218+
if (!noSteps && !noGit)
219+
await setupGit(pkgDir, log);
220+
202221
log(`Copying files to ${pkgDir}...`);
203222
const pkg = await setupPackageContent(pkgDir);
204-
let gitNext = null;
205-
206-
if (!noGit)
207-
gitNext = await setupGit(pkgDir, pkg.version, log);
208223

209224
if (noSteps)
210225
return;
211226

227+
let gitNext;
228+
229+
if (!noGit)
230+
gitNext = await finalGit(pkgDir, pkg.version, log);
231+
212232
console.log(`Generated ${pkgDir}.`);
213233
console.log('Next steps:');
214234
console.log(` $ cd ${pkgDir}`);

0 commit comments

Comments
 (0)