diff --git a/apps/api/documents/index.html b/apps/api/documents/index.html deleted file mode 100644 index 82fbc7009..000000000 --- a/apps/api/documents/index.html +++ /dev/null @@ -1,346 +0,0 @@ - - - - ONLYOFFICE Documents - - - - - - - - - - - - -
-
-
- - - - - diff --git a/build/Gruntfile.js b/build/Gruntfile.js index f897a9e2b..2fea71b20 100644 --- a/build/Gruntfile.js +++ b/build/Gruntfile.js @@ -423,8 +423,10 @@ module.exports = function(grunt) { grunt.file.write(defaultConfig, JSON.stringify(pkg, null, 4)); }); + //quick workaround for build desktop version + var apiCopyTask = grunt.option('desktop')? "copy": "copy:script"; - grunt.registerTask('deploy-api', ['api-init', 'clean', 'copy', 'replace:writeVersion']); + grunt.registerTask('deploy-api', ['api-init', 'clean', apiCopyTask, 'replace:writeVersion']); grunt.registerTask('deploy-sdk', ['sdk-init', 'clean', 'copy']); grunt.registerTask('deploy-sockjs', ['sockjs-init', 'clean', 'copy']); @@ -482,4 +484,4 @@ module.exports = function(grunt) { 'deploy-documenteditor-component', 'deploy-spreadsheeteditor-component', 'deploy-presentationeditor-component']); -}; \ No newline at end of file +}; diff --git a/build/common.json b/build/common.json index 67e3bc2ea..c1ccf90d9 100644 --- a/build/common.json +++ b/build/common.json @@ -64,6 +64,10 @@ "!**/*.desktop" ], "dest": "../deploy/web-apps/apps/api/" + }, + "desktop": { + "src": "../apps/api/documents/index.html.desktop", + "dest": "../deploy/web-apps/apps/api/documents/index.html" } } },