浏览代码

根据修改意见修改代码

naibo 2 年之前
父节点
当前提交
f161feec77

+ 3 - 3
ElectronJS/README.md

@@ -25,17 +25,17 @@ chromedriver_mac64 # for mac x64
 For example, if you want to build this software on Windows x64 platform, then you should first download a chrome for windows x64, then copy the whole `chrome` folder to this `ElectronJS` folder and rename the folder to `chrome_win64`, assume the chrome version you downloaded is 110; then, download a `chromedriver.exe` with version 110 for windows x64, and put it into the `chrome_win64` folder, then rename it to `chromedriver_win64.exe`.
 For example, if you want to build this software on Windows x64 platform, then you should first download a chrome for windows x64, then copy the whole `chrome` folder to this `ElectronJS` folder and rename the folder to `chrome_win64`, assume the chrome version you downloaded is 110; then, download a `chromedriver.exe` with version 110 for windows x64, and put it into the `chrome_win64` folder, then rename it to `chromedriver_win64.exe`.
 
 
 
 
-Finally, copy the `stealth.min.js` file in this folder to all of these `chrome` folders.
+Finally, copy the `stealth.min.js` and `execute.bat` (for windows) file in this folder to these `chrome` folders.
 
 
 ## Run Instruction
 ## Run Instruction
 
 
-On Windows, you need to install `VS Build Tools 2017` (double click the vs_BuildTools.exe in this folder, then select and install the `Visual Studio Build Tools 2017` component) first for node-gyp to install `node-windows-manager`.
+On Windows, you need to install `VS Build Tools 2017` (https://aka.ms/vs/15/release/vs_buildtools.exe, select and install the `Visual Studio Build Tools 2017` component) first for node-gyp to install `node-windows-manager`.
 
 
 
 
 
 
 ```
 ```
 npm install
 npm install
-npm install @electron-forge/cli
+npm install @electron-forge/cli -g
 ```
 ```
 
 
 Then run the software in developing mode:
 Then run the software in developing mode:

+ 1 - 1
ElectronJS/clean_win32.cmd

@@ -2,7 +2,7 @@ move out\EasySpider-win32-ia32 out\EasySpider
 rmdir /s /q out\EasySpider\resources\app\chrome_win64
 rmdir /s /q out\EasySpider\resources\app\chrome_win64
 rmdir /s /q out\EasySpider\resources\app\Data
 rmdir /s /q out\EasySpider\resources\app\Data
 rmdir /s /q out\EasySpider\resources\app\.idea
 rmdir /s /q out\EasySpider\resources\app\.idea
-rmdir/s /q out\EasySpider\resources\app\tasks
+rmdir /s /q out\EasySpider\resources\app\tasks
 rmdir /s /q out\EasySpider\resources\app\execution_instances
 rmdir /s /q out\EasySpider\resources\app\execution_instances
 rmdir /s /q out\EasySpider\resources\app\user_data
 rmdir /s /q out\EasySpider\resources\app\user_data
 rmdir /s /q ..\Releases\EasySpider_windows_386\EasySpider
 rmdir /s /q ..\Releases\EasySpider_windows_386\EasySpider

+ 2 - 2
ElectronJS/clean_win64.cmd

@@ -2,8 +2,8 @@ move out\EasySpider-win32-x64 out\EasySpider
 rmdir /s /q out\EasySpider\resources\app\chrome_win32
 rmdir /s /q out\EasySpider\resources\app\chrome_win32
 rmdir /s /q out\EasySpider\resources\app\Data
 rmdir /s /q out\EasySpider\resources\app\Data
 rmdir /s /q out\EasySpider\resources\app\.idea
 rmdir /s /q out\EasySpider\resources\app\.idea
-rmdir/s /q out\EasySpider\resources\app\tasks
-rmdir/s /q out\EasySpider\resources\app\user_data
+rmdir /s /q out\EasySpider\resources\app\tasks
+rmdir /s /q out\EasySpider\resources\app\user_data
 rmdir /s /q out\EasySpider\resources\app\execution_instances
 rmdir /s /q out\EasySpider\resources\app\execution_instances
 rmdir /s /q ..\Releases\EasySpider_windows_amd64\EasySpider
 rmdir /s /q ..\Releases\EasySpider_windows_amd64\EasySpider
 del out\EasySpider\resources\app\vs_BuildTools.exe
 del out\EasySpider\resources\app\vs_BuildTools.exe

+ 6 - 0
ElectronJS/execute.bat

@@ -0,0 +1,6 @@
+@REM msg * %cd%
+if exist EasySpider (
+   start EasySpider/resources/app/chrome_win64/easyspider_executestage.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
+) else (
+ start chrome_win64/easyspider_executestage.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
+)

文件差异内容过多而无法显示
+ 0 - 0
ElectronJS/execution_instances/0.json


+ 1 - 1
ElectronJS/package.json

@@ -19,7 +19,7 @@
     "demo"
     "demo"
   ],
   ],
   "author": "Naibo Wang",
   "author": "Naibo Wang",
-  "license": "CC0-1.0",
+  "license": "GPL-3.0",
   "devDependencies": {
   "devDependencies": {
     "@electron-forge/cli": "^6.0.5",
     "@electron-forge/cli": "^6.0.5",
     "@electron-forge/maker-deb": "^6.0.5",
     "@electron-forge/maker-deb": "^6.0.5",

+ 1 - 0
ElectronJS/start_direct.cmd

@@ -0,0 +1 @@
+npm run start_direct

二进制
ElectronJS/vs_BuildTools.exe


部分文件因为文件数量过多而无法显示