Skip to content
This repository was archived by the owner on Jun 28, 2022. It is now read-only.

更新到版本1.02.2004020(其中nwjs为0.38.4),满足仅使用cli upload的场景 #299

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ npm-debug.log
/node_modules
*.log
winehq.key
*.iml
/package.nw/**/*
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

linux 下使用微信web开发者工具.

![wx_dev_tools v1.02.1910121](https://img.shields.io/badge/wx_dev_tools-1.02.1910121-green.svg)
![nw.js v0.24.4](https://img.shields.io/badge/nw.js-v0.24.4-blue.svg)
![wx_dev_tools v1.02.2004020](https://img.shields.io/badge/wx_dev_tools-1.02.2004020-green.svg)
![nw.js v0.38.4](https://img.shields.io/badge/nw.js-v0.38.4-blue.svg)

## Description

Expand Down Expand Up @@ -149,9 +149,9 @@ rm -rf /tmp/wxdt_xsp
1. https://github.com/cytle/wechat_web_devtools/issues/66#issuecomment-368434141
2. https://github.com/cytle/wechat_web_devtools/issues/56#issuecomment-371999385

### 更新到最新版
### 更新/升级到最新版(PS:同样适用于在canyoutle/wxdt docker容器中直接操作更新升级)

#### 方案一: 直接从当前项目源码 进行 更新 (稳定, 推荐)
#### ~~方案一: 直接从当前项目源码 进行 更新 (稳定, 推荐)~~ (源码中版本较旧,已删除,请使用方案二/三更新版本)

``` bash
git pull origin
Expand All @@ -175,6 +175,15 @@ git pull origin
./bin/update_package_nw.sh -l <微信开发工具下载地址> -v <版本号>
```

#### 方案二/三补充:手动更新nwjs至开发者工具对应的版本
通过windows版开发者工具安装文件获取对应使用的nwjs版本,并修改nwjs_v中版本号,然后执行:

``` bash
./bin/update_nwjs.sh
```

以上更新后,至少可以 **cli upload** 正常使用啦

*Tips*

- 运行没问题,欢迎PR
Expand Down
4 changes: 2 additions & 2 deletions bin/fix_cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ root_dir=$(cd `dirname $0`/.. && pwd -P)
sed -ri -e 's/USERPROFILE/HOME/g' $root_dir/package.nw/js/common/cli/index.js
# config地址替换
sed -ri -e 's#AppData/Local/\$\{global.userDirName\}/User Data#.config/\$\{global.userDirName\}#g' $root_dir/package.nw/js/common/cli/index.js
# 应用入口替换
sed -ri -e 's#`./\$\{global.appname\}.exe`#i.join(__dirname, "../../../../bin/wxdt")#g' $root_dir/package.nw/js/common/cli/index.js
# 应用入口替换 todo: js压缩后变量名不固定(i.join)
sed -ri -e 's#`./\$\{global.appname\}.exe`#o.join(__dirname, "../../../../bin/wxdt")#g' $root_dir/package.nw/js/common/cli/index.js

# 默认打开服务端口,TODO 文件hash会改变
# sed -ri -e 's/enableServicePort:!1/enableServicePort:!!1/g' $root_dir/package.nw/js/5498e660c05c574f739a28bd5d202cfa.js
2 changes: 1 addition & 1 deletion nwjs_v
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.38.0
0.38.4
Binary file removed package.nw/core.wxvpkg
Binary file not shown.
1 change: 0 additions & 1 deletion package.nw/html/about.html

This file was deleted.

1 change: 0 additions & 1 deletion package.nw/html/appservice.html

This file was deleted.

1 change: 0 additions & 1 deletion package.nw/html/cloud-functions-debugger.html

This file was deleted.

1 change: 0 additions & 1 deletion package.nw/html/debugger-end.html

This file was deleted.

1 change: 0 additions & 1 deletion package.nw/html/debugger.html

This file was deleted.

1 change: 0 additions & 1 deletion package.nw/html/dev.html

This file was deleted.

94 changes: 0 additions & 94 deletions package.nw/html/editor-dev.html

This file was deleted.

35 changes: 0 additions & 35 deletions package.nw/html/editor.html

This file was deleted.

46 changes: 0 additions & 46 deletions package.nw/html/entrance.html

This file was deleted.

35 changes: 0 additions & 35 deletions package.nw/html/filediff.html

This file was deleted.

Loading