Giter VIP home page Giter VIP logo

Comments (8)

shenzhuxi avatar shenzhuxi commented on May 22, 2024 1

Why not make all options available in package.json?

from nw-builder.

sanderboom avatar sanderboom commented on May 22, 2024 1

+1 for all options in package.json and/or all options available as cli arguments. Situation right now is somewhat confusing.

from nw-builder.

1j01 avatar 1j01 commented on May 22, 2024

Here's a bit of an overview of what is/isn't supported.

Options:

  -p, --platforms      Platforms to build, comma-sperated, can be: win,osx,linux32,linux64   [default: "osx,win"]
  -v, --version        The nw version, eg. 0.8.4                                             [default: "latest"]
  -r, --run            Runs node-webkit for the current platform                             [default: false]
  -o, --buildDir       The build folder                                                      [default: "./build"]
  -f, --forceDownload  Force download of node-webkit                                         [default: false]
  --quiet              Disables logging                                                      [default: false]

Options

  • options.files Required
  • options.version
  • options.platforms
  • options.appName
  • options.appVersion
  • options.buildDir
  • options.cacheDir
  • options.buildType (which is a bad name for this option, by the way ‡)
  • options.forceDownload
  • options.macCredits
  • options.macIcns
  • options.macZip
  • options.macPlist
  • options.winIco

‡ This should be called something like "namingScheme", or better yet "buildNamingScheme". It's bad form to pass options by scope. Options should be passed with an object as a parameter. It's better form and even potentially faster to type.

from nw-builder.

1j01 avatar 1j01 commented on May 22, 2024

Here we go #73:

Usage: nwbuild [options] [path]

Options:
  -p, --platforms      Platforms to build, comma-sperated, can be: win,osx,linux32,linux64                [default: "osx,win"]
  -v, --version        The nw version, eg. 0.8.4                                                          [default: "latest"]
  -r, --run            Runs node-webkit for the current platform                                          [default: false]
  -o, --buildDir       The build folder                                                                   [default: "./build"]
  -f, --forceDownload  Force download of node-webkit                                                      [default: false]
  --appName            The name of your node-webkit app                                                   [default: false]
  --appVersion         The version of your node-webkit app                                                [default: false]
  --cacheDir           The directory to store cached node-webkit downloads                                [default: false]
  --buildNamingScheme  How you want to name your builds, one of "default", "versioned", or "timestamped"  [default: "default"]
  --macCredits         MAC ONLY: The path to your credits.html file                                       [default: false]
  --macIcns            MAC ONLY: The path to your ICNS icon file                                          [default: false]
  --macZip             MAC ONLY: Use a app.nw folder instead of ZIP file                                  [default: false]
  --macPlist           MAC ONLY: if you supply a path to a Plist file it will use it                      [default: false]
  --winIco             WINDOWS ONLY: The path to your ICO icon file (requires Windows/Wine)               [default: null]
  --quiet              Disables logging                                                                   [default: false]

  • options.files Required
  • options.version
  • options.platforms
  • options.appName
  • options.appVersion
  • options.buildDir
  • options.cacheDir
  • options.buildType options.buildNamingScheme
  • options.forceDownload
  • options.macCredits
  • options.macIcns
  • options.macZip
  • options.macPlist
  • options.winIco

💥

from nw-builder.

stevenvachon avatar stevenvachon commented on May 22, 2024

"Boom!"
😄

from nw-builder.

sanemat avatar sanemat commented on May 22, 2024

I want this feature 😍

from nw-builder.

adam-lynch avatar adam-lynch commented on May 22, 2024

I'd really appreciate it if someone could make a pull-request to add these please 😄

from nw-builder.

stevenvachon avatar stevenvachon commented on May 22, 2024

Why use this over electron?

from nw-builder.

Related Issues (20)

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.