Build Copay for OSX, Linux and Windows

This commit is contained in:
Gustavo Maximiliano Cortez 2015-05-28 10:52:33 -03:00
commit c0b496c7e7
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
15 changed files with 759 additions and 101 deletions

View file

@ -370,7 +370,7 @@ angular
needProfile: false
});
})
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService, $timeout) {
.run(function($rootScope, $state, $log, gettextCatalog, uriHandler, isCordova, amMoment, profileService, $timeout, nodeWebkit) {
FastClick.attach(document.body);
// Auto-detect browser language
@ -392,6 +392,14 @@ angular
uriHandler.register();
}
if (nodeWebkit.isDefined()) {
var gui = require('nw.gui');
var win = gui.Window.get();
var nativeMenuBar = new gui.Menu({ type: "menubar" });
nativeMenuBar.createMacBuiltin("Copay");
win.menu = nativeMenuBar;
}
var pageWeight = {
walletHome: 0,
copayers: -1,