电子项目中如何保护源代码 [英] How to protect source code in electron project

查看:112
本文介绍了电子项目中如何保护源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我构建了我的第一个电子应用程序,但现在我想知道如何保护源代码以供其他开发人员查看。

I build my first electron app but now I wonder how to protect the source code to be view by other developers.

官方文档说:


为了保护用户的应用程序资源和源代码,您
可以选择将应用程序打包为一个$ ar $的asar归档文件b更改了源代码。

To protect your app's resources and source code from the users, you can choose to package your app into an asar archive with little changes to your source code.

到目前为止,我能想到的最好的就是 uglyfy 源代码-代码并将其打包为 asar 文件,但是 asar 文件只是一个存档,可以轻松提取。我不知道如何使您的代码受到用户的保护

So far the best I can think of is uglyfy the source-code and package it into a asar file, but the asar file is just an archive and can be easily be extracted. I don't see how having that make your code "protected from the user"

任何想法?

推荐答案

目前,尚无官方方法来对代码进行复制保护,对不起-如果您想这样做,则必须以自己的方式发明(或不必担心) )

There is no official way to copy-protect your code at the moment, sorry - if you want to do this, you'll have to invent your own way (or just not worry about it)

这篇关于电子项目中如何保护源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆