GithubHelp home page GithubHelp logo

dice's Introduction

CoolQ-Golang-Plugin

这里是你用Golang酷Q插件开发的起点

开始

赶快点击右上角的Use this template绿色按钮开始吧! 用本模板新建一个项目(到你自己的Github账号上),然后将你的项目克隆至本地。 或者直接下载本模板项目。

安装环境

  1. 下载并安装Go语言编译器
  2. 下载并安装gcc编译器
  3. 运行脚本安装SDK以及cqcfg小工具:运行setup.bat

修改路径

要修改的地方有几处:

  1. go.mod文件第一行,改为你自己项目的地址
  2. app.go文件main函数前// cqp:开头的注释,修改名称、版本、作者和简介
  3. app.go文件init函数内,修改你的AppID
  4. build.bat脚本第5行DevDir,后面的路径要修改为你的酷Q的dev文件夹的路径

启动酷Q的开发者模式

请查看酷Q官方的文档

测试运行

运行一下build.bat试试吧,这个脚本会帮你编译插件、自动生成app.json, 然后帮你把app.dll和app.json移动到酷Q的开发目录下。

最后,在酷Q的菜单-应用管理中,点击重载应用,你应该就能看到你的插件了。

dice's People

Contributors

leoglee avatar

Watchers

 avatar

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.