#Hide app.asar.unpacked

25 messages · Page 1 of 1 (latest)

tender pine
#

I've used electron react boilerplate that uses electron-builder.

After build i can see that there is a folder app.asar.unpacked that contains node_modules and the native dependencies that i use, that are not added to app.asar, and users can actually see what packages i use, and i don't want that.
Is there a way to hide those?

rugged grotto
#

What is your electron-builder config?

fringe fable
#

No

#

Electron need to know what to run

rugged grotto
#

@fringe fable But when the files are built then node_modules is no longer needed, unless the unpacked folder is just the whole non-compiled project?

fringe fable
#

Native libraries must be extracted

#

Package.json also must be visible

rugged grotto
#

Ah yes okay, you get the unpack folder with the param asarUnpack, so yeah there is no point to hide these

tender pine
#

The thing is that i wanna hide the native libraries that i use from users

#

Because if the users see what native dependencies i use, the code obfuscation would be useless

#

Atleast they can struggle to deobfuscate

#

I thought it will go into app.asar that is already obfuscated

fringe fable
#

asar is not obfuscation

#

asar is a package

tender pine
#

i've used obfuscator inside app.asar

#

so now the code is obfuscated in app.asar

fringe fable
#

so?

#

native code should be outside of asar file

tender pine
#

ah..

fringe fable
#

this is nodejs limitation

#

every native code/binaries should be outside of asar

tender pine
#

so i can't do anything to hide it right?

fringe fable
#

you can extract it to other folder

#

but this is question to tool that extract it

#

asar itself dont do that