Trying to stop piracy through client-side technical means is always going to be a losing battle, becasue you can&#x27;t trust the client. But you can embed native modules in Electron apps, so you can do whatever you were planning to do in native code to &quot;verify&quot; the installation, and then load JS only after decrypting it in native code. Compiling your licensing &#x2F; decryption code for 3 platforms still beats having to maintain 3 copies of the whole app&#x27;s source.