瀏覽代碼

Merge branch 'master' of https://github.com/gildas-lormeau/SingleFile into master

Gildas 5 年之前
父節點
當前提交
609c102b0c
共有 1 個文件被更改,包括 24 次插入12 次删除
  1. 24 12
      cli/README.MD

+ 24 - 12
cli/README.MD

@@ -10,25 +10,37 @@ SingleFile can be launched from the command line by running it into a (headless)
 
 - Install [Node.js](https://nodejs.org)
 
-- Unzip the [master archive](https://github.com/gildas-lormeau/SingleFile/archive/master.zip) somewhere on your disk in an empty folder and go into the `SingleFile-master/cli` directory.
+- There are 3 ways to download the code of SingleFile, choose the one you prefer:
 
-  `unzip master.zip .`
+  - Download and unzip manually the [master archive](https://github.com/gildas-lormeau/SingleFile/archive/master.zip) provided by Github      
+
+    `unzip master.zip .`
   
-  `cd SingleFile-master`
+    `cd SingleFile-master`
   
-  `cd cli`
+    `cd cli`
+      
+    `npm install`
+    
+  - Download with `npm` (provided by Node.js)
+    
+    `npm install 'gildas-lormeau/SingleFile#master'`
+       
+    `cd node-modules`
+       
+    `cd single-file`
+       
+    `cd cli`  
   
-- As an alternative to decompressing the master archive, you can clone the repository if `git` is installed on your machine and go into the `SingleFile/cli` directory.
+  - Download with `git`
 
-  `git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git`
+    `git clone --depth 1 --recursive https://github.com/gildas-lormeau/SingleFile.git`
   
-  `cd SingleFile`
+    `cd SingleFile`
   
-  `cd cli`
-
-- Install dependencies with npm (installed with Node.js).
-
-  `npm install`
+    `cd cli`
+       
+    `npm install`        
   
 - Make `single-file` executable (Linux/Unix/BSD etc.).