Skip to content

Commit

Permalink
Merge 38f76c7 into 7efd40b
Browse files Browse the repository at this point in the history
  • Loading branch information
lanyuanxiaoyao authored Jan 23, 2021
2 parents 7efd40b + 38f76c7 commit 4493eaa
Show file tree
Hide file tree
Showing 48 changed files with 1,171 additions and 383 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/LanyuanXiaoyao-Studio/SearchX?label=%E5%8F%91%E5%B8%83%E7%89%88%E6%9C%AC)
![uTools version](https://img.shields.io/badge/uTools%20%E7%89%88%E6%9C%AC-%3E%3D1.1.3-green)

基于规则的跨平台一站式聚合搜索工具.
基于规则的跨平台一站式聚合搜索工具

通过简单的 JSON 规则定义如何获取一个网站的关键内容, 并聚合到一起, 方便查询和阅读, 这就是这个工具的本意, 茫茫网海, 不同的 UI 和操作方式挡住了我们畅游的道路, 是时候返璞归真了.
通过简单的 JSON 规则定义如何获取一个网站的关键内容并聚合到一起方便查询和阅读这就是这个工具的本意茫茫网海不同的 UI 和操作方式挡住了我们畅游的道路是时候返璞归真了

# 下载
[Github Release](https://github.com/LanyuanXiaoyao-Studio/SearchX/releases)
Expand Down Expand Up @@ -34,20 +34,21 @@
- [更新内容](https://github.com/LanyuanXiaoyao-Studio/SearchX/wiki/%E6%9B%B4%E6%96%B0%E8%AF%B4%E6%98%8E)

# 注意
- 本项目**唯一发布途径**为上述两个开源仓库, 由于项目属性, **请谨慎提防恶意的二次分发**.
- 本项目无任何官方账号和群聊, 唯一交流平台为 Github Issue, 由于项目属性, **请谨慎提防恶意的拉群行为**.
- 本项目**开源免费**, 不内置任何广告, **无任何付费内容**.
- 本项目所用技术**仅用于学习交流**, **请勿直接用于任何商业场合和非法用途**.
- 本项目的**捐赠仅表示您对我代码交流分享上的认可**, **不代表您获得本项目以及其搜索结果的任何权利**.
- 本项目**唯一发布途径**为上述两个开源仓库由于项目属性**请谨慎提防恶意的二次分发**
- 本项目无任何官方账号和群聊唯一交流平台为 Github Issue由于项目属性**请谨慎提防恶意的拉群行为**
- 本项目**开源免费**不内置任何广告**无任何付费内容**
- 本项目所用技术**仅用于学习交流****请勿直接用于任何商业场合和非法用途**
- 本项目的**捐赠仅表示您对我代码交流分享上的认可****不代表您获得本项目以及其搜索结果的任何权利**

# 捐赠
> 本项目的**捐赠仅表示您对我代码交流分享上的认可**, **不代表您获得本项目以及其搜索结果的任何权利**.
如果我的代码能够对你有所帮助和启发不妨请我喝杯奶茶, 当然没钱的捧个人场, 点个 Star 也是心意.
如果我的代码能够对你有所帮助和启发不妨请我喝杯奶茶当然没钱的捧个人场点个 Star 也是心意

<a href="https://donate.lanyuanxiaoyao.com" target="_blank"><img src="https://gitee.com/lanyuanxiaoyao/utools-data/raw/master/donate.png" alt="捐赠" width="150px" /></a>

# 截图
![](https://raw.githubusercontent.com/LanyuanXiaoyao-Studio/SearchX/master/screenshot/sites.png)
![](https://raw.githubusercontent.com/LanyuanXiaoyao-Studio/SearchX/master/screenshot/index.png)
![](https://raw.githubusercontent.com/LanyuanXiaoyao-Studio/SearchX/master/screenshot/detail.png)
![](https://raw.githubusercontent.com/LanyuanXiaoyao-Studio/SearchX/master/screenshot/search.png)
![](https://raw.githubusercontent.com/LanyuanXiaoyao-Studio/SearchX/master/screenshot/search-2.png)
Binary file modified icons/icon.icns
Binary file not shown.
Binary file modified icons/icon.ico
Binary file not shown.
Binary file modified icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"name": "searchx",
"productName": "SearchX",
"version": "0.2.3",
"version": "1.0.0",
"author": {
"name": "lanyuanxiaoyao",
"email": "[email protected]"
},
"description": "基于 JSON 编写规则的跨平台一站式聚合搜索工具",
"private": true,
"scripts": {
"web:serve": "vue-cli-service serve --mode webdev",
"web:build": "vue-cli-service build --mode web",
"web:image": "vue-cli-service build --mode web && /bin/bash scripts/suf-build-web.sh",
"web:serve": "node scripts/pre-build-web.js && vue-cli-service serve --mode webdev",
"web:build": "node scripts/pre-build-web.js && vue-cli-service build --mode web",
"web:image": "node scripts/pre-build-web.js && vue-cli-service build --mode web && /bin/bash scripts/suf-build-web.sh",
"electron:serve": "node scripts/pre-build-electron.js && vue-cli-service electron:serve --mode electron",
"electron:build": "node scripts/pre-build-electron.js && vue-cli-service electron:build --mode electron",
"postinstall": "electron-builder install-app-deps",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
content="IE=edge"
http-equiv="X-UA-Compatible"
>
<link
href="<%= BASE_URL %>favicon.ico"
rel="icon"
>
<meta
content="width=device-width,initial-scale=1.0"
name="viewport"
Expand Down
2 changes: 1 addition & 1 deletion public_electron/squirrel/squirrel-core-electron.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public_utools/squirrel/squirr-core-utools.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ window.put = data => {
}
}

const squirrelLib = require('./squirrel-utools-0.3.129-SNAPSHOT')
const squirrelLib = require('./squirrel-utools-0.3.137-SNAPSHOT')
window.squirrelLib = squirrelLib

Large diffs are not rendered by default.

Binary file removed screenshot/detail-layout.png
Binary file not shown.
Binary file modified screenshot/detail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot/index-layout.png
Binary file not shown.
Binary file modified screenshot/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/search-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshot/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshot/setting-layout.png
Binary file not shown.
Binary file removed screenshot/sites-layout.png
Binary file not shown.
Binary file removed screenshot/sites.png
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/clear.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const {batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')
const root = path.join(__dirname, '..')

// 清理 public 文件夹
batchDeleteFilesSync(listDirExcludeFiles(path.join(root, 'public'), ['index.html']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(root, 'public'), ['index.html', 'favicon.ico']))

// 清理 dist 文件夹
batchDeleteFilesSync([
Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-build-electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
const fs = require('fs')
const {batchCopyFilesSync, batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')

batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico']))

let publicPath = path.join(__dirname, '..', 'public')
let publicSourcePath = path.join(__dirname, '..', 'public_electron')
Expand Down
43 changes: 37 additions & 6 deletions scripts/pre-build-utools.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,47 @@
const fs = require('fs')
const path = require('path')
const {batchCopyFilesSync, batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')

batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html']))
batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico']))

let publicPath = path.join(__dirname, '..', 'public')
let publicSourcePath = path.join(__dirname, '..', 'public_utools')

let packageFile = fs.readFileSync(path.join(__dirname, '..', 'package.json'), {encoding: 'utf-8'})
let version = JSON.parse(packageFile)['version']
let pluginFile = JSON.stringify({
'pluginName': 'SearchX',
'author': 'lanyuanxiaoyao',
'homepage': 'https://github.com/LanyuanXiaoyao-Studio/SearchX',
'description': '海纳百川, 搜遍天下',
'version': version,
'logo': 'logo.png',
'main': 'index.html',
'preload': 'preload.js',
'pluginSetting': {
'single': true,
'height': 580
},
'features': [
{
'code': 'torrent',
'explain': '资源搜索',
'cmds': [
'Torrent',
'BT',
'资源搜索',
'种子搜索',
'SearchX'
]
}
]
})
fs.writeFileSync(`${publicPath}/plugin.json`, pluginFile)

batchCopyFilesSync([
[path.join(publicSourcePath, 'preload.js'), `${publicPath}/preload.js`],
[path.join(publicSourcePath, 'plugin.json'), `${publicPath}/plugin.json`],
[path.join(publicSourcePath, 'squirrel'), `${publicPath}/squirrel`],
[path.join(publicSourcePath, 'node_modules'), `${publicPath}/node_modules`],
[path.join(publicSourcePath, 'preload.js'), `${publicPath}/preload.js`],
[path.join(publicSourcePath, 'squirrel'), `${publicPath}/squirrel`],
[path.join(publicSourcePath, 'node_modules'), `${publicPath}/node_modules`],

[path.join(__dirname, '..', 'icons', 'icon.png'), `${publicPath}/logo.png`],
[path.join(__dirname, '..', 'icons', 'icon.png'), `${publicPath}/logo.png`],
])
4 changes: 4 additions & 0 deletions scripts/pre-build-web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const path = require('path')
const {batchDeleteFilesSync, listDirExcludeFiles} = require('./utils')

batchDeleteFilesSync(listDirExcludeFiles(path.join(__dirname, '..', 'public'), ['index.html', 'favicon.ico']))
Loading

0 comments on commit 4493eaa

Please sign in to comment.