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

Invalid or incompatible cached data (cachedDataRejected) #558

Open
4 tasks done
qiyaozu opened this issue Jul 10, 2024 · 9 comments
Open
4 tasks done

Invalid or incompatible cached data (cachedDataRejected) #558

qiyaozu opened this issue Jul 10, 2024 · 9 comments

Comments

@qiyaozu
Copy link

qiyaozu commented Jul 10, 2024

Describe the bug

electon version 31.1.0
本地 node version: 20.14.0

使用了bytecodePlugin 在mac上打包加密没问题,在win上打包后,无法打开程序
image

Electron-Vite Version

2.0.0

Electron Version

31.1.0

Vite Version

5.0.12

Validations

@qiyaozu qiyaozu closed this as completed Jul 10, 2024
@qiyaozu qiyaozu reopened this Jul 10, 2024
@qiyaozu
Copy link
Author

qiyaozu commented Jul 10, 2024

image
image

@alex8088
Copy link
Owner

在Windows上打包吗

@qiyaozu
Copy link
Author

qiyaozu commented Jul 10, 2024

在Windows上打包吗

是的

@qiyaozu
Copy link
Author

qiyaozu commented Jul 10, 2024

假如我想打包之前,对主进程的代码进行混淆 该怎么做?

@qiyaozu
Copy link
Author

qiyaozu commented Jul 10, 2024

我试试prebuild

@qiyaozu
Copy link
Author

qiyaozu commented Jul 11, 2024

我在build之前,对代码进行javascript-obfuscator加密,加密完成后,程序可以正常打开,但是一些方法会找不到

@alex8088
Copy link
Owner

使用字节码的情况下,在增加混淆有何意义。不推荐,或者二选一

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

2 participants