forked from cytle/wechat_web_devtools
-
Notifications
You must be signed in to change notification settings - Fork 0
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
炒饭
committed
Jun 23, 2017
1 parent
80bc0c6
commit c713dc1
Showing
14 changed files
with
1,181 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
/dist | ||
npm-debug.log | ||
/node_modules | ||
*.log |
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,15 @@ | ||
#! /bin/bash | ||
# install desktop | ||
|
||
root_dir=$(cd `dirname $0`/.. && pwd -P) | ||
|
||
sed -r -e 's/\/path\/to/'${root_dir//\//\\\/}'/g' "$root_dir/desktop.example" > "$root_dir/dist/wechat_dev_tools.desktop" | ||
|
||
if type desktop-file-install >/dev/null 2>&1; then | ||
desktop-file-install "$root_dir/dist/wechat_dev_tools.desktop" --dir=$HOME/.local/share/applications | ||
else | ||
echo 'no exists desktop-file-install' | ||
if [ -d "$HOME/.local/share/applications" ]; then | ||
cp "$root_dir/dist/wechat_dev_tools.desktop" $HOME/.local/share/applications/ | ||
fi | ||
fi |
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,4 +1,4 @@ | ||
#! /bin/sh | ||
#! /bin/bash | ||
|
||
root_dir=$(cd `dirname $0`/.. && pwd -P) | ||
|
||
|
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,17 @@ | ||
#! /bin/bash | ||
# install desktop | ||
|
||
root_dir=$(cd `dirname $0`/.. && pwd -P) | ||
|
||
# TODO 能不能删 | ||
need_remove="$HOME/.local/share/applications/wechat_dev_tools.desktop" | ||
if [ -f $need_remove ]; then | ||
echo "remove $need_remove" | ||
rm -v $need_remove | ||
fi | ||
|
||
# TODO 能不能删 | ||
need_remove="$HOME/.config/微信web开发者工具" | ||
if [ -d $need_remove ]; then | ||
rm -rfv $need_remove | ||
fi |
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
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,8 @@ | ||
[Desktop Entry] | ||
Name=微信web开发者工具 | ||
Comment=The development tools for wechat web develop | ||
Exec=/path/to/bin/wxdt %U | ||
Icon=/path/to/dist/package.nw/app/images/logo2.png | ||
Type=Application | ||
Terminal=false | ||
X-Desktop-File-Install-Version=0.22 |
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,9 @@ | ||
var gulp = require('gulp'); | ||
var replace = require('gulp-replace'); | ||
var path = require('path'); | ||
|
||
gulp.task('desktop', function(){ | ||
gulp.src(['./desktop.example']) | ||
.pipe(replace('bar', 'foo')) | ||
.pipe(gulp.dest('dist/wechat_web_devtools.desktop')); | ||
}); |
File renamed without changes.
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 +1,38 @@ | ||
{"main":"app/html/index.html","name":"微信web开发者工具","appname":"wechatwebdevtools","version":"0.18.182200","window":{"title":"微信web开发者工具 v0.18.182200","icon":"app/images/logo2.png","toolbar":true,"width":600,"height":480,"frame":false},"inject_js_start":"app/dist/inject/jweixindebug.js","inject_js_end":"app/dist/inject/devtools.js","chromium-args":"--disable-devtools -ignore-certificate-errors -load-extension=./package.nw/app/dist/extensions/","node-remote":"http://*.open.weixin.qq.com/*","webview":{"partitions":[{"name":"trusted","accessible_resources":["<all_urls>"]},{"name":"devtools","accessible_resources":["<all_urls>"]},{"name":"simulator","accessible_resources":["<all_urls>"]},{"name":"appservice","accessible_resources":["<all_urls>"]},{"name":"widget","accessible_resources":["<all_urls>"]}]},"devDependencies":{},"beta":false} | ||
{ | ||
"main": "app/html/index.html", | ||
"name": "微信web开发者工具", | ||
"appname": "wechatwebdevtools", | ||
"version": "0.18.182200", | ||
"window": { | ||
"title": "微信web开发者工具 v0.18.182200", | ||
"icon": "app/images/logo2.png", | ||
"toolbar": true, | ||
"width": 600, | ||
"height": 480, | ||
"frame": false | ||
}, | ||
"inject_js_start": "app/dist/inject/jweixindebug.js", | ||
"inject_js_end": "app/dist/inject/devtools.js", | ||
"chromium-args": "--disable-devtools -ignore-certificate-errors -load-extension=./package.nw/app/dist/extensions/", | ||
"node-remote": "http://*.open.weixin.qq.com/*", | ||
"webview": { | ||
"partitions": [{ | ||
"name": "trusted", | ||
"accessible_resources": ["<all_urls>"] | ||
}, { | ||
"name": "devtools", | ||
"accessible_resources": ["<all_urls>"] | ||
}, { | ||
"name": "simulator", | ||
"accessible_resources": ["<all_urls>"] | ||
}, { | ||
"name": "appservice", | ||
"accessible_resources": ["<all_urls>"] | ||
}, { | ||
"name": "widget", | ||
"accessible_resources": ["<all_urls>"] | ||
}] | ||
}, | ||
"devDependencies": {}, | ||
"beta": false | ||
} |
File renamed without changes.
Oops, something went wrong.