Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #105 from gmfc/v0.4
Browse files Browse the repository at this point in the history
V0.4
  • Loading branch information
gmfc committed Nov 3, 2016
2 parents 37c7e13 + 50e6145 commit d10579d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
20 changes: 20 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,25 @@ gulp.task('dist:win', ['build'], function() {
});
});

gulp.task('dist:osx', ['build'], function() {
var nw = new NwBuilder({
files: ['./ui/**/**'],
platforms: ['osx64'],
//version: '0.17.6',
appVersion: pack.version,
macIcns: false,
flavor: 'normal',
appName: 'Plataforma',
buildType: 'versioned',
forceDownload: false
});
nw.on('log', console.log);
nw.build().then(function() {
console.log('all done!');
}).catch(function(error) {
console.error(error);
});
});

gulp.task('build', ['clean:js', 'rtcontrol', 'reportController', 'debugcontrol']);
gulp.task('dist', ['dist:win']);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pfnwj5",
"version": "0.3.1",
"version": "0.4.0",
"description": "plataforma de força.",
"main": "./ui/index.html",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions src/DebugController.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ function findPlat() {
var found = false;
browserserialport.list(function(err, ports) {
var counter = 0;
$('#ports').empty();
ports.forEach(function(port) {
counter++;
$('#ports').append('<div class="ui divider"></div>');
Expand Down

0 comments on commit d10579d

Please sign in to comment.