Skip to content

Commit

Permalink
Merge pull request #274 from aaronhuggins/master
Browse files Browse the repository at this point in the history
Update app to latest document server
  • Loading branch information
icewind1991 authored Nov 9, 2022
2 parents 86c6df8 + 100a0d2 commit 3c204d7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 16 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
3rdparty/onlyoffice
build
oo-extract
*.rpm
30 changes: 18 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,24 @@ clean:

3rdparty/onlyoffice/documentserver:
mkdir -p 3rdparty/onlyoffice
docker create --name oo-extract onlyoffice/documentserver:6.4.2.6
docker cp oo-extract:/var/www/onlyoffice/documentserver 3rdparty/onlyoffice
docker rm oo-extract
rm -r 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
cd 3rdparty/onlyoffice/documentserver/server/FileConverter/bin && \
../../tools/allfontsgen \
--input="../../../core-fonts" \
--allfonts-web="../../../sdkjs/common/AllFonts.js" \
--allfonts="AllFonts.js" \
--images="../../../sdkjs/common/Images" \
--output-web="../../../fonts" \
--selection="font_selection.bin"
mkdir -p oo-extract
curl -sLO https://github.com/ONLYOFFICE/DocumentServer/releases/download/v7.2.1/onlyoffice-documentserver.x86_64.rpm
cd oo-extract && rpm2cpio ../onlyoffice-documentserver.x86_64.rpm | cpio -idm
chmod -R 777 oo-extract/
cp -r oo-extract/var/www/onlyoffice/documentserver 3rdparty/onlyoffice
cp oo-extract/usr/lib64/* 3rdparty/onlyoffice/documentserver/server/FileConverter/bin/
cp oo-extract/usr/lib64/* 3rdparty/onlyoffice/documentserver/server/tools/
rm -rf oo-extract
rm -f onlyoffice-documentserver.x86_64.rpm
rm -rf 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
cd 3rdparty/onlyoffice/documentserver/server/tools && \
./allfontsgen \
--input="../../core-fonts" \
--allfonts-web="../../sdkjs/common/AllFonts.js" \
--allfonts="../FileConverter/bin/AllFonts.js" \
--images="../../sdkjs/common/Images" \
--output-web="../../fonts" \
--selection="../FileConverter/bin/font_selection.bin"
sed -i 's/if(yb===d\[a\].ka)/if(d[a]\&\&yb===d[a].ka)/' 3rdparty/onlyoffice/documentserver/sdkjs/*/sdk-all.js

version:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ We'd like to also support ARM devices like the Raspberry Pi in the future.
The community documentserver will automatically configure itself if no other document server is configured in the onlyoffice settings ("Document Editing Service address" is empty).
All other "Server settings" should be left empty.

If autoconfiguration fails for any reason, you may manually enter the url. Log in as the admin and go to Settings > ONLYOFFICE. For the ONLYOFFICE Docs address, enter the value in the format of `https://<nextcloud_server>/apps/documentserver_community/`.

## Adding fonts

You can add custom fonts to the document server using the following occ commands
Expand Down Expand Up @@ -42,7 +44,7 @@ Specific commands and paths will differ based on your specific setup.

## Setup from git

When installing from git `make` and `docker` are required.
When installing from git `make`, `curl`, `rpm2cpio`, and `cpio` are required.

- clone the repo into the Nextcloud app directory
- run `make` in the app folder to download the 3rdparty components
Expand Down
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The community document server will automatically be configured if no other docum
Additionally, the community document server only supports running on x86-64 Linux servers.]]>
</description>
<version>0.1.12</version>
<version>0.1.13</version>
<licence>agpl</licence>
<author>Robin Appelman</author>
<namespace>DocumentServer</namespace>
Expand All @@ -31,7 +31,7 @@ Additionally, the community document server only supports running on x86-64 Linu
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/main.png</screenshot>
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/new.png</screenshot>
<dependencies>
<nextcloud min-version="21" max-version="23"/>
<nextcloud min-version="21" max-version="25"/>
</dependencies>

<background-jobs>
Expand Down
2 changes: 1 addition & 1 deletion lib/OnlyOffice/WebVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

class WebVersion {
public function getWebUIVersion(): string {
return '6.4.2';
return '7.2.1';
}
}

0 comments on commit 3c204d7

Please sign in to comment.