Giter Site home page Giter Site logo

dart-electron's Introduction

dart-electron

To use this package, add it to your pubspec.yaml.

electron: git: ref: master url: https://github.com/ppvk/dart-electron.git

API

Eventually, I expect there will be some libs here to interface with electron's JavaScript APIs. For now, however, all we have are these packaging commands.

Commands

From the command line 'cd' into your project. There are four commands you can run to build and test with electron.

Options

All the commands that take options, take the same options. They are:

... -v (--version in 0.0.0 format) -o (--os linux, osx, or win) -a (--arch 32 or 64,)

'arch' is only relevant if you are using a linux system. Electron only distributes 32bit binaries for windows, and 64bit binaries for OSX.

If you do not specify these, they will assume that you want the version for your current os, and v0.20.6. Linux users, for now, MUST specify which '-a' they are using

:get

pub run electron:get (options)

This command tries to download a precompiled version of electron into a .cache folder. It would be a good idea to add this to your '.gitignore' file. You can specify what version you want to download by using the previously defined arguments.

If you don't specify any options, the command will detect your OS and download an appropriate version.

:run

pub run electron:run (options)

This command will do a 'pub build' and then try to run whatever is in your /build folder with a previously downloaded electron binary. You can use this to test your app on your system before running the ':build' command. If you try to specify a machine in the options different from what you actually have, it'll just ignore you. The only meaningful options to set here are '-v' and '-a'.

Additionally, this command will automatically re-run itself when you close the electron window, allowing for a slightly faster edit-build-test cycle. Turn this off by pressing Ctrl-C in the terminal window.

:build

pub run electron:build (options)

Copies a cached version of electron to a /dist folder and injects your built app into it. Be sure to run 'pub build' before this command. You can specify the particular operating system you wish to build for.

:clearcache

pub run electron:clearcache

This command does not take any arguments. It simply deletes any previously downloaded and cached electron distributions.

To Note

This package will rename the electron binary to the name of your project by default (incidentally disabling node-modules), and it does not change icons.

dart-electron's People

Contributors

ppvk avatar spbennett 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.