docs: unity version

This commit is contained in:
元凛
2021-09-06 19:36:15 +08:00
parent ec5a128e11
commit 3b3e72d628
13 changed files with 120 additions and 110 deletions

View File

@@ -1,9 +1,7 @@
const { readFileSync, writeFileSync } = require('fs');
const { version } = JSON.parse(readFileSync('./package.json', 'utf-8'));
const last = /v2\.4\.1/g;
const now = `v${version}`;
const last = /v2\.4\.2/g;
const now = `v2`;
let readme = readFileSync('./README.md', 'utf-8');
readme = readme.replace(last, now);