Commit edfb4296 authored by carlosperate's avatar carlosperate

Electron: Update app info and windows executable properties.

parent 2c638079
......@@ -5,11 +5,19 @@
"description": "Visual programming for Arduino",
"version": "0.1.0",
"author": "carlosperate",
"homepage": "http://ardublockly.embeddedlog.com/",
"main": "main.js",
"config": {
"target": "development"
},
"dependencies": {
"fs-jetpack": "^0.6.4"
},
"repository" : {
"type" : "git",
"url" : "https://github.com/carlosperate/ardublockly.git"
},
"bugs" : {
"url" : "https://github.com/carlosperate/ardublockly/issues"
}
}
......@@ -45,11 +45,20 @@ var finalize = function () {
projectDir.copy('resources/windows/icon.ico', readyAppDir.path('icon.ico'));
readyAppDir.rename('electron.exe', manifest.name + '.exe');
// Replace Electron icon and versions
// Replace Electron icon and versions
var copyrightString = 'Copyright (C) ' + new Date().getFullYear() + ' ' +
manifest.author + ' ' + manifest.homepage;
var rcedit = require('rcedit');
rcedit(readyAppDir.path(manifest.name + '.exe'), {
icon: projectDir.path('resources/windows/icon.ico'),
"file-version": manifest.version
'file-version': manifest.version,
'product-version': manifest.version,
'version-string': {
'ProductName': manifest.productName,
'FileDescription': manifest.description,
'LegalCopyright': copyrightString,
'CompanyName': ' '
}
}, function (err) {
if (!err) {
deferred.resolve();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment