Package Details: drawio-desktop 24.2.5-1

Git Clone URL: https://aur.archlinux.org/drawio-desktop.git (read-only, click to copy)
Package Base: drawio-desktop
Description: Diagram drawing application built on web technology
Upstream URL: https://github.com/jgraph/drawio-desktop
Licenses: Apache-2.0
Submitter: kitsunyan
Maintainer: dvalter
Last Packager: dvalter
Votes: 67
Popularity: 3.54
First Submitted: 2017-12-11 20:40 (UTC)
Last Updated: 2024-04-14 18:34 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

dvalter commented on 2019-12-26 19:08 (UTC)

@BrLi pretty much it is. Java's not used in drawio-desktop, it's rather a tool to deploy drawio as web application.

I've failed to fully understand ant targets the last time, so "javac" was a bit too much. src/main/webapp is used as a target directory, and it's affected by "merge" and "app" targets, so calling 'ant app' should be enough.

brli commented on 2019-12-24 18:35 (UTC) (edited on 2019-12-24 18:36 (UTC) by brli)

@dvalter can you explain more on how drawio desktop works with the java files?

IMO, the .war is very likely the same as drawio/webapp/

dvalter commented on 2019-12-13 15:34 (UTC)

I think using sources rather than prebuilt .war is more correct for a sorce-based packaging. The following patch enables to build drawio from source tarball with only one additional make dependency: ant

diff --git a/PKGBUILD b/PKGBUILD
index 8a1f1d2..b3996cf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,36 @@
 # Maintainer: Marko Korhonen <reekymarko@reekynet.com>

 pkgname=drawio-desktop
-pkgver=12.1.7
+pkgver=12.3.9
 pkgdesc='Diagram drawing application built on web technology'
 arch=('x86_64')
 url='https://github.com/jgraph/drawio'
 license=('Apache')
 depends=(electron gconf libnotify)
-makedepends=(npm)
-source=("drawio-desktop-$pkgver.zip::https://github.com/jgraph/drawio/releases/download/v$pkgver/draw.war")
-noextract=("drawio-desktop-$pkgver.zip")
-sha256sums=('147fe5883c3dac170941993ec1652f9c253a8c872bc70f6708c19aef825d8bef')
+makedepends=(npm ant)
+source=("https://github.com/jgraph/drawio/archive/v$pkgver.tar.gz")
+sha256sums=('8ca119a7e210f59b9a2b1ca472ccb7e8a09bc84a2a30dcec08a6b587f8cf92fc')

-prepare() {
-  rm -rf "$srcdir/drawio-$pkgver"
-  mkdir "$srcdir/drawio-$pkgver"
-  cd "$srcdir/drawio-$pkgver"
+build() {
+  cd "$srcdir/drawio-$pkgver"/etc/build
+  ant javac
+  cd "$srcdir/drawio-$pkgver"/src/main/webapp

-  bsdtar -xf "../drawio-desktop-$pkgver.zip" -C .
   rm -rf "META-INF" "WEB-INF"

   # disable updater
   sed -e '/electron-updater/d' -i 'package.json'
   local updater='const autoUpdater = { on: () => {}, setFeedURL: () => {}, checkForUpdates: () => {} }'
   sed -e 's/.*require("electron-updater").*/'"$updater"'/' -e '/checkForUpdates,/d' -i 'electron.js'
-}
-
-build() {
-  cd "$srcdir/drawio-$pkgver"

   npm install --cache ../npm-cache --only=production
   rm -f 'package-lock.json'
 }

 package() {
-  cd "$srcdir/drawio-$pkgver"
+  cd "$srcdir/drawio-$pkgver"/src/main/webapp

   mkdir -p "$pkgdir/usr/lib"
   cp -rp . "$pkgdir/usr/lib/draw.io"

brli commented on 2019-12-10 13:27 (UTC) (edited on 2019-12-24 18:35 (UTC) by brli)

the .war is in fact zip format file, you can safely extract it by makepkg without manually utilize the noextract and bsdtar in prepare()

FunctionalHacker commented on 2019-10-04 09:59 (UTC)

@dvalter good catch, I have updated the PKGBUILD

dvalter commented on 2019-10-03 21:40 (UTC)

@ReekyMarko since draw.io 12.x supports CLI batch mode (which is quite helpful), could you please review reverting c634c92. This commit suppresses an output for console launches of draw.io, so it prevents users from taking full advantage of the CLI interface.

brli commented on 2019-09-06 13:11 (UTC)

@madjoe, try to update to the latest version of the system and the application.

madjoe commented on 2019-08-13 21:15 (UTC)

I have drawio-desktop from AUR repo (Manjaro x64). Version of the app is 11.0.5. There is an output from my System Log Viewer, whilst trying to "Export as..." > "PNG" into "~/Documents/Test" directory as "Untitled Diagram.png":

      1. 20:52 plasmashell New URI "file:///home/joe/Documents/Test" "" ""
      1. 20:52 plasmashell New URI "" "" ""

As a test content, I used an unchanged template from Maps... here's an XML output of my content: http://pasted.co/1a13e491

I restarted my system and tried again with the same outcome. I tried to save a project by "Save as..." > "Untitled Diagram.drawio" to the same location (accessible and writable by any other app) without any success. Writing a file seems impossible for Draw.io.

Any ideas what's happening here?

Thanks, madjoe