[Backport release-24.11] baidupcs-go: remove readonly config file generated during version check phase (#356348)

This commit is contained in:
Lin Jian 2024-11-16 13:58:15 +08:00 committed by GitHub
commit c087b75317
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,14 @@ buildGo122Module rec {
doInstallCheck = true;
versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}";
postInstall = ''
rm -f $out/bin/AndroidNDKBuild
'';
postVersionCheck = ''
rm -f $out/bin/pcs_config.json
'';
meta = {
mainProgram = "BaiduPCS-Go";
maintainers = with lib.maintainers; [ xddxdd ];