2019-01-06 14:32:31 +01:00
|
|
|
module.exports = function(grunt) {
|
|
|
|
grunt.registerTask('build-web-app', [
|
|
|
|
'gitinfo',
|
|
|
|
'clean',
|
|
|
|
'eslint',
|
|
|
|
'copy:html',
|
|
|
|
'copy:favicon',
|
|
|
|
'copy:icons',
|
|
|
|
'copy:manifest',
|
|
|
|
'copy:fonts',
|
2019-10-12 13:24:37 +02:00
|
|
|
'webpack:app',
|
2019-01-06 14:32:31 +01:00
|
|
|
'inline',
|
|
|
|
'htmlmin',
|
2020-04-02 16:27:10 +02:00
|
|
|
'csp-hashes',
|
|
|
|
'copy:html-dist',
|
2020-04-09 18:36:56 +02:00
|
|
|
'copy:404-dist',
|
2019-09-23 20:32:56 +02:00
|
|
|
'string-replace:service-worker',
|
2019-01-06 14:32:31 +01:00
|
|
|
'string-replace:manifest',
|
|
|
|
'copy:dist-icons',
|
|
|
|
'copy:dist-manifest'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-app-content', [
|
2019-09-28 20:27:39 +02:00
|
|
|
'copy:desktop-html',
|
2019-01-06 14:32:31 +01:00
|
|
|
'copy:desktop-app-content',
|
2019-09-23 20:32:56 +02:00
|
|
|
'string-replace:desktop-public-key'
|
2019-01-06 14:32:31 +01:00
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-update', [
|
|
|
|
'copy:desktop-update',
|
|
|
|
'copy:desktop-update-helper',
|
|
|
|
'sign-desktop-files:desktop-update',
|
|
|
|
'compress:desktop-update',
|
|
|
|
'sign-archive:desktop-update',
|
|
|
|
'validate-desktop-update'
|
|
|
|
]);
|
|
|
|
|
2020-04-04 10:52:53 +02:00
|
|
|
grunt.registerTask('build-desktop-executables-linux', [
|
|
|
|
'electron:linux',
|
|
|
|
'chmod:linux-desktop-x64'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-executables-darwin', ['electron:darwin']);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-executables-win32', [
|
|
|
|
'electron:win32',
|
2019-01-06 14:32:31 +01:00
|
|
|
'sign-exe:win32-build-x64',
|
|
|
|
'sign-exe:win32-build-ia32',
|
|
|
|
'copy:desktop-windows-helper-ia32',
|
2020-04-04 10:52:53 +02:00
|
|
|
'copy:desktop-windows-helper-x64'
|
2019-01-06 14:32:31 +01:00
|
|
|
]);
|
|
|
|
|
2020-04-04 10:52:53 +02:00
|
|
|
grunt.registerTask('build-desktop-executables', [
|
|
|
|
'build-desktop-executables-linux',
|
|
|
|
'build-desktop-executables-darwin',
|
|
|
|
'build-desktop-executables-win32'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-archives-linux', ['compress:linux-x64']);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-archives-win32', [
|
2019-01-06 14:32:31 +01:00
|
|
|
'compress:win32-x64',
|
2020-04-04 10:52:53 +02:00
|
|
|
'compress:win32-ia32'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-archives', [
|
|
|
|
'build-desktop-archives-linux',
|
|
|
|
'build-desktop-archives-win32'
|
2019-01-06 14:32:31 +01:00
|
|
|
]);
|
|
|
|
|
2019-10-27 10:39:00 +01:00
|
|
|
grunt.registerTask('build-desktop-dist-darwin', ['appdmg']);
|
2019-01-06 14:32:31 +01:00
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-dist-win32', [
|
|
|
|
'nsis:win32-un-x64',
|
|
|
|
'nsis:win32-un-ia32',
|
|
|
|
'sign-exe:win32-uninst-x64',
|
|
|
|
'sign-exe:win32-uninst-ia32',
|
|
|
|
'nsis:win32-x64',
|
|
|
|
'nsis:win32-ia32',
|
|
|
|
'sign-exe:win32-installer-x64',
|
|
|
|
'sign-exe:win32-installer-ia32',
|
|
|
|
'copy:desktop-win32-dist-x64',
|
|
|
|
'copy:desktop-win32-dist-ia32'
|
|
|
|
]);
|
|
|
|
|
2020-03-17 22:46:21 +01:00
|
|
|
grunt.registerTask('build-desktop-dist-linux', [
|
|
|
|
'deb:linux-x64',
|
|
|
|
'electron-builder:linux',
|
|
|
|
'copy:electron-builder-dist-linux-rpm',
|
|
|
|
'copy:electron-builder-dist-linux-snap',
|
|
|
|
'copy:electron-builder-dist-linux-appimage'
|
|
|
|
]);
|
2019-01-06 14:32:31 +01:00
|
|
|
|
|
|
|
grunt.registerTask('build-desktop-dist', [
|
|
|
|
'build-desktop-dist-darwin',
|
|
|
|
'build-desktop-dist-win32',
|
|
|
|
'build-desktop-dist-linux'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('build-desktop', [
|
|
|
|
'gitinfo',
|
|
|
|
'clean:desktop',
|
|
|
|
'build-desktop-app-content',
|
|
|
|
'build-desktop-executables',
|
|
|
|
'build-desktop-update',
|
|
|
|
'build-desktop-archives',
|
|
|
|
'build-desktop-dist',
|
|
|
|
'sign-dist'
|
|
|
|
]);
|
|
|
|
|
2019-08-16 23:05:39 +02:00
|
|
|
grunt.registerTask('build-cordova-app-content', ['string-replace:cordova-html']);
|
2019-01-06 14:32:31 +01:00
|
|
|
|
2019-08-16 23:05:39 +02:00
|
|
|
grunt.registerTask('build-cordova', ['gitinfo', 'clean:cordova', 'build-cordova-app-content']);
|
2019-10-12 13:24:37 +02:00
|
|
|
|
|
|
|
grunt.registerTask('build-test', ['webpack:test']);
|
2019-01-06 14:32:31 +01:00
|
|
|
};
|