Git Product home page Git Product logo

grunt-appdmg's People

Contributors

felicienfrancois avatar greenkeeperio-bot avatar htanjo avatar unindented avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grunt-appdmg's Issues

cannot pass arguments to appdmg

for some reason i cannot pass arguments to appdmg like i can for other grunt tasks. for example,

grunt.task.run('appdmg:volume1') fails with this error:

"Verifying property appdmg.volume1 exists in config...ERROR

Unable to process task.
Warning: Required config property "appdmg.mac-generic" missing. Use --force to continue."

i am trying to dynamically name the target using <%= grunt.task.current.args[0] =>

this approach is working for the grunt-copy plugin, but for appdmg ive had to use a task alias and then specify a config property inside the alias function..

any input is appreciated. otherwise fantastic plugin! thanks!

essentials from the config here:

grunt.loadNpmTasks('grunt-appdmg');

grunt.registerTask('release', function() {
grunt.task.run('copy:main:volume1');
grunt.task.run('appdmg:volume1');
}

appdmg: {
options: {...stuff here...},
target: {
dest: '<%= grunt.tasks.current.args[0] %>.dmg'
}
}

Fatal error: undefined is not a function

With node v0.12.7 (latest available with brew), I get a fatal error:

Running "appdmg:target" (appdmg) task
Fatal error: undefined is not a function
TypeError: undefined is not a function
    at EventEmitter.<anonymous> (/Users/felicienfrancois/git/TweakStyle/node_modules/grunt-appdmg/tasks/appdmg.js:39:41)
    at EventEmitter.emit (events.js:107:17)
    at Pipeline._progress (/Users/felicienfrancois/git/TweakStyle/node_modules/grunt-appdmg/node_modules/appdmg/lib/pipeline.js:20:11)
    at Pipeline._runStep (/Users/felicienfrancois/git/TweakStyle/node_modules/grunt-appdmg/node_modules/appdmg/lib/pipeline.js:45:8)
    at Pipeline._run (/Users/felicienfrancois/git/TweakStyle/node_modules/grunt-appdmg/node_modules/appdmg/lib/pipeline.js:97:8)
    at process._tickCallback (node.js:355:11)
    at Function.Module.runMain (module.js:503:11)
    at startup (node.js:129:16)
    at node.js:814:3

This is due to the use of String.repeat in tasks/appdmg.js:39 which is not defined in nodejs 0.12.7

preventing install on non-mac?

We run a project that creates installations for Windows/Mac/Linux. We use grunt-appdmg for the mac part, but of course we have logic in place to prevent using it when running on Windows/Linux machines.

We noticed that our npm install fails on Linux/Windows. So we have to include grunt-appdmg as an optionalDependency in package.json so we can run npm install --no-optional to prevent its installation on linux/windows.

Is it possible to make this fail gracefully for cross-platform setups without the optionalDependency workaround?

Target already exists

Hello,

First time that I build all is ok, but second time I have to delete my target folder to can compile, exists any type of flag like overwrite: true or something like that?

Running "appdmg:target" (appdmg) task
[ 1/20] Looking for target... [FAIL]

Error: Target already exists
Warning: Task "appdmg:target" failed. Use --force to continue.

Aborted due to warnings.

Thanks.

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.