GithubHelp home page GithubHelp logo

Comments (10)

dusionlike avatar dusionlike commented on September 26, 2024

Emmm, I haven't considered this use case.
Currently only one entry file is supported, and the code needs to be packaged into a Bundle using a packager. (webpack, esbuild...)
🤔Maybe I can also pack it for you before encrypting.
I'll try to fix this tomorrow.

from electron-builder-encryptor.

StrangerGithuber avatar StrangerGithuber commented on September 26, 2024

Well no idea. I just made different js files to not having everything in one place when the app becomes big so this way I can see where are the functions which I am using.
Thank you in advance if you can fix it when you will have time.

from electron-builder-encryptor.

dusionlike avatar dusionlike commented on September 26, 2024

try v1.3.0

from electron-builder-encryptor.

StrangerGithuber avatar StrangerGithuber commented on September 26, 2024

Almost working perfectly.
Now I get this error:

X [ERROR] Could not read from file: E:\Projectek 2022\Launcher\Launcher Electron\launcher\releasetest\app\FileFunctions.js

releasetest/app/includes/AutoUpdate.js:2:51:
  2 │ const { ReadConfig, WriteConfigDefault } = require('./FileFunctions');

And it has problem with the path of the js './FileFunctions' .

from electron-builder-encryptor.

dusionlike avatar dusionlike commented on September 26, 2024

Almost working perfectly. Now I get this error:

X [ERROR] Could not read from file: E:\Projectek 2022\Launcher\Launcher Electron\launcher\releasetest\app\FileFunctions.js

releasetest/app/includes/AutoUpdate.js:2:51:
  2 │ const { ReadConfig, WriteConfigDefault } = require('./FileFunctions');

And it has problem with the path of the js './FileFunctions' .

try v1.3.1

from electron-builder-encryptor.

StrangerGithuber avatar StrangerGithuber commented on September 26, 2024

Sorry for the late answer. I worked therefore I didn't have time to test and answer.
I tried now and less and less errors coming up which is good however this time I get this error:

⨯ ENOENT: no such file or directory, stat 'E:\Projectek 2022\Launcher\Launcher Electron\launcher\release\app\includes\ConfigHandle.js'  failedTask=build stackTrace=Error: ENOENT: no such file or directory, stat 'E:\Projectek 2022\Launcher\Launcher Electron\launcher\release\app\includes\ConfigHandle.js'

If I have this in the electron-builder.json file then it has problem with the above file:

"afterPack": "node_modules/electron-builder-encryptor"

If I remove "afterPack": "node_modules/electron-builder-encryptor" then successfully building the project.

from electron-builder-encryptor.

dusionlike avatar dusionlike commented on September 26, 2024

Sorry for the late answer. I worked therefore I didn't have time to test and answer. I tried now and less and less errors coming up which is good however this time I get this error:

⨯ ENOENT: no such file or directory, stat 'E:\Projectek 2022\Launcher\Launcher Electron\launcher\release\app\includes\ConfigHandle.js'  failedTask=build stackTrace=Error: ENOENT: no such file or directory, stat 'E:\Projectek 2022\Launcher\Launcher Electron\launcher\release\app\includes\ConfigHandle.js'

If I have this in the electron-builder.json file then it has problem with the above file:

"afterPack": "node_modules/electron-builder-encryptor"

If I remove "afterPack": "node_modules/electron-builder-encryptor" then successfully building the project.

I can't reproduce the problem, can you provide a minimal reproduction or show your project directory structure?

from electron-builder-encryptor.

StrangerGithuber avatar StrangerGithuber commented on September 26, 2024

I uploaded to the github: https://github.com/StrangerGithuber/somethingtoprotect
You will need to npm install later if you want to test it later to pack. I couldn't upload the node_modules folder unfortunately.

from electron-builder-encryptor.

dusionlike avatar dusionlike commented on September 26, 2024

I uploaded to the github: https://github.com/StrangerGithuber/somethingtoprotect You will need to npm install later if you want to test it later to pack. I couldn't upload the node_modules folder unfortunately.

refer to this StrangerGithuber/somethingtoprotect#1

from electron-builder-encryptor.

StrangerGithuber avatar StrangerGithuber commented on September 26, 2024

Yep. It works now. Thank you for the huge help.

from electron-builder-encryptor.

Related Issues (6)

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.