Skip to content

Commit da3688b

Browse files
committed
Cleanup files that exist in Chromium binaries on Windows but are useless
1 parent a546d91 commit da3688b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/win/branding.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ package win
2323
import (
2424
"errors"
2525
"fmt"
26+
"strings"
2627

2728
"github.com/TeamDev-IP/Chromium-Branding/pkg/base"
2829
"github.com/TeamDev-IP/Chromium-Branding/pkg/common"
@@ -162,5 +163,16 @@ func (branding *WinBranding) Apply(params *common.BrandingParams, binariesDir ba
162163
}
163164
}
164165

166+
return removeSigFiles(binariesDir)
167+
}
168+
169+
func removeSigFiles(binariesDir base.Directory) error {
170+
for _, file := range binariesDir.ListFiles() {
171+
if strings.HasSuffix(file.AbsPath().Base(), ".sig") {
172+
if err := file.Remove(); err != nil {
173+
return err
174+
}
175+
}
176+
}
165177
return nil
166178
}

0 commit comments

Comments
 (0)