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
1
vote
0 answers

How to store or hide sensitive credentials in electron.js application

I'm making an electron application along with create-react-app for the frontend. The application requires an active MQTT connection. So, somewhere in my electron code, i have to include the credentials for accessing the MQTT broker. These…
Rishav Maskey
  • 191
  • 1
  • 8
1
vote
0 answers

After packaging an electron app (installed with -no--asar) child_process.spawn not working

I know that running a bin file with spawn doesn't work when packaging an electron app with asar on a mac. To go around that I run electron-packager with -no--asar and the app spawns processes just fine. Everything dies after running the…
Dominika
  • 13
  • 4
1
vote
1 answer

Electron nsis Installer x 64 not including node_modules?

I have an electron app that runs very smoothly both in dev and prod envs. I'm having issues with packaging a windows installer. Here's what I'm doing. $ npm install -> Postinstall will take care of installing native production dependencies. $ npm…
LSTM
  • 128
  • 8
1
vote
1 answer

Electron packaging - ASAR file error

I am packaging a Meteor app using Electrify (by extension the Electron-Packager). Since the node module paths are too deep for Windows to accept, I added '--asar=true' as a packaging option. Now when I try to start my packaged app, I get the…
Cos
  • 1,649
  • 1
  • 27
  • 50
0
votes
0 answers

Electron - copy file from extraFiles on desktop when an event occur

I have a python script that is copied with all the needed electron files during the build process using the extra files configuration. I need to get the file and copy it on the desktop when some operations are done by users, but due to a permission…
ICTDEV
  • 227
  • 1
  • 10
0
votes
0 answers

electron-builder packaged executable cannot find a user-written file saying no such file or directory

The file has no problem being found from the unpackaged version booted with "electron . ". Ex: the file is referenced in code as something like: "const some_package = require('./sample_folder/sample_file.js' ". (Obviously not the actual file names,…
ima_prog
  • 119
  • 1
  • 9
0
votes
0 answers

How to programmatically change the index.html and index.css in a electron app build by electron-builder

I have build an application in electron that has an open port that waits for configuration to be send. On my development environment once I send a configuration the index.html and index.css change the then the main window is reloaded. However, when…
Anestis Si
  • 23
  • 3
0
votes
0 answers

Electron asar Error 'ERR_INVALID_ARG_VALUE

I have a problem with electron asar, when I use the command asar extract app.asar source-code, in the resource folder of the compressed electron application, I get a source-code folder, which contains 10 files without extension, with a name made of…
0
votes
0 answers

Electron Package - asar unpack pattern not working

I need to exclude only the "package.json" from the root folder but at the moment all "package.json" files are unpacked (from node_modules ...) Electron v18 Electron Package v15.4.0 Windows script in package.json "scripts": { "package":…
tripower
  • 1
  • 2
0
votes
1 answer

Electron with @mikro-orm migration scripts with asar enabled

I am using @mikro-orm/migrations in my Electron app, I created migration files and want to run the database migrations in production mode, while at the same time, I also want to enable asar packaging in Electron to improve the app launch speed. If I…
Hao Xi
  • 351
  • 4
  • 12
0
votes
1 answer

Package only certain directories with asar in an Electron application

I have an Electron application where I am trying to use asar to package the node_modules and sources directories excluding the other directories. I noticed when building the application with asar enabled, the whole app directory is packaged. This is…
Joost Baars
  • 84
  • 10
0
votes
0 answers

Why electron app is not able to find correct path to a R file when packaged with asar flag?

I'm trying to call R from JS in an electron app, which console logs the R version and pwd. It works perfectly when packaged without the asar flag using both electron-builder and electron-packager (see the following screenshot) However, when I build…
Wasim Aftab
  • 638
  • 1
  • 8
  • 16
0
votes
0 answers

How to protect database password in Electorn Application?

In Electron, Asar can be unpacked, so users can see the source code. But if the project is using a database, users can see the database password, even if we make a .env file. Is there a way to protect the database password?
dwsong07
  • 53
  • 2
  • 7
0
votes
1 answer

Electron App with Vue and vue-cli-plugin-electron-builder can't working with Tesseract.js

I have created a project with vue-service-cli. After trying to use tesseract OCR but I can't load lang.traineddata locally and remotely. I have tried examples (they work) from tesseract.js repo and other many ways but with no result. When I try to…
Vanpe
  • 1
  • 1
  • 3
0
votes
0 answers

Is there a way to move the complete resources folder to the profile and then point Electron to it?

I need to move a few files to the profile, since these files should be manipulated without admin priviliges, while installing the application per machine. When I just move the specific files, it breaks all the relative paths of my code, especially…
neolith
  • 699
  • 1
  • 11
  • 20