增加解码宽松模式

This commit is contained in:
2025-10-23 21:50:30 +08:00
parent f3062b422e
commit 1d3db9278d
4 changed files with 186 additions and 10 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ func main() {
}
defer file.Close()
root, err := asar.Decode(file)
root, err := asar.DecodeWithOptions(file, asar.DecodeOptions{
StrictValidation: false,
})
if err != nil {
fmt.Fprintf(os.Stderr, "asar: %s\n", err)
os.Exit(1)