Closed StrangerGithuber closed 1 year ago
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.
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.
try v1.3.0
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' .
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
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.
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?
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.
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
Yep. It works now. Thank you for the huge help.
Hello I get these errors when I am trying to use this package:
Why it is so? Thank you in advance the answers.