dusionlike / electron-builder-encryptor Goto Github PK
View Code? Open in Web Editor NEWsimple electron package encryption tool
License: MIT License
simple electron package encryption tool
License: MIT License
ENOENT: no such file or directory, open 'C:\Users\tangx\Desktop\项目\yuelan_electron\yuelan\node_modules.electron-builder-encryptor\encryptor.config.js' failedTask=build stackTrace=Error: ENOENT: no such file or directory, open 'C:\Users\tangx\Desktop\项目\yuelan_electron\yuelan\node_mo
dules.electron-builder-encryptor\encryptor.config.js'
我的项目中引用了.node
文件,在未使用electron-builder-encryptor
前,打包后electron程序可正常运行,但使用后却提示出错,错误信息如下:
Uncaught Exception:
Error: The specified module could not be found.
\\?\C:\Users\Nardy\AppData\Local\Temp\9a606748-1d6f-4f6f-9b04-868284225d16.tmp.node
at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
at Module._extensions..node (node:internal/modules/cjs/loader:1259:18)
at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2049)
at Module.load (node:internal/modules/cjs/loader:1044:32)
at Module._load (node:internal/modules/cjs/loader:885:12)
at f._load (node:electron/js2c/asar_bundle:2:13330)
at Module.require (node:internal/modules/cjs/loader:1068:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (G:\Gitee\electron-vite\release\1.0.0\win-unpacked\resources\app.asar\node_modules\@jincan\iohook\index.cjs.js:4:21)
at Module._compile (node:internal/modules/cjs/loader:1174:14)
我检查过,在运行使用electron-builder-encryptor
生成的程序时,C:\Users\Nardy\AppData\Local\Temp\9a606748-1d6f-4f6f-9b04-868284225d16.tmp.node
这个文件是存在的
我的系统是:Windows 11
NodeJS版本: v19.6.1
Hello
I get these errors when I am trying to use this package:
X [ERROR] Could not resolve "./settings"
node_modules/.electron-builder-encryptor/main.js:233:41:
233 │ const { createSettingsWindow } = require('./settings')
X [ERROR] Could not resolve "./includes/AutoUpdate"
node_modules/.electron-builder-encryptor/main.js:234:31:
234 │ const { AutoUpdate } = require('./includes/AutoUpdate')
╵ ~~~~~~~~~~~~~~~~~~~~~~~
X [ERROR] Could not resolve "./includes/ConfigHandle"
node_modules/.electron-builder-encryptor/main.js:245:21:
245 │ var config = require('./includes/ConfigHandle');
Why it is so? Thank you in advance the answers.
electron-builder-encryptor/src/index.ts
Line 64 in 6bb9704
Currently, the executable path (execPath
) for the compileToBytenode()
function on MacOS builds is missing the "MacOS" subdirectory. For example:
// current:
"./release/mac-arm64/electron-builder-encryptor-demo.app/Contents/electron-builder-encryptor-demo"
// required:
"./release/mac-arm64/electron-builder-encryptor-demo.app/Contents/MacOS/electron-builder-encryptor-demo"
And thank you for this cool project, it is a very interesting idea!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.