baidupcs-go: remove readonly config file generated during version check phase

This commit is contained in:
Lan Tian 2024-11-15 18:52:52 -08:00
parent 2867f69e5c
commit 24f7069f46
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B

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 ];