宇天 2019-08-30 19:24:42 +08:00
commit e03ed96901
8 changed files with 109 additions and 0 deletions

16
.gitignore vendored Normal file
View File

@ -0,0 +1,16 @@
.DS_Store
.AppleDouble
.LSOverride
.idea
._*
.Spotlight-V100
.Trashes
build
build/**
node_modules
node_modules/**
package-lock.json

16
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug Main Process",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}",
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
"windows": {
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
},
"args": ["."]
}
]
}

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2018
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

BIN
icons/128x128.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
icons/256x256.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
icons/512x512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

1
icons/dns-host.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1567136629282" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2211" width="512" height="512" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M544.8762021 123.11097545c-136.98417543 0-263.00961683 71.23177122-328.76202103 186.2984786-5.47936702 10.95873403 0 21.91746807 5.47936701 27.39683508 10.95873403 5.47936702 21.91746807 5.47936702 27.39683509-5.47936701 60.27303719-104.10797332 175.33974455-169.86037754 295.88581893-169.86037753 191.7778456 0 345.20012208 153.42227648 345.20012209 345.20012208 0 115.06670737-60.27303719 219.17468069-147.94290946 279.44771788 0-43.83493614-32.8762021-76.71113825-76.71113825-76.71113824-43.83493614 0-76.71113825 32.8762021-76.71113823 76.71113824 0 21.91746807 10.95873403 43.83493614 27.39683507 54.79367017-21.91746807 5.47936702-43.83493614 5.47936702-71.23177122 5.47936702-98.62860631 0-191.7778456-43.83493614-257.53024979-115.06670738-5.47936702-10.95873403-21.91746807-10.95873403-27.39683511 0-10.95873403 5.47936702-10.95873403 21.91746807 0 27.39683511C331.18088843 840.90805472 435.28886175 890.22235789 544.8762021 890.22235789c213.69531367 0 383.55569122-169.86037754 383.55569122-383.55569122s-169.86037754-383.55569122-383.55569122-383.55569122z" fill="#7dc5eb" p-id="2212"></path><path d="M298.30468633 594.33653895c5.47936702-16.43810105 5.47936702-32.8762021 5.47936702-54.79367018s0-43.83493614-10.95873404-60.27303718c0-10.95873403-10.95873403-27.39683508-21.91746808-38.35556912-10.95873403-10.95873403-21.91746807-16.43810105-38.35556911-21.91746808-10.95873403-5.47936702-21.91746807-5.47936702-43.83493614-5.47936702H95.56810668v252.0508828h93.1492393c16.43810105 0 32.8762021 0 43.83493614-5.47936702 16.43810105-5.47936702 27.39683508-10.95873403 38.35556911-21.91746806 10.95873403-10.95873403 21.91746807-27.39683508 27.3968351-43.83493614z m-49.31430316-10.95873404c-5.47936702 10.95873403-10.95873403 21.91746807-16.43810105 27.39683508-5.47936702 5.47936702-10.95873403 5.47936702-16.43810105 10.95873405H144.88240984v-164.38101052H210.63481405c10.95873403 0 16.43810105 5.47936702 21.91746807 10.95873403 5.47936702 5.47936702 10.95873403 16.43810105 16.43810105 27.39683509 0 10.95873403 5.47936702 21.91746807 5.47936701 43.83493613s-5.47936702 32.8762021-5.47936701 43.83493614zM495.56189895 665.56831017h54.79367017V413.51742737h-49.31430315v169.86037755L396.93329263 413.51742737H347.61898949v252.0508828h49.31430314v-164.38101052zM692.81911157 627.21274105c-16.43810105 0-27.39683508-5.47936702-38.35556912-10.95873403s-16.43810105-21.91746807-16.43810105-38.35556913l-49.31430315 5.47936703c5.47936702 27.39683508 10.95873403 49.31430315 32.8762021 65.7524042 16.43810105 16.43810105 43.83493614 21.91746807 71.23177122 21.91746806 21.91746807 0 38.35556912-5.47936702 54.79367018-10.95873403s27.39683508-16.43810105 32.8762021-27.39683508c5.47936702-10.95873403 10.95873403-27.39683508 10.95873403-38.35556912 0-16.43810105-5.47936702-27.39683508-10.95873403-38.35556913-5.47936702-10.95873403-16.43810105-21.91746807-27.39683508-27.39683508-10.95873403-5.47936702-27.39683508-10.95873403-54.79367018-16.43810105s-38.35556912-10.95873403-49.31430316-16.43810105c-5.47936702-5.47936702-5.47936702-10.95873403-5.47936701-16.43810105 0-5.47936702 0-10.95873403 5.47936701-16.43810106 16.43810105-10.95873403 27.39683508-10.95873403 38.35556912-10.95873403 16.43810105 0 27.39683508 5.47936702 32.8762021 10.95873403 10.95873403 0 10.95873403 10.95873403 16.43810105 27.39683509h49.31430317c0-21.91746807-10.95873403-43.83493614-27.39683509-54.79367017-16.43810105-16.43810105-38.35556912-21.91746807-71.23177123-21.91746808-21.91746807 0-38.35556912 5.47936702-49.31430315 10.95873404-16.43810105 5.47936702-21.91746807 16.43810105-32.8762021 27.39683509-5.47936702 0-5.47936702 16.43810105-5.47936702 27.39683509 0 21.91746807 5.47936702 38.35556912 21.91746807 49.31430315 10.95873403 10.95873403 27.39683508 16.43810105 54.79367016 27.39683508 21.91746807 5.47936702 38.35556912 5.47936702 43.83493614 10.95873404 10.95873403 5.47936702 16.43810105 5.47936702 16.43810105 10.95873403 5.47936702 5.47936702 5.47936702 10.95873403 5.47936703 16.43810106 0 10.95873403-5.47936702 16.43810105-10.95873404 21.91746807-10.95873403 5.47936702-21.91746807 10.95873403-38.35556912 10.95873403z" fill="#7dc5eb" p-id="2213"></path></svg>

After

Width:  |  Height:  |  Size: 4.4 KiB

55
package.json Normal file
View File

@ -0,0 +1,55 @@
{
"name": "dns-host",
"version": "1.0.0",
"description": "伪域名解析",
"main": "index.js",
"scripts": {
"start": "electron .",
"pack": "electron-builder"
},
"author": {
"name": "yutent",
"email": "yutent@doui.cc"
},
"license": "MIT",
"dependencies": {
"iofs": "^1.2.1"
},
"build": {
"appId": "dns.host",
"productName": "dns-host",
"copyright": "Copyright © 2019 ${author}",
"directories": {
"buildResources": "icons",
"output": "build"
},
"files": [
"src/**/*",
"node_modules/iofs/*"
],
"mac": {
"category": "public.app-category.development",
"target": "dmg",
"icon": "icons/app.icns",
"darkModeSupport": false
},
"linux": {
"category": "Development",
"target": [
{
"target": "deb",
"arch": "x64"
},
{
"target": "AppImage",
"arch": "x64"
}
],
"icon": "./icons/"
}
},
"devDependencies": {
"electron": "^6.0.5",
"electron-builder": "^21.2.0"
}
}