Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

app.getAppPath() returns incorrect app root when mergeASARs: false #113

Closed
timfish opened this issue Nov 6, 2024 · 1 comment
Closed

Comments

@timfish
Copy link

timfish commented Nov 6, 2024

app.getAppPath() returns the path to the entry app.asar but it should return the path to the arch specific asar.

This could be fixed with the following code:

app.getAppPath = new Proxy(app.getAppPath, {
    apply: () => {
      return process._archPath;
    },
});
@timfish
Copy link
Author

timfish commented Nov 6, 2024

Sorry, I'm told this is fixed in the latest version!

@timfish timfish closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant