构建说明更新

This commit is contained in:
NaiboWang-Alienware 2023-07-03 03:53:15 +08:00
parent 8ac89f60cb
commit 8238ad676a
3 changed files with 17 additions and 17 deletions

View File

@ -53,7 +53,7 @@ chrome_linux64/ # for linux x64
chrome_mac64/ # for mac x64 chrome_mac64/ # for mac x64
``` ```
然后,从下面的页面下载和**自己安装的Chrome版本一致**的Chromedriverhttps://chromedriver.chromium.org/downloads把chromedriver放入刚刚的chrome文件夹内并更名为下面的格式 然后,从下面的页面下载和**自己安装的Chrome版本一致**的Chromedriver[https://chromedriver.chromium.org/downloads](https://chromedriver.chromium.org/downloads)把chromedriver放入刚刚的chrome文件夹内并更名为下面的格式
``` ```
chromedriver_win32.exe # for windows x86 chromedriver_win32.exe # for windows x86
@ -91,8 +91,8 @@ Finally, copy the `stealth.min.js` and `execute.bat` (for Windows x64) file in t
### NodeJS环境/NodeJS Environment ### NodeJS环境/NodeJS Environment
1. Windows环境下需要先安装`VS Build Tools 2017` (https://aka.ms/vs/15/release/vs_buildtools.exe)的`Visual C++ Build Tools`组件,不然下面的命令无法执行,其他系统不需要。 1. Windows环境下需要先安装`VS Build Tools 2017` [https://aka.ms/vs/15/release/vs_buildtools.exe](https://aka.ms/vs/15/release/vs_buildtools.exe)`Visual C++ Build Tools`组件,不然下面的命令无法执行,其他系统不需要。
2. 安装`NodeJS`https://nodejs.org/zh-cn/download/ 2. 安装`NodeJS`[https://nodejs.org/zh-cn/download/](https://nodejs.org/zh-cn/download/)。
3. 运行下面的命令来安装依赖: 3. 运行下面的命令来安装依赖:
``` ```
@ -100,12 +100,12 @@ npm install
npm install @electron-forge/cli -g npm install @electron-forge/cli -g
``` ```
如果上面的命令运行速度很慢可以参考NodeJS换源说明https://blog.csdn.net/qq_23211463/article/details/123769061 如果上面的命令运行速度很慢可以参考NodeJS换源说明[https://blog.csdn.net/qq_23211463/article/details/123769061](https://blog.csdn.net/qq_23211463/article/details/123769061)。
----- -----
1. On Windows, you need to install `VS Build Tools 2017` (https://aka.ms/vs/15/release/vs_buildtools.exe, select and install the `Visual C++ Build Tools` component) first for node-gyp to install `node-windows-manager` (No need for other OS). 1. On Windows, you need to install `VS Build Tools 2017` (https://aka.ms/vs/15/release/vs_buildtools.exe, select and install the `Visual C++ Build Tools` component) first for node-gyp to install `node-windows-manager` (No need for other OS).
2. Install `NodeJS`: https://nodejs.org/en/download/ 2. Install `NodeJS`: [https://nodejs.org/en/download/](https://nodejs.org/en/download/).
3. Run the following commands to install NodeJS packages: 3. Run the following commands to install NodeJS packages:
``` ```
@ -115,7 +115,7 @@ npm install @electron-forge/cli -g
## 运行说明/Run Instruction ## 运行说明/Run Instruction
在当前文件夹执行以下命令即可运行程序: 在当前文件夹执行以下命令即可在开发模式下运行程序:
```sh ```sh
npm run start_direct npm run start_direct

View File

@ -20,8 +20,8 @@ This section covers the compilation instructions for the `Execution stage progra
## 环境构建/Environment Setup ## 环境构建/Environment Setup
1. 安装python3.6及以上版本并添加至系统环境变量https://www.python.org/downloads/ 1. 安装python3.6及以上版本并添加至系统环境变量:[https://www.python.org/downloads/](https://www.python.org/downloads/)。
2. 安装pip3 并添加至系统环境变量(windows安装python后会自带pipLinux和MacOS安装方式请自行搜索 2. 安装pip3 并添加至系统环境变量(Windows安装python后会自带pipLinux和MacOS安装方式请自行搜索
3. 安装执行阶段需要的依赖库: 3. 安装执行阶段需要的依赖库:
```sh ```sh
@ -48,7 +48,7 @@ This section covers the compilation instructions for the `Execution stage progra
python3 easyspider_executestage.py --id [1] python3 easyspider_executestage.py --id [1]
``` ```
以上是运行任务号为`1`的任务的示例命令更多命令行参数使用说明请参考https://github.com/NaiboWang/EasySpider/wiki/Argument-Instruction 以上是运行任务号为`1`的任务的示例命令,更多命令行参数使用说明请参考:[Argument Instruction](https://github.com/NaiboWang/EasySpider/wiki/Argument-Instruction)。
----- -----
@ -70,12 +70,12 @@ You can use VS Code to open this folder and debug the program. You can modify th
## 打包说明/Package Instruction ## 打包说明/Package Instruction
如果想要在主程序直接点击“本地直接运行”按钮即可执行程序,则需要打包程序为可执行程序。 如果想要在主程序直接点击`本地直接运行`按钮即可执行程序,则需要打包程序为可执行程序。
Windows x64直接运行`generateEXE_win64.cmd`即可把执行阶段程序打包成`exe`文件并自动拷贝到`../ElectronJS/chrome_win64/`目录下,其他系统同理。 Windows x64直接运行`generateEXE_win64.cmd`即可把执行阶段程序打包成`exe`文件并自动拷贝到`../ElectronJS/chrome_win64/`目录下,其他系统同理。
----- -----
To execute the program by simply clicking the "Run Locally" button in the main program, you will need to package the program into an executable file. To execute the program by simply clicking the `Directly Run Locally` button in the main program, you will need to package the program into an executable file.
For Windows x64, you can run the generateEXE_win64.cmd script. This script will package the execution stage program into an .exe file and automatically copy it to the ../ElectronJS/chrome_win64/ directory. The process for other systems is similar. For Windows x64, you can run the `generateEXE_win64.cmd` script. This script will package the execution stage program into an .exe file and automatically copy it to the `../ElectronJS/chrome_win64/` directory. The process for other systems is similar.

View File

@ -20,7 +20,7 @@ This section covers the compilation instructions for the `Browser extension`, al
## 环境构建/Environment Setup ## 环境构建/Environment Setup
1. 安装`NodeJS`https://nodejs.org/zh-cn/download/ 1. 安装`NodeJS`[https://nodejs.org/zh-cn/download/](https://nodejs.org/zh-cn/download/)。
2. 运行下面的命令来安装依赖: 2. 运行下面的命令来安装依赖:
``` ```
@ -29,7 +29,7 @@ npm install
----- -----
1. Install `NodeJS`: https://nodejs.org/en/download/ 1. Install `NodeJS`: [https://nodejs.org/en/download/](https://nodejs.org/en/download/).
2. Run the following command to install dependencies: 2. Run the following command to install dependencies:
``` ```
@ -44,7 +44,7 @@ npm install
npm run dev npm run dev
``` ```
打开一个Chrome浏览器窗口然后在浏览器地址栏输入`chrome://extensions/`,在打开的页面中,打开右上角`开发者模式`,点击`加载已解压的扩展程序`,选择`manifest_v3\dist`文件夹,即可加载扩展。 打开一个Chrome浏览器窗口然后在浏览器地址栏输入`chrome://extensions/`,在打开的页面中,打开右上角`开发者模式`,点击`加载已解压的扩展程序`,选择`manifest_v3\dist`文件夹,即可加载扩展。
----- -----
@ -64,7 +64,7 @@ Open a Chrome browser window, then enter `chrome://extensions/` in the browser a
npm run package npm run package
``` ```
打包后会自动更新`ElectronJS`目录下的`EasySpider_zh.crx`文件,运行过程中的报错信息可以忽略。 打包后会自动更新`ElectronJS`目录下的`EasySpider_zh.crx`文件,命令运行过程中的报错信息可以忽略。
----- -----
@ -74,5 +74,5 @@ Run the following command to package the extension:
npm run package npm run package
``` ```
After packaging, the `EasySpider_en.crx` file in the `ElectronJS` folder will be automatically updated, and the error messages during the running process can be ignored. After packaging, the `EasySpider_en.crx` file in the `ElectronJS` folder will be automatically updated, and the error messages during the command running can be ignored.