A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
fix(gates): the signing-mechanism rule can read a Windows checkout
yhhdcb7ac2fe17c
diff --git a/tools/check-workflows.mjs b/tools/check-workflows.mjsindex 0c2cf2f20..f5a59a25b 100644--- a/tools/check-workflows.mjs+++ b/tools/check-workflows.mjs@@ -213,8 +213,10 @@ if (shellViolations.length > 0) {const RELEASE_WF = 'release-desktop.yml';const signing = [];if (existsSync(path.join(WORKFLOWS, RELEASE_WF))) {+ // Newlines are read as \r?\n: a Windows checkout carries CRLF, and a rule that+ // cannot see the step reports it MISSING — the loudest way to be wrong.const text = readFileSync(path.join(WORKFLOWS, RELEASE_WF), 'utf8');- const keychain = /- name: Stand up the signing keychain\n\s+if: ([^\n]+)/.exec(text);+ const keychain = /- name: Stand up the signing keychain\r?\n\s+if: ([^\r\n]+)/.exec(text);if (!keychain) {signing.push('no "Stand up the signing keychain" step — the signing mechanism cannot be located');} else if (/event_name/.test(keychain[1])) {