A Leiningen plugin to generate builds for node-webkit applications.
This project was inspired on the great grunt-node-webkit-build.
You can install this plugin by adding it on your plugins list on your project.clj
.
:plugins [[lein-node-webkit-build "0.1.8"]]
This project will help you to get from a folder containing a node-webkit application
For a minimum setup, this is what you need to add on your project.clj
:
:node-webkit-build {:root "public"}
And then you can run the build with:
lein node-webkit-build
This will lookup at the folder public
for your app, will build it up and generate
releases for all available platforms (it will automatic download the nescessary files
for that).
The following options are available to customize the build:
{ :root "" ; your node-webkit app root directory
:name nil ; use this to override the application name
:version nil ; use this to override the application version
:osx {
:icon nil ; point to an .icns icon file to be used on the generated mac osx build
}
:platforms #{:osx :osx64 :win :linux32 :linux64} ; select which platforms to generate the build
:nw-version :latest ; the node-webkit version to be used
:output "releases" ; output directory for the generated builds
:disable-developer-toolbar true ; this will update your package.json to remove the developer toolbar
:use-lein-project-version true ; update the project version using your leiningen project version
:tmp-path (path-join "tmp" "nw-build")} ; temporary path to place intermediate build files
This project still very young and all feedback will be great to improve it.
After the build process ends, a file is saved at TMP-PATH/build-info.edn
, if you need
to get any information generated from the build, you can read this file as:
(read-string (slurp "tmp/nw-build/build-info.edn"))
It contains all sorts of information that is generated during the build.
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php