ci: frametap.exe を配布用にビルドする - #19
Merged
Merged
Conversation
system の DLL かどうかを名前の一覧で決めていたので、一覧に無い import は runner の System32 から解決されて dist/ に複製された。hid_probe は import が 4 つで全部一覧に 載っていたため露出していなかったが、eframe は opengl32.dll や dwmapi.dll を引く。 Windows の構成要素を Release に混ぜることになる。 解決した先が System32 の下かどうかで判定する。一覧を保守しなくても漏れない。 api-ms-win-* だけは実体のあるファイルとして解決されないことがあるため名前で残す。 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Owner
Author
run の結果4 点すべて確認した。
書き換えが要った証拠
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
変更内容
frametap.exeを release build する。RUSTFLAGSはhid_probeと同じ-C target-feature=+crt-staticframetap.exeとhid_probe.exeを同じ step で扱い、artifact をframetap-windows-x64にまとめるなぜ
実機で確かめられるのは Windows と DualSense を持つ人だけになる。手元では build も実行もできないので、CI が作った exe を Release に置いて渡したい。
判定を書き換えたのは、名前の一覧が漏れる形で壊れるため。
$systemDllNamesに載っていない import は PATH から解決され、そのままdist/に複製される。PATH にはSystem32が入るので、載せ忘れた OS の DLL は「見つかったから同梱した」という扱いになる。hid_probeは import が 4 つで全部一覧にあったため露出していなかった。eframeはopengl32.dllやdwmapi.dllを引く。解決した先が
System32の下かどうかで判定すれば、一覧の保守が要らなくなる。api-ms-win-*だけは名前で残す。OS の一部だが、実体のあるファイルとして解決されないことがある。検証
PowerShell は手元で走らせられないので、この PR の CI の run が検証になる。確かめるのは 4 つ。
frametap.exeの import が log に並び、System32配下のものが(system: ...)と出るdist/の中身がframetap.exeとhid_probe.exeの 2 つだけになるhid_probe.exeの判定結果が変わらない。前回の run ではapi-ms-win-core-synch-l1-2-0.dllkernel32.dllntdll.dlloleaut32.dllの 4 つがすべて system だったcrt-staticとeframeが両立する結果は run を読んでからこの PR に書く。
変えていないこと
Release への添付は CI に入れない。artifact を upload するところまでを CI が持ち、添付は
hid_probeのときと同じ手順で行う。tag を打つ条件をここで決めると、実機に渡す判断が CI の trigger に移る。Closes #15