GithubHelp home page GithubHelp logo

electron-wrapper's Introduction

Electron Wrapper


Electron wrapper用来包装任何一个网页到一个Electron应用。目前引用了应用商店的com.electron包作为依赖。并使用ingredients中的nodejs作为构建依赖(你也可以不使用ingredients,仅需添加BUILD_DEPENDS="npm"并删除export INGREDIENTS=...,然后将build.sh中的所有pnpm改成npm即可。)

使用方法:

复制template文件夹到包名,并修改其中的build.sh中的:

export PACKAGE=""
export NAME=""
export NAME_CN=""
export URL="icon.png::icon-url"
export HOMEPAGE="" # wrapper content

这五个环境变量声明。其中URL用来下载图标,icon-url应当替换成图标的地址,图标不能是ico格式。

HOMEPAGE的值就是会被包装的网页的链接。

你也可以在build.sh所在的文件夹下放置任意js文件,以注入到加载后的网页里面。

electron-wrapper's People

Contributors

oyami-srk avatar shenmo7192 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.