mirror of
https://github.com/Quad4-Software/MeshChatX.git
synced 2026-08-18 09:49:09 -04:00
fix(sync_version): streamline version update in multiple language README files
This commit is contained in:
parent
c97c8ebb05
commit
7b7750da96
1 changed files with 5 additions and 9 deletions
|
|
@ -73,17 +73,13 @@ function patchFile(rel, fn) {
|
|||
patchFile("README.md", (c) => c.replace(/(Current version in this repo is `)[^`]+(`)/, `$1${version}$2`));
|
||||
|
||||
patchFile("lang/README.de.md", (c) =>
|
||||
c.replace(/(Aktuelle Version in diesem Repository: `)[^`]+(`)/, `$1${version}$2`),
|
||||
);
|
||||
patchFile("lang/README.it.md", (c) =>
|
||||
c.replace(/(Versione attuale nel repository: `)[^`]+(`)/, `$1${version}$2`),
|
||||
c.replace(/(Aktuelle Version in diesem Repository: `)[^`]+(`)/, `$1${version}$2`)
|
||||
);
|
||||
patchFile("lang/README.it.md", (c) => c.replace(/(Versione attuale nel repository: `)[^`]+(`)/, `$1${version}$2`));
|
||||
patchFile("lang/README.ja.md", (c) =>
|
||||
c.replace(/(このリポジトリの現在のバージョンは `)[^`]+(` です。)/, `$1${version}$2`),
|
||||
);
|
||||
patchFile("lang/README.ru.md", (c) =>
|
||||
c.replace(/(Текущая версия в репозитории: `)[^`]+(`)/, `$1${version}$2`),
|
||||
c.replace(/(このリポジトリの現在のバージョンは `)[^`]+(` です。)/, `$1${version}$2`)
|
||||
);
|
||||
patchFile("lang/README.ru.md", (c) => c.replace(/(Текущая версия в репозитории: `)[^`]+(`)/, `$1${version}$2`));
|
||||
patchFile("lang/README.zh.md", (c) => c.replace(/(本仓库当前版本: `)[^`]+(`)/, `$1${version}$2`));
|
||||
|
||||
patchFile("docs/meshchatx_on_raspberry_pi.md", (c) => {
|
||||
|
|
@ -92,7 +88,7 @@ patchFile("docs/meshchatx_on_raspberry_pi.md", (c) => {
|
|||
x = x.replace(/Direct example \(v\d+\.\d+\.\d+\):/, `Direct example (v${version}):`);
|
||||
x = x.replace(
|
||||
/releases\/download\/v\d+\.\d+\.\d+\/reticulum_meshchatx-\d+\.\d+\.\d+-py3-none-any\.whl/,
|
||||
`releases/download/v${version}/reticulum_meshchatx-${version}-py3-none-any.whl`,
|
||||
`releases/download/v${version}/reticulum_meshchatx-${version}-py3-none-any.whl`
|
||||
);
|
||||
return x;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue