Skip to content

Commit a1e49ed

Browse files
committed
release nodec v1.0.0
1 parent 9742ae9 commit a1e49ed

File tree

4 files changed

+25
-15
lines changed

4 files changed

+25
-15
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
- remove the `ENCLOSE_IO_ALWAYS_USE_ORIGINAL_NODE` hack
1414
- add auto-update feature via --auto-update-url and --auto-update-base
1515

16+
中文注解:
17+
- 升级 Node.js 运行时到 8.0.0
18+
- 升级 libsquash 到 v0.4.0
19+
- 支持使用 node-sass 等 C++ 扩展模块
20+
- 支持编译 Egg 等框架开发的 Web 应用
21+
- 支持执行包内的可执行文件,如 PhantomJS
22+
- 支持包分发后原地自动更新
23+
1624
## v0.9.6
1725

1826
- relax node.js version requirement: https://github.com/pmq20/node-compiler/issues/27

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Compiling your Node.js application into a single executable.
1313

1414
| | Arch. | Latest Stable |
1515
|:---------------------:|:--------:|----------------------------------------------------------------------------------------|
16-
| **Windows** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec.exe/download |
17-
| **macOS** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec-darwin-x64/download |
18-
| **Linux** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec-linux-x64/download |
16+
| **Windows** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-x64.exe/download |
17+
| **macOS** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-darwin-x64/download |
18+
| **Linux** | x86-64 | https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-linux-x64/download |
1919

2020
## How it works
2121

@@ -25,13 +25,13 @@ Compiling your Node.js application into a single executable.
2525

2626
### Comparing with Similar Projects
2727

28-
| Project | Differences |
29-
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
28+
| Project | Differences |
29+
|:----------------------------------------:|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
3030
| [pkg](https://github.com/zeit/pkg) | Pkg hacked `fs.*` API's dynamically in order to access in-package files, whereas Node.js Compiler leaves them alone and instead works on a deeper level via [libsquash](https://github.com/pmq20/libsquash). Pkg uses JSON to store in-package files while Node.js Compiler uses the more sophisticated and widely used SquashFS as its data structure. |
31-
| [EncloseJS](http://enclosejs.com/) | EncloseJS restricts access to in-package files to only five `fs.*` API's, whereas Node.js Compiler supports all `fs.*` API's. EncloseJS is proprietary licensed and charges money when used while Node.js Compiler is MIT-licensed and users are both free to use it and free to modify it. |
32-
| [Nexe](https://github.com/nexe/nexe) | Nexe does not support dynamic `require` because of its use of `browserify`, whereas Node.js Compiler supports all kinds of `require` including `require.resolve`. |
33-
| [asar](https://github.com/electron/asar) | Asar keeps the code archive and the executable separate while Node.js Compiler links all JavaScript source code together with the Node.js virtual machine and generates a single executable as the final product. Asar uses JSON to store files' information while Node.js Compiler uses SquashFS. |
34-
| [AppImage](http://appimage.org/) | AppImage supports only Linux with a kernel that supports SquashFS, while Node.js Compiler supports all three platforms of Linux, macOS and Windows, meanwhile without any special feature requirements from the kernel. |
31+
| [EncloseJS](http://enclosejs.com/) | EncloseJS restricts access to in-package files to only five `fs.*` API's, whereas Node.js Compiler supports all `fs.*` API's. EncloseJS is proprietary licensed and charges money when used while Node.js Compiler is MIT-licensed and users are both free to use it and free to modify it. |
32+
| [Nexe](https://github.com/nexe/nexe) | Nexe does not support dynamic `require` because of its use of `browserify`, whereas Node.js Compiler supports all kinds of `require` including `require.resolve`. |
33+
| [asar](https://github.com/electron/asar) | Asar keeps the code archive and the executable separate while Node.js Compiler links all JavaScript source code together with the Node.js virtual machine and generates a single executable as the final product. Asar uses JSON to store files' information while Node.js Compiler uses SquashFS. |
34+
| [AppImage](http://appimage.org/) | AppImage supports only Linux with a kernel that supports SquashFS, while Node.js Compiler supports all three platforms of Linux, macOS and Windows, meanwhile without any special feature requirements from the kernel. |
3535

3636
## Install
3737

@@ -44,8 +44,10 @@ First install the prerequisites:
4444
* [Visual Studio 2015 Update 3](https://www.visualstudio.com/), all editions
4545
including the Community edition (remember to select
4646
"Common Tools for Visual C++ 2015" feature during installation).
47+
* [Visual Studio 2017](https://www.visualstudio.com/downloads/), any edition (including the Build Tools SKU).
48+
__Required Components:__ "MSbuild", "VC++ 2017 v141 toolset" and one of the Windows SDKs (10 or 8.1).
4749

48-
Then download the executable [nodec.exe](https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec.exe/download) and run it from the VC++ or VS Command Prompt.
50+
Then download the executable [nodec-x64.exe](https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-x64.exe/download) and run it from the VC++ or VS Command Prompt.
4951

5052
### macOS
5153

@@ -61,7 +63,7 @@ First install the prerequisites:
6163

6264
Then,
6365

64-
curl -L https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec-darwin-x64/download > nodec
66+
curl -L https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-darwin-x64/download > nodec
6567
chmod +x nodec
6668
./nodec
6769

@@ -70,14 +72,14 @@ Then,
7072
First install the prerequisites:
7173

7274
* [SquashFS Tools 4.3](http://squashfs.sourceforge.net/)
73-
* `gcc` and `g++` 4.9 or newer, or
75+
* `gcc` and `g++` 4.8.2 or newer, or
7476
* `clang` and `clang++` 3.4 or newer
7577
* Python 2.6 or 2.7
7678
* GNU Make 3.81 or newer
7779

7880
Then,
7981

80-
curl -L https://sourceforge.net/projects/node-compiler/files/v0.9.6/nodec-linux-x64/download > nodec
82+
curl -L https://sourceforge.net/projects/node-compiler/files/v1.0.0/nodec-linux-x64/download > nodec
8183
chmod +x nodec
8284
./nodec
8385

tests/node-compiler-blbt

tests/node-compiler-ram

0 commit comments

Comments
 (0)