增加解码宽松模式
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user