ONLYOFFICE / build_tools

Used to build ONLYOFFICE DocumentServer-related products
https://www.onlyoffice.com
GNU Affero General Public License v3.0
102 stars 183 forks source link

"After compilation, the api.js file was not generated, and there is an api.js.tpl file instead, which prevents the system from functioning." #880

Open PlatonaBoy opened 1 week ago

PlatonaBoy commented 1 week ago

Description: After compiling the project, the expected api.js file was not created. Instead, an api.js.tpl file was generated, which is preventing the system from functioning correctly.

Steps to reproduce the problem:

Clone the repository and ensure you have the latest master of build_tools. Run the compilation process. Check the output directory for the presence of the api.js file. build_tools base repo version: Operating system: ubnutu20.4

Compiler version: 8.2.0

yuanphoenix commented 6 days ago

same question

yuanphoenix commented 6 days ago

But you can rename it to api.js It works ok

igwyd commented 5 days ago

Hello, thank you for the report, i confirm this is bug, issue #71385

vulgarcoder commented 4 days ago

I just modified the deploy_server.py file by changing 'base.move_file' to 'base.copy_file' on line 117, and now the build works fine.

yuanphoenix commented 4 days ago

I just modified the deploy_server.py file by changing 'base.move_file' to 'base.copy_file' on line 117, and now the build works fine.

It is a good solution!

zsy1314 commented 1 day ago

But you can rename it to api.js It works ok

It works for me too

yuanphoenix commented 1 day ago

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

zsy1314 commented 1 day ago

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

I don't know which icons you are referring to, the icons on the top toolbar are not missing. But when I used version 7.2.1, I encountered the situation where the icons on the top toolbar disappeared after compiling. At that time, I manually copied the icons in the source file to the corresponding path.

# word
\web-apps\apps\documenteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\documenteditor\main\resources\img
# ppt
\web-apps\apps\presentationeditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\presentationeditor\main\resources\img
# excel
\web-apps\apps\spreadsheeteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\spreadsheeteditor\main\resources\img
# common1
\web-apps\apps\common\main\resources\img\controls
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\controls
# common2
\web-apps\apps\common\main\resources\img\toolbar
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\toolbar
# Restart DocumentServer

I don't know if it's still valid now.

yuanphoenix commented 1 day ago

But you can rename it to api.js It works ok

It works for me too

Do you have another question like miss the Icons?

I don't know which icons you are referring to, the icons on the top toolbar are not missing. But when I used version 7.2.1, I encountered the situation where the icons on the top toolbar disappeared after compiling. At that time, I manually copied the icons in the source file to the corresponding path.

# word
\web-apps\apps\documenteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\documenteditor\main\resources\img
# ppt
\web-apps\apps\presentationeditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\presentationeditor\main\resources\img
# excel
\web-apps\apps\spreadsheeteditor\main\resources\img
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\spreadsheeteditor\main\resources\img
# common1
\web-apps\apps\common\main\resources\img\controls
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\controls
# common2
\web-apps\apps\common\main\resources\img\toolbar
\build_tools\out\linux_64\onlyoffice\documentserver\web-apps\apps\common\main\resources\img\toolbar
# Restart DocumentServer

I don't know if it's still valid now.

Okay,Thank you.