OnlyOffice compiled with Mobile Edit Back

Hi, sorry for the late update but i was away for work and then on leave 3 weeks.
I have some problems building v8.1.0 and v8.1.1 and I’m investigating what changed.

5 Likes

@genderneutralnoun This solution only allows editing documents but there is no UI for changing colors or fonts …

Yeah, I noticed. I’m wondering if there’s another such setting in the same file that’s related…

any update?

Thank you very much for your work

For those who wants to try to build themselves. GitHub - jefriabdullah/build_tools: Used to build ONLYOFFICE DocumentServer-related products

I can confirm able to build 8.1.3.3 but not sure if the mobile edit is working, web-apps is patched during build.

Credit: @thomisus @adriangibanelbtactic

3 Likes

hello @Jefri_Abdullah, Hello, have you tested the mobile version? I’ll try installing it to see what it does.

Yunohost seems to be using debian packages from OnlyOffice themselves:

https://github.com/YunoHost-Apps/onlyoffice_ynh/blob/8b13d8ce71d3cbdc4c8691a41627c62b1715be3d/manifest.toml#L73

[resources.sources.main]
amd64.url = "https://github.com/ONLYOFFICE/DocumentServer/releases/download/v8.1.1/onlyoffice-documentserver_amd64.deb"

So it does not make sense to ask them for a pull request for this specific change.

I don’t think they would be willing to maintain their own repos.
Or accept binaries different to the official ones.

Regarding what to change to enable edit you can check: https://github.com/btactic-oo/web-apps/commit/140ef6d1d687532dcb03b05912838b8b4cf161a3.

I have made recently a how-to on how to build OnlyOffice with mobile edit and other improvements which generates a deb file.

If you ever ask them to consider this improvement give them the link so that it can somehow convince them to maintain their own repos.

Hi All,

i finally updated my docker build and published version 8.1.3.

Could you please try it?
:slight_smile:

4 Likes

Hi thomisus.

Do you have documented in public anywhere how you release/publish your docker builds?

I don’t discard integrating Docker build into our Debian package builds in the future (not in a short time though).

I have already taken a look at: Docker-DocumentServer/.github/workflows/stable-build.yml at aeba194cf1d512b4dee2133d6420d213ca366085 · ONLYOFFICE/Docker-DocumentServer · GitHub but I’m not sure if it’s a good approach.

In any case I wouldn’t be publishing in docker registry but in the github registry.

Thank you.

I simply manually do docker a

docker build . -t onlyoffice-documentserver-unlimited:$TAG

after cloning my repo. It’s not automated yet.
The only difference from the official one is that it downloads my deb from github, then in startup script run-document-server.sh fix mobile editing with

/bin/bash -c "sed -i 's/isSupportEditFeature=function(){return!1}/isSupportEditFeature=function(){return 1}/g' /var/www/onlyoffice/documentserver/web-apps/apps/*/mobile/dist/js/app.js;"

My images are both on github and docker hub :wink:

2 Likes

working

Thanks for providing
Thanks

1 Like

Hi! So nice, thanks. Will you be able to compile the most recent version 8.2 as well?

1 Like

cant open pdf files with onlyoffice on nextcloud.
Can someone confirm.
Thanks

Hi thomisus,

I tried use your repository, and build the debian package, and build the docker. But It appears that the connection restriction is still in effect.

Am I doing something wrong? I clone all your repo, and put them in a build directory. Then I just used your build-tools repo and run the automate.py, after that, I cwd to [document-server-package ] and run make.

Then use the output deb file and manually update the dockerfile in
Docker-DocumentServer to get from my deb file location.

Woks for me, maybe you need to disable the nextcloud pdf-viewer? And alter the onlyoffice cobfig to open pdf?

How to disable nextcloud pdf viewer?

edit

got it and now working

thanks

Are you using the correct tag?
If you want to build in an automated way @adriangibanelbtactic repository is well documented.
I suggest to use his repository to build onlyoffice deb, it’s easier.
Yu can even use his deb to build yourself a docker image.
The trick to enable mobile editing is in this post: OnlyOffice compiled with Mobile Edit Back - #293 by thomisus

I get the main idea of what you do, yes.

But how do you release/publish that (specially for github docker registry or whatever it’s called) ?

I don’t see any documentation of that anywhere.

Thank you.

I have several dedicated vm at work that I use to test things. Here is my simple docker build script:

#!/bin/bash

export PROD_V=8.1.3
export BUILD_N=1

##################################################################################

cd /opt
git clone https://github.com/thomisus/Docker-DocumentServer.git --branch v$PROD_V
cd /opt/Docker-DocumentServer

docker build . -t onlyoffice-documentserver-unlimited:$PROD_V  && \
docker tag onlyoffice-documentserver-unlimited:$PROD_V ghcr.io/thomisus/onlyoffice-documentserver-unlimited:$PROD_V && \
docker tag onlyoffice-documentserver-unlimited:$PROD_V thomisus/onlyoffice-documentserver-unlimited:$PROD_V && \
docker push ghcr.io/thomisus/onlyoffice-documentserver-unlimited:$PROD_V &&
docker push thomisus/onlyoffice-documentserver-unlimited:$PROD_V && \
docker tag onlyoffice-documentserver-unlimited:$PROD_V ghcr.io/thomisus/onlyoffice-documentserver-unlimited:latest && \
docker tag onlyoffice-documentserver-unlimited:$PROD_V thomisus/onlyoffice-documentserver-unlimited:latest && \
echo "all done" && \
docker push ghcr.io/thomisus/onlyoffice-documentserver-unlimited:latest &&
docker push thomisus/onlyoffice-documentserver-unlimited:latest

Clearly, the best solution would be to create a workflow for ci, but i don’t have much time to spend on it. Publishing Docker images - GitHub Docs

2 Likes