GithubHelp home page GithubHelp logo

dusionlike / electron-builder-encryptor Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 8.0 383 KB

simple electron package encryption tool

License: MIT License

TypeScript 87.60% JavaScript 9.72% HTML 2.68%
electron electron-builder bytenode encrypt simple

electron-builder-encryptor's People

Contributors

dprice-covalent avatar dusionlike avatar spencer-jacobs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

electron-builder-encryptor's Issues

文件地址不存在

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
image
dules.electron-builder-encryptor\encryptor.config.js'
image

The specified module could not be found

我的项目中引用了.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

Use different files in const

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.

Missing 'MacOS' sub-directory in 'execPath' for Mac builds

let execPath = path.join(appOutDir, context.packager.appInfo.productFilename)

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.