sindresorhus / grunt-electron Goto Github PK
View Code? Open in Web Editor NEWPackage Electron apps
License: MIT License
Package Electron apps
License: MIT License
It would help a lot to have a full documentation of the available options. I had to dig through code to find this out:
'electron': {
win32: {
options: {
'version-string': {
ProductName: 'Your App Name'
require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
grunt.initConfig({
electron: {
macosBuild: {
options: {
name: 'Fixture',
dir: 'app',
out: 'dist',
version: '1.3.5',
platform: 'darwin',
arch: 'x64',
asar: true,
'asar-unpack': 'app/test/**'
}
}
}
});
grunt.registerTask('default', ['electron']);
It doesn't work.
Hello, I was wondering if there was a way in grunt to sort of make a "template" of the options so different builds can be shorter. Right now I have something like this
'electron-packager': {
buildWithIMZ: {
options: {
platform : os.platform(),
arch : os.arch(),
dir : '.',
out : '../gameBuilds/buildWithIMZ',
name : artifactIdIMZ,
executableName : 'run',
electronVersion : '1.8.2',
asar : true,
overwrite : true
}
},
buildWithoutIMZ: {
options: {
platform : os.platform(),
arch : os.arch(),
dir : '.',
out : '../gameBuilds/buildWithoutIMZ',
name : artifactIdNonIMZ,
executableName : 'run',
electronVersion : '1.8.2',
asar : true,
overwrite : true
}
but I'd like for it to be like this:
default: {
options: {
platform : os.platform(),
arch : os.arch(),
dir : '.',
executableName : 'run',
electronVersion : '1.8.2',
asar : true,
overwrite : true
}
},
buildWithIMZ: {
options: {
out : '../gameBuilds/buildWithIMZ',
name : artifactId . '-imz'
}
},
buildWithoutIMZ: {
options: {
out : '../gameBuilds/buildWithoutIMZ',
name : artifactId . '-noimz'
}
}
So that all the tasks do is just look at the rest of the options in the one named default then use what they have inside them. Is this possible or a feature to be?
Hi, I've got this issue
Warning: Must specify version Use --force to continue.
Aborted due to warnings.
While my gruntfile is something like this (in coffee) :
electron:
build:
options:{
name:'Project',
version:'0.32.0',
dir:'app',
out:'dist',
plateform:'all',
arch:'all'
}
I'm trying to use the latest version with Electron 0.37.6, node 6.1.0, npm 3.8.6 but whatever i try it keeps give me this error:
Running "create-windows-installer:x64" (create-windows-installer) task
Warning: Cannot read property 'link' of undefined Use --force to continue.
I was trying it with Windows 7 which worked well until i updated to latest and OSX with wine
Could you update the dependency (currently ^7.0.0
)?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.