Giter Site home page Giter Site logo

mini-blink's Introduction

MINI-BLINK

基于免费版的 miniblink 的 GO 封装,内嵌 miniblink 的 DLL,并根据构建环境自动选择 x86/x64 DLL

特点

  1. 纯 GO 实现,无须写 C 代码
  2. 封装了大部分 miniblink 的 API,面向对象,方便使用。
  3. JS 交互(IPC通讯、事件绑定、调用JS函数),具体使用方式,请参考示例
  4. 本地目录、BIN资源的加载
  5. 内嵌 miniblink 的 DLL,并根据构建环境自动选择 x86/x64 DLL

部分未封装的接口,可以使用以下函数直接调用 miniblink 的 DLL

func (mb *Blink) CallFunc(name string, args ...uintptr) (r1 uintptr, r2 uintptr, err error)

开发环境

  • GO 1.20

打包

打包标签:

  • release 打包程序,不包含调试信息
  • slim 不内嵌miniblink的dll,需要手动放入程序根目录或系统默认路径

示例

# 默认打包
go build \
  -tags 'release' \
  -ldflags '-w -s -H=windowsgui' \
  -o miniBlink.exe \
  ./samples/demo-baidu

# 打包32位程序
GOARCH=386 go build \
  -tags 'release' \
  -ldflags '-w -s -H=windowsgui' \
  -o miniBlink.exe \
  ./samples/demo-baidu

添加程序版本信息、图标。。。 请查看 demo-baidumain.go 文件。并参阅 josephspurrier/goversioninfo

mini-blink's People

Contributors

edwinhuish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

heastern

mini-blink's Issues

打包 css和js

我测试了call js demo,载入一些css和js没有正确的打包进去,请假下如何正确操作

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.