Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Does not support addon #7

Open
BlackHole1 opened this issue Mar 17, 2020 · 0 comments
Open

Does not support addon #7

BlackHole1 opened this issue Mar 17, 2020 · 0 comments

Comments

@BlackHole1
Copy link

If there is addon in asar, it cannot be decompressed.

e.g: ps-list \ node-raw-socket

My asar contains these two packages, but after extracting them, the directory is empty:

I added some logs to the code, the code looks like this:

realPath := filepath.Join(target, path)
if entry.Flags&asar.FlagDir != 0 {
	return os.MkdirAll(realPath, 0755)
}
if entry.Flags&asar.FlagUnpacked != 0 {
	fmt.Println("x1")
	fmt.Println(path)
	fmt.Println(realPath)
	return nil
}

The output of the console is:

When I use electron/asar, there is no problem

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant