ONLYOFFICE / build_tools

Used to build ONLYOFFICE DocumentServer-related products
https://www.onlyoffice.com
GNU Affero General Public License v3.0
104 stars 186 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 month ago

PlatonaBoy commented 1 month 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 3 weeks ago

same question

yuanphoenix commented 3 weeks ago

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

igwyd commented 3 weeks ago

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

vulgarcoder commented 3 weeks 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 3 weeks 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 3 weeks ago

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

It works for me too

yuanphoenix commented 3 weeks 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 3 weeks 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 3 weeks 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.