Hide source code from build executable in electron-app

user2386301

I am trying to package and distribute my app which is written in electron. I noticed that when the binaries build is completed, the local resource/source code are also exposed in the final built folder.

In the resource/app folder, you would have all your source code revealed to anyone who can access.

I am wondering if there's anyway to hide these information, and just deliver the built binary.

I am using Electron 1.2 and electron-packager 7.0.4

Jens Habegger

Beyond mini-/uglifying your js code (can still be viewed) and creating an .asar package (can be extracted) there is not a whole lot you can do to prevent the visibility of your code.

See also this post on the electron-packager github page:

theres nothing built in to electron to do that, so we don't support anything like that (since we only support what electron supports). you would have to implement that in your own module and run it on your code before using electron-packager -maxogden

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Hide source code from build executable in electron-app

From Dev

CMake: Is it possible to build an executable from only static libraries and no source?

From Dev

'Decimal' source code from Microsoft - will it build?

From Dev

Can't build Cassandra from source code

From Dev

build a cordova plugin for android from source code

From Dev

How to package an Electron app into a single executable?

From Dev

How to deploy an Electron app as an executable or installable in Windows?

From Dev

Hide Links in Source code

From Dev

Is NodeJS required for a build Electron App?

From Dev

Is there any open-source way to make a static from a dynamic executable with no source code availability?

From Dev

Is there any open-source way to make a static from a dynamic executable with no source code availability?

From Dev

From Object Code To executable

From Dev

How to hide element even from HTML source code?

From Dev

How to hide image path from source code using PHP

From Dev

Is there any way to hide a div from source code at runtime

From Dev

How to hide image path from source code using PHP

From Dev

Build Android from Source - Add Prebuilt App with Shared Library

From Dev

How to build a data source to access from flask app?

From Dev

Can't build json.me from the available source code

From Dev

SoapUI. Build from source code fails with "unresolved dependencies"

From Dev

Can't build SceneBuild from openjfx source code and setup

From Dev

How can I build KDE Dolphin from its source code?

From Dev

How to build libssl.a for iOS from source code?

From Dev

Can't build json.me from the available source code

From Dev

Can human-readable source code be recovered from a py2exe executable?

From Dev

Create separate object files from the same source code and link to an executable with CMake

From Dev

Create separate object files from the same source code and link to an executable with CMake

From Dev

Executable JAR file also contains the source code

From Dev

In which directory is shell source code and executable present?

Related Related

  1. 1

    Hide source code from build executable in electron-app

  2. 2

    CMake: Is it possible to build an executable from only static libraries and no source?

  3. 3

    'Decimal' source code from Microsoft - will it build?

  4. 4

    Can't build Cassandra from source code

  5. 5

    build a cordova plugin for android from source code

  6. 6

    How to package an Electron app into a single executable?

  7. 7

    How to deploy an Electron app as an executable or installable in Windows?

  8. 8

    Hide Links in Source code

  9. 9

    Is NodeJS required for a build Electron App?

  10. 10

    Is there any open-source way to make a static from a dynamic executable with no source code availability?

  11. 11

    Is there any open-source way to make a static from a dynamic executable with no source code availability?

  12. 12

    From Object Code To executable

  13. 13

    How to hide element even from HTML source code?

  14. 14

    How to hide image path from source code using PHP

  15. 15

    Is there any way to hide a div from source code at runtime

  16. 16

    How to hide image path from source code using PHP

  17. 17

    Build Android from Source - Add Prebuilt App with Shared Library

  18. 18

    How to build a data source to access from flask app?

  19. 19

    Can't build json.me from the available source code

  20. 20

    SoapUI. Build from source code fails with "unresolved dependencies"

  21. 21

    Can't build SceneBuild from openjfx source code and setup

  22. 22

    How can I build KDE Dolphin from its source code?

  23. 23

    How to build libssl.a for iOS from source code?

  24. 24

    Can't build json.me from the available source code

  25. 25

    Can human-readable source code be recovered from a py2exe executable?

  26. 26

    Create separate object files from the same source code and link to an executable with CMake

  27. 27

    Create separate object files from the same source code and link to an executable with CMake

  28. 28

    Executable JAR file also contains the source code

  29. 29

    In which directory is shell source code and executable present?

HotTag

Archive