Merge pull request #2814 from cmgustavo/feat/builder-windows-linux
Feat/builder windows linux
This commit is contained in:
commit
80a0425123
7 changed files with 138 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -13,6 +13,10 @@ cordova/*.keystore
|
||||||
cache
|
cache
|
||||||
webkitbuilds/*
|
webkitbuilds/*
|
||||||
!webkitbuilds/README.md
|
!webkitbuilds/README.md
|
||||||
|
!webkitbuilds/setup-win32.iss
|
||||||
|
!webkitbuilds/setup-win64.iss
|
||||||
|
!webkitbuilds/favicon.ico
|
||||||
|
!webkitbuilds/.desktop
|
||||||
|
|
||||||
# chrome extensions
|
# chrome extensions
|
||||||
browser-extensions/chrome/copay-chrome-extension
|
browser-extensions/chrome/copay-chrome-extension
|
||||||
|
|
|
||||||
31
Gruntfile.js
31
Gruntfile.js
|
|
@ -165,6 +165,12 @@ module.exports = function(grunt) {
|
||||||
flatten: true,
|
flatten: true,
|
||||||
src: 'bower_components/foundation-icon-fonts/foundation-icons.*',
|
src: 'bower_components/foundation-icon-fonts/foundation-icons.*',
|
||||||
dest: 'public/icons/'
|
dest: 'public/icons/'
|
||||||
|
},
|
||||||
|
linux: {
|
||||||
|
files: [
|
||||||
|
{expand: true, cwd: 'webkitbuilds/',src: '.desktop',dest: 'webkitbuilds/copay/linux32/', flatten: true, filter: 'isFile' },
|
||||||
|
{expand: true, cwd: 'webkitbuilds/',src: '.desktop',dest: 'webkitbuilds/copay/linux64/', flatten: true, filter: 'isFile' },
|
||||||
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
karma: {
|
karma: {
|
||||||
|
|
@ -194,6 +200,26 @@ module.exports = function(grunt) {
|
||||||
exeIco: './public/img/icons/icon.ico'
|
exeIco: './public/img/icons/icon.ico'
|
||||||
},
|
},
|
||||||
src: ['./package.json', './public/**/*']
|
src: ['./package.json', './public/**/*']
|
||||||
|
},
|
||||||
|
compress: {
|
||||||
|
linux32: {
|
||||||
|
options: {
|
||||||
|
archive: './webkitbuilds/copay-linux32.zip'
|
||||||
|
},
|
||||||
|
expand: true,
|
||||||
|
cwd: './webkitbuilds/copay/linux32/',
|
||||||
|
src: ['**/*'],
|
||||||
|
dest: 'copay-linux32/'
|
||||||
|
},
|
||||||
|
linux64: {
|
||||||
|
options: {
|
||||||
|
archive: './webkitbuilds/copay-linux64.zip'
|
||||||
|
},
|
||||||
|
expand: true,
|
||||||
|
cwd: './webkitbuilds/copay/linux64/',
|
||||||
|
src: ['**/*'],
|
||||||
|
dest: 'copay-linux64/'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -208,9 +234,10 @@ module.exports = function(grunt) {
|
||||||
grunt.loadNpmTasks('grunt-karma');
|
grunt.loadNpmTasks('grunt-karma');
|
||||||
grunt.loadNpmTasks('grunt-karma-coveralls');
|
grunt.loadNpmTasks('grunt-karma-coveralls');
|
||||||
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
grunt.loadNpmTasks('grunt-node-webkit-builder');
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-compress');
|
||||||
|
|
||||||
grunt.registerTask('default', [
|
grunt.registerTask('default', [
|
||||||
'nggettext_compile', 'exec:version', 'concat', 'copy'
|
'nggettext_compile', 'exec:version', 'concat', 'copy:icons'
|
||||||
]);
|
]);
|
||||||
grunt.registerTask('prod', [
|
grunt.registerTask('prod', [
|
||||||
'default', 'uglify'
|
'default', 'uglify'
|
||||||
|
|
@ -218,5 +245,5 @@ module.exports = function(grunt) {
|
||||||
grunt.registerTask('translate', ['nggettext_extract']);
|
grunt.registerTask('translate', ['nggettext_extract']);
|
||||||
grunt.registerTask('test', ['karma:unit']);
|
grunt.registerTask('test', ['karma:unit']);
|
||||||
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
grunt.registerTask('test-coveralls', ['karma:prod', 'coveralls']);
|
||||||
grunt.registerTask('desktop', ['prod', 'nodewebkit']);
|
grunt.registerTask('desktop', ['prod', 'nodewebkit', 'copy-linux', 'compress-linux32', 'compress-linux64']);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -59,6 +59,8 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"angular": "^1.3.14",
|
"angular": "^1.3.14",
|
||||||
"angular-mocks": "^1.3.14",
|
"angular-mocks": "^1.3.14",
|
||||||
|
"grunt-contrib-compress": "^0.13.0",
|
||||||
|
"grunt-contrib-copy": "^0.8.0",
|
||||||
"grunt-karma": "^0.10.1",
|
"grunt-karma": "^0.10.1",
|
||||||
"grunt-karma-coveralls": "^2.5.3",
|
"grunt-karma-coveralls": "^2.5.3",
|
||||||
"grunt-node-webkit-builder": "^1.0.2",
|
"grunt-node-webkit-builder": "^1.0.2",
|
||||||
|
|
|
||||||
9
webkitbuilds/.desktop
Normal file
9
webkitbuilds/.desktop
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Version=1.0.1
|
||||||
|
Name=Copay
|
||||||
|
Comment=A multisignature wallet
|
||||||
|
Exec=copay
|
||||||
|
Icon=favicon.ico
|
||||||
|
Terminal=false
|
||||||
|
Categories=Finance
|
||||||
BIN
webkitbuilds/favicon.ico
Normal file
BIN
webkitbuilds/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
46
webkitbuilds/setup-win32.iss
Normal file
46
webkitbuilds/setup-win32.iss
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
|
#define MyAppName "Copay"
|
||||||
|
#define MyAppVersion "1.0.1"
|
||||||
|
#define MyAppPublisher "BitPay"
|
||||||
|
#define MyAppURL "https://copay.io"
|
||||||
|
#define MyAppExeName "copay.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
|
DefaultGroupName={#MyAppName}
|
||||||
|
OutputBaseFilename=copay-installer-32
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
||||||
|
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
|
||||||
|
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "copay\win32\copay.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "copay\win32\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
Source: "favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; WorkingDir: "{app}"; IconFilename: "{app}/icon.ico"
|
||||||
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}/icon.ico"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
46
webkitbuilds/setup-win64.iss
Normal file
46
webkitbuilds/setup-win64.iss
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
; Script generated by the Inno Setup Script Wizard.
|
||||||
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
||||||
|
|
||||||
|
#define MyAppName "Copay"
|
||||||
|
#define MyAppVersion "1.0.1"
|
||||||
|
#define MyAppPublisher "BitPay"
|
||||||
|
#define MyAppURL "https://copay.io"
|
||||||
|
#define MyAppExeName "copay.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
AppId={804636ee-b017-4cad-8719-e58ac97ffa5c}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={pf}\{#MyAppName}
|
||||||
|
DefaultGroupName={#MyAppName}
|
||||||
|
OutputBaseFilename=copay-installer-64
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
||||||
|
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
|
||||||
|
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "copay\win64\copay.exe"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "copay\win64\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
||||||
|
Source: "favicon.ico"; DestDir: "{app}"; DestName: "icon.ico"; Flags: ignoreversion
|
||||||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; WorkingDir: "{app}"; IconFilename: "{app}/icon.ico"
|
||||||
|
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "{app}/icon.ico"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue