Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] export nwjc? #20

Open
fritx opened this issue Nov 18, 2016 · 6 comments
Open

[feature request] export nwjc? #20

fritx opened this issue Nov 18, 2016 · 6 comments

Comments

@fritx
Copy link
Collaborator

fritx commented Nov 18, 2016

{
  "bin": {
    "nw": "nw"
    "nwjc": "nwjc" // <---
  }
}

I use nwjc to build production.

# export PATH=$PATH:~/.nwjs/0.12.3 # nwjc
alias nw12="nw use 0.12.3 && export PATH=~/.nwjs/0.12.3:$PATH"
alias nw14="nw use 0.14.7-sdk && export PATH=~/.nwjs/0.14.7-sdk:$PATH"
nw12
@egoist
Copy link
Owner

egoist commented Nov 18, 2016

I haven't been around nw.js for quite a while, what is nwjc? 😄

@fritx
Copy link
Collaborator Author

fritx commented Nov 18, 2016

Hahah... nwjc is a builtin cmd tool to turn *.js code into *.bin

https://github.com/nwjs/nw.js/wiki/Protect-JavaScript-source-code-with-v8-snapshot#sample-for-nwjc

Here is one of my blogposts 😂 http://blog.fritx.me/?2016/01/nwjs-code-protection/

// build
nwjc mytest.js mytest.bin

// js
require('nw.gui').Window.get().evalNWBin(null, 'mytest.bin');

@egoist
Copy link
Owner

egoist commented Nov 18, 2016

I'm adding you to the repo, feel free to do anything to improve it 🤔

@fritx
Copy link
Collaborator Author

fritx commented Nov 18, 2016

Thanks! My pleasure.

@ghost
Copy link

ghost commented Dec 14, 2016

@egoist @fritx having trouble using nwjc, did you implement it?

@namaljayathunga
Copy link

How can I use nwjc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants