Skip to content

Add Euro-Office (euro-office) #3032

Closed
Closed

Description

@Jensenduwang91

1. Name

euro-office

2. Main site, repository or reference web page

https://github.com/Euro-Office

3. Download page

No response

4. Description of the application

Open-source office suite (fork of ONLYOFFICE) for documents, spreadsheets, presentations, and PDFs.

5. URL to the application icon

Bundled inside the release tarball at usr/share/icons/hicolor/256x256/apps/euro-office-euro-office.png (copied directly in the script below)

6. The .desktop* file

Name=Euro-Office
Exec=/usr/local/bin/euro-office %U
Categories=Office;

This is the script 'appman -t' generated (adjusted for the binary needing to be executed from inisde its own folder.)

#!/bin/sh

# AM INSTALL SCRIPT VERSION 3.5
set -u
APP=euro-office
SITE="Euro-Office/DesktopEditors"

# CREATE DIRECTORIES AND ADD REMOVER
[ -n "$APP" ] && mkdir -p "/opt/$APP/tmp" "/opt/$APP/icons" && cd "/opt/$APP/tmp" || exit 1
printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > ../remove
printf '\n%s' "rm -f /usr/local/share/applications/$APP-AM.desktop" >> ../remove
chmod a+x ../remove || exit 1

# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
version=$(curl -Ls https://api.github.com/repos/Euro-Office/DesktopEditors/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*download.*" | grep -vi "i386\|i686\|armhf\|aarch64\|arm64\|armv7l" | grep -i "x86_64.tar.xz" | head -1)
wget "$version" || exit 1
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
[ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
cd ..
if [ -d ./tmp/* 2>/dev/null ]; then mv ./tmp/*/* ./; else mv ./tmp/* ./"$APP" 2>/dev/null || mv ./tmp/* ./; fi
rm -R -f ./tmp || exit 1
echo "$version" > ./version
chmod a+x ./*/$APP/$APP/DesktopEditors || exit 1

# LINK TO PATH
printf '#!/bin/sh\nDIR="/opt/euro-office/%s/euro-office/euro-office"\ncd "$DIR" || exit 1\nLD_LIBRARY_PATH="$DIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" exec "$DIR/DesktopEditors" "$@"\n' "opt" > "/usr/local/bin/$APP"
chmod a+x "/usr/local/bin/$APP"

# SCRIPT TO UPDATE THE PROGRAM
cat >> ./AM-updater << 'EOF'
#!/bin/sh
set -u
APP=euro-office
SITE="Euro-Office/DesktopEditors"
version0=$(cat "/opt/$APP/version")
version=$(curl -Ls https://api.github.com/repos/Euro-Office/DesktopEditors/releases/latest | sed 's/[()",{} ]/\n/g' | grep -oi "https.*download.*" | grep -vi "i386\|i686\|armhf\|aarch64\|arm64\|armv7l" | grep -i "x86_64.tar.xz" | head -1)
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
if [ "$version" != "$version0" ]; then
        mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1
        notify-send "A new version of $APP is available, please wait"
        wget "$version" || exit 1
        [ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
        [ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
        [ -e ./*zip ] && unzip -qq ./*zip 1>/dev/null && rm -f ./*zip
        cd ..
        if [ -d ./tmp/* 2>/dev/null ]; then mv --backup=t ./tmp/*/* ./; else mv --backup=t ./tmp/* ./"$APP" 2>/dev/null || mv --backup=t ./tmp/* ./; fi
        chmod a+x ./*/$APP/$APP/DesktopEditors || exit 1
        echo "$version" > ./version
        rm -R -f ./tmp ./*~
        notify-send "$APP is updated!"
else
        echo "Update not needed!"
fi
EOF
chmod a+x ./AM-updater || exit 1

# ICON
mkdir -p icons
cp ./usr/share/icons/hicolor/256x256/apps/euro-office-euro-office.png ./icons/"$APP".png

# LAUNCHER
echo "[Desktop Entry]
Name=Euro-Office
Exec=/usr/local/bin/$APP
Icon=/opt/$APP/icons/$APP.png
Type=Application
Terminal=false
Categories=Office;" > /usr/local/share/applications/"$APP"-AM.desktop

Activity

  1. ivan-hc commented on Nov 16, 2026

    @ivan-hc
    Owner

    Hi, I suppose that you have Arch Linux or some distro that have QT libraries on the host system. This would explain the reason because the app works for you and not on my Debian with XFCE. The app does not work for me, using the archive, so it is not portable.

    I can't add this app to AM. Sorry.

    However, I joined Euro-Office/DesktopEditors#111 to share few tips to made it built as an AppImage.

    I close this issue for now. But if you need to use the app on your system with AM and it works for you, you can still use

    am -i /path/to/your/script/euro-office
    

    Since you are able to create/edit these scripts, it would be not a problem for you to use them.

    I hope they accept to convert it to an AppImage btw, so AM can handle it even better. By converting their ~500 MB archive I obtained a ~700 MB AppImage that, using delta updates, would be easier/faster to download using appimageupdatetool

    Please ping me if there are some news, so I can re-open this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions