Updater from public releases, English UI by default with Russian selectable, cancelable capture, English technical messages, language-independent smoke hooks
This commit is contained in:
1 parent
ba4c7ec2af
commit
1142c9f60d
53 files changed
+4005
-549
No files matched your search
@@ -1,5 +1,7 @@
|
||||
// On a tag build, refuses to continue unless the tag equals v<package.json version> and the core's
|
||||
// Cargo package version is the same. Branch/manual builds pass through.
|
||||
// Cargo package version is the same. A release candidate (package.json 0.1.2-rc.1) ships the core of
|
||||
// its target version (0.1.2), so for prerelease app versions the core must equal the version without
|
||||
// the prerelease part. Branch/manual builds pass through.
|
||||
// GITHUB_REF=refs/tags/v0.1.0 node scripts/check-version.mjs
|
||||
import { readFileSync } from 'node:fs';
|
||||
import path from 'node:path';
|
||||
@@ -10,7 +12,8 @@ const app = JSON.parse(readFileSync(path.join(root, 'package.json'), 'utf8')).ve
|
||||
const cargo = /^\[package\][\s\S]*?^version\s*=\s*"([^"]+)"/m.exec(readFileSync(path.join(root, 'core', 'Cargo.toml'), 'utf8'))?.[1];
|
||||
const ref = process.env.GITHUB_REF ?? '';
|
||||
console.log(`package.json ${app}, core Cargo.toml ${cargo}, ref ${ref || '(none)'}`);
|
||||
if (app !== cargo) {
|
||||
const rc = /^(\d+\.\d+\.\d+)-rc\.\d+$/.exec(app);
|
||||
if (app !== cargo && !(rc && rc[1] === cargo)) {
|
||||
console.error('package.json and core/Cargo.toml versions differ');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user