-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,171 additions
and
383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...irrel/squirrel-utools-0.3.129-SNAPSHOT.js → ...irrel/squirrel-utools-0.3.137-SNAPSHOT.js
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`], | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'])) |
Oops, something went wrong.