GithubHelp home page GithubHelp logo

wyuchen / deepin-wechat-web-devtools Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 66.32 MB

deepin环境下的微信开发者工具

Dockerfile 0.03% Makefile 0.03% Shell 0.34% HTML 55.86% Batchfile 0.01% JavaScript 24.16% CSS 19.58%

deepin-wechat-web-devtools's Introduction

Linux微信web开发者工具

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

wx_dev_tools v1.02.1910121 nw.js v0.38.0

Description

Linux微信web开发者工具, 可在 linux 桌面环境跑起 微信开发者工具, 原理是 微信开发者工具 本质是 nw.js 程序, 把它移植到 linux 下没大问题. 负责编译 wxmlwxsswccwcsc (可能还有其他功能), 则利用 wine 来跑即可.

使用步骤

0.安装wine

apt-get install wine -y

1.下载项目和初始化

git clone https://github.com/Wyuchen/deepin-wechat-web-devtools.git

cd deepin-wechat_web_devtools

# 自动下载最新 `nw.js` , 同时部署目录 `~/.config/wechat_web_devtools/`
./bin/wxdt install

2.启动ide,开发和调试网页

运行准备:

  1. GUI环境
./bin/wxdt # 启动

命令行和HTTP调用

运行准备:

  1. GUI环境,命令行和HTTP调用会自动启动ide(服务器没条件的可以使用docker)
  2. 并且已经执行过./bin/wxdt install
  3. ide的设置中开启服务端口: 设置 -> 安全 -> 服务端口(开启)

命令行工具所在位置: <安装路径>/bin/cli

端口号文件位置:~/.config/wechat_web_devtools/Default/.ide

微信文档参考:

Docker

未安装wine,仅限cli调用

可以直接run

docker run -it \
    -v $PWD:/projects \
    canyoutle/wxdt \
    sh -c "cli -l && cli -p /projects/your-project"

或是启动一个持久的容器

docker run -d \
    --name wxdt \
    -p 6080:80 \
    -v $PWD:/projects \
    canyoutle/wxdt

docker exec -it wxdt cli -l # 登录
docker exec -it wxdt cli -p /projects/your-project # 预览工程

docker stop wxdt # 暂停容器
docker start wxdt # 下次使用,不用再run,可以直接exec

其它说明

1. ./bin/wxdt install 报错失败

./nw: error while loading shared libraries: libnw.so: cannot open shared object file: No such file or directory

该错误是由 nw.js 下载失败所致. 删除缓存, 重新下载即可.

rm -rf /path/to/wechat_web_devtools/dist
rm -rf /tmp/wxdt_xsp
# 请务必等待执行完成
./bin/wxdt install

2.wccwcsc 编译错误

wine没安装好导致的,或是没有成功替换wccwcsc两个二进制文件

  • 方案一: 安装wine并且执行./bin/wxdt install
  • 方案二: 安装wine-binfmt

完成后, 点击 编译 即可.

3.ERROR:buffer_manager.cc(488)] [.DisplayCompositor]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command

解决方法: ./bin/wxdt --disable-gpu   (启动时候添加参数)

4.ERROR:bus.cc(393)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

解决方法:使用非root用户启动微信开发者工具就不会报错了,具体原因不清楚。

deepin-wechat-web-devtools's People

Contributors

wyuchen avatar

Watchers

James Cloos avatar  avatar

Forkers

wzwwzb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.