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
3
votes
1 answer

Cannot write data into the sqlite db file inside asar archive in electron app

var fs = require('fs'); var SQL = require('sql.js'); var filebuffer = fs.readFileSync('./resources/app.asar/app/data/sample.db'); var db = new SQL.Database(filebuffer); function save_data(){ var…
sri vignes
  • 163
  • 1
  • 2
  • 8
2
votes
0 answers

How could I use asarmor in electron-forge?

How could I use asarmor in electron-forge? I want to use asarmor to make my electron app more stronger,How could I do with the electron-forge?
radiorz
  • 1,459
  • 4
  • 18
  • 36
2
votes
0 answers

Electron: Should I still consider asar if I am already using a bundler (Webpack)?

The electron-packager docs mention three reasons why I might want to consider packaging my app into an asar archive (the Electron-specific archive format): Avoid issues with long path names on Windows Speed up require() calls in my code Make it…
2
votes
1 answer

React Electron App built with asar on gitlab runner creates JavaScript errors

i will just start my question a little bit structured: background information I am developing a React App with Electron on my Mac. The customer uses this app on Windows 7 and 10. The app is packaged with asar on a gitlab runner within a…
Philipp Schemel
  • 943
  • 8
  • 19
2
votes
5 answers

Electron modify file store in .asar

I would like, from the Electron index.html file, to modify a config file present in the.asar of my application. In my case I need to change, if necessary, my application database config in order to work. I understood that .asar is in readOnly and I…
Syno
  • 21
  • 1
  • 5
2
votes
3 answers

Copy asar file using NodeJS file system (fs)

My goal is to copy a .asar file using NodeJS's file system. I have a file path and need to copy the .asar file to another destination. Example of file path: C:/Users/redacted/Documents/ExampleElectronApp/example.asar I need to copy this file…
Adam Mikacich
  • 137
  • 1
  • 1
  • 13
2
votes
1 answer

Executing a script inside an ASAR archive

I am attempting to run a script that is archived inside an ASAR file like so: var spawn = require('child_process').spawn; var t = spawn('node', ['./bundle.asar/main.js'], {}); t.on('data', function(data){ …
Unforgiven
  • 321
  • 2
  • 16
2
votes
1 answer

Packaging app With Electron and Asar

I have this weird problem, I'm trying to make the website work offline (elearning course made with Adapt), so I've created the Electron App wrapper: main.js creates the BrowserWindow which then loads index.html function createWindow() { //…
Lukasz 'Severiaan' Grela
  • 6,078
  • 7
  • 43
  • 79
1
vote
1 answer

electron-builder application cannot find node-gyp compiled *.node module

I want to run an express server backend from the electron main thread, which uses a C++ module compiled with node-gyp (called BackendCppNode.node). The backend script includes the module using const backendCpp = require('./BackendCppNode.node').…
Dirk
  • 21
  • 3
1
vote
1 answer

How to unlock an asar file that's being used by that same application?

I have an asar file that is read from an electron app. From the same app, I want to delete this asar file, however I keep getting an EBUSY error. I have found only two places where this asar file is read: A file protocol. It reads a file that is in…
12944qwerty
  • 2,001
  • 1
  • 10
  • 30
1
vote
1 answer

Electron-builder doesnt generate dist files

I'm trying to build an installer with electron-builder but every time I generate the installer and install my application, I get an error that "dist/index" doesn't exist in .asar file. I checked and no dist file is packed inside .asar. The error I'm…
Dev Minty
  • 64
  • 6
1
vote
1 answer

Electron/Netralinojs source source code "protection"

I am evaluating which framework to create a desktop app. A requirement I have is that the source code "protection" (no one should see the original source code). For Neautrlinojs I have found…
Filo
  • 2,829
  • 1
  • 21
  • 36
1
vote
0 answers

problem extracting an app.asar file using the asar command

I am new to Electron and want to make (at first) a sample javascript change in the Slack Electron app. I am here on a Mac OSX: /Applications/Slack.app/Contents/Resources and run the following: asar extract app.asar ~/Desktop/src And then without…
Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
1
vote
2 answers

ReferenceError: BigInt is not defined Asar Electron Nodejs

Hello have been trying to extract and repack an app.asar to update files inside the package : await asar.extractAll(path.join(__dirname, './app.asar'),path.join(__dirname, './destfolder')); Then changing some files in destfolder then await…
Papou SC
  • 21
  • 1
  • 7
1
vote
0 answers

How do I read decomplied Electron ASAR?

I decompiled an Electron app using this article When I went through the code, it didn't look complete. So this is one of the js files. I have no idea if its encrypted or not or how to even read it. I tried prettifying the js here, but why does it…
Little Ball
  • 5,728
  • 3
  • 7
  • 26