Skip to content

Commit

Permalink
根据修改意见修改代码
Browse files Browse the repository at this point in the history
  • Loading branch information
naibo committed May 21, 2023
1 parent 409b332 commit f161fee
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions ElectronJS/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.


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

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 @electron-forge/cli
npm install @electron-forge/cli -g
```

Then run the software in developing mode:
Expand Down
2 changes: 1 addition & 1 deletion ElectronJS/clean_win32.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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\Data
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\user_data
rmdir /s /q ..\Releases\EasySpider_windows_386\EasySpider
Expand Down
4 changes: 2 additions & 2 deletions ElectronJS/clean_win64.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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\Data
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 ..\Releases\EasySpider_windows_amd64\EasySpider
del out\EasySpider\resources\app\vs_BuildTools.exe
Expand Down
6 changes: 6 additions & 0 deletions ElectronJS/execute.bat
Original file line number Diff line number Diff line change
@@ -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
)
1 change: 0 additions & 1 deletion ElectronJS/execution_instances/0.json

This file was deleted.

2 changes: 1 addition & 1 deletion ElectronJS/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"demo"
],
"author": "Naibo Wang",
"license": "CC0-1.0",
"license": "GPL-3.0",
"devDependencies": {
"@electron-forge/cli": "^6.0.5",
"@electron-forge/maker-deb": "^6.0.5",
Expand Down
1 change: 1 addition & 0 deletions ElectronJS/start_direct.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run start_direct
Binary file removed ElectronJS/vs_BuildTools.exe
Binary file not shown.

0 comments on commit f161fee

Please sign in to comment.