Questions tagged [asar]

asar - Atom-Shell Archive Simple extensive tar-like archive format with indexing

asar - Atom-Shell Archive

Asar is a simple extensive archive format, it works like tar that concatenates all files together without compression, while having random access support.

55 questions
0
votes
1 answer

Packaging Electron app into ASAR causes module not found error

I am having an issue packing my application into a single .asar file. I am using electron-builder to initiate packing of the .asarfile. If I do not package the app into an asar, it works as expected if I unpack the generated asar, it also works as…
Brian
  • 6,910
  • 8
  • 44
  • 82
0
votes
1 answer

How to pack app using Asar but exclude Electron

I want to just pack my Electron application to an asar archive, but without the devDependencies declared in package.json. Actually the only thing I don't need to be packaged to the asar archive is "node_modules/electron", so according to the docs…
Bob Vandevliet
  • 213
  • 3
  • 14
0
votes
1 answer

NodeJS + electron paths

I'm trying to figure out how to predict paths within the code in an electron packaged app with asar flag. Using windows (one exe file) and mac (one .app package folder) - each finally includes an asar file, to contain the node scripts. I want to…
BananaAcid
  • 3,221
  • 35
  • 38
0
votes
1 answer

How package node addon into asar archive with electron-packager?

How can I add node addon (which is used in renderer process!) into asar archive with electron-packager? Webpack generate files: ./dist bundle.js addon.node index.html main.css And then after: electron-packager ./ --out=./builds…
jBeliar
  • 21
  • 1
  • 4
0
votes
1 answer

electron packaged into asar target windows , config json with api key setting, is safe?

If an app is packaged with asar and the electron app uses a settings json file that I created that includes api key info... is this is a terrible idea related to security? How hard is it for someone to view this json file in plain-text?
jremi
  • 2,879
  • 3
  • 26
  • 33
0
votes
0 answers

Connection mysql credentials ElectronJs

I am currently using Mysql in my electron application, so I started to verify the .asar file when I compiled it, I could see that all the application code is shown, so I think the Mysql connection would be very vulnerable, there is some way to…
0
votes
1 answer

Different behaviour between 'npm run' command and windows console

Here's a weird problem I'm suffering for days. I need to create an asar packed file, done with electron "asar" command, like this: c:/asar pack app app.asar That packs my "app" folder into a packed file "app.asar". Thats running OK. The goal I need…
Jordi Flores
  • 2,080
  • 10
  • 16
0
votes
1 answer

Save Lokijs DB in Electron

there is some way from inside the "main.js" electron to save a file out of the asar? I'm fighting with this command to point the way out of the write-only area but I can not do it. It would be nice that the path was inside /my-project/resources/…
XaBerr
  • 350
  • 3
  • 19
-1
votes
1 answer

How to encrypt ASAR archives?

Is there any possibility to encrypt an ASAR package so that possibly malicious actors cannot reverse-engineer my application in virtually no time? So far, I have not found any information on this whatsoever.
-1
votes
1 answer

Electron.js \app.asar\node_modules\{modulename}\bin\file.exe not found

I'm working on electron.js application with vue cli. I want to use handbrake-js which uses handbrakeCLI to encode files. handbrake.js is working great but after i spawn, it causes HandbrakeCLINotFound: HandbrakeCLI application not found:…
1 2 3
4