Skip to content

Play your own Switch games on iPhone/iPad — one-click macOS app, no terminal. | 把 Switch 游戏装进 iPhone:图形界面一键构建,不用命令行。Bring your own game.

Triage: take the engine's own file names for file names, not hosts

sheepydc24be7acac8f
diff --git a/.github/scripts/tests/test_triage_apply.py b/.github/scripts/tests/test_triage_apply.py
index 10634351..fc7e3419 100644
--- a/.github/scripts/tests/test_triage_apply.py
+++ b/.github/scripts/tests/test_triage_apply.py
@@ -145,6 +145,8 @@ class Comment(unittest.TestCase):
def test_file_names_and_versions_are_not_hosts(self):
self.good('services.md, hle_svc.c:447, build_ipa.sh, v0.4.9, macOS 26.1, Node.js, nvn_dirty.c')
+ self.good('applegpu_g18p.mtl4a, 1234_b.metallib, RomFS.img, DmShell-2026-11-04.ips, main.npdm, save.dmsync, '
+ 'DmGame010013C00E930000.framework, DmShell.xcodeproj, DmShell.entitlements, game.xcz')
def test_issue_references_must_be_known(self):
for t in ('Possibly the same problem as #9999', 'see https://github.com/LNPANDY/NX2Apple/issues/9999', 'https://github.com/LNPANDY/NX2Apple/pull/12',
diff --git a/.github/scripts/triage_apply.py b/.github/scripts/triage_apply.py
index a4e91d2c..e8821297 100644
--- a/.github/scripts/triage_apply.py
+++ b/.github/scripts/triage_apply.py
@@ -39,7 +39,7 @@ REF_DEF = re.compile(r'^[ ]{0,3}\[[^\]\n]+\]:[ \t]*(\S*)', re.M)
INLINE_TARGET = re.compile(r'\]\(\s*<?([^)\s>]*)')
DOMAIN_LIKE = re.compile(r'(?<![\w@/-])[a-z0-9][a-z0-9_-]*(?:\.[a-z0-9][a-z0-9_-]*)+(?![\w-])', re.I)
# A dotted word is a file name, not a host, when its last part is one of these (or a number: 0.4.9, 26.1). Anything else is rejected.
-FILE_EXT = set('txt log md py sh swift c h m mm cpp hpp tsv json yml yaml toml plist zip pdf png jpg jpeg gif ipa nsp nsz xci nso nro js ts rs cs csv ini lock metal msl'.split())
+FILE_EXT = set('txt log md py sh swift c h m mm cpp hpp tsv json yml yaml toml plist zip pdf png jpg jpeg gif ipa nsp nsz xci nso nro js ts rs cs csv ini lock metal msl metallib mtl4a img ips nca npdm xcz dmsync framework xcodeproj xcworkspace entitlements'.split())
TRAIL = ')]>.,;:!*_\'"`'
ISSUE_REF = re.compile(r'(?<![\w&/])#(\d+)\b')
ISSUE_URL_NUM = re.compile(r'/(?:issues|pull|discussions)/(\d+)', re.I)