Package Details: drawio-desktop 12.6.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
Licenses: Apache
Submitter: kitsunyan
Maintainer: dvalter
Last Packager: dvalter
Votes: 20
Popularity: 0.77
First Submitted: 2017-12-11 20:40
Last Updated: 2020-02-08 23:08

Latest Comments

1 2 3 Next › Last »

dvalter commented on 2020-01-15 14:40

@zack6849 valid point, I should not use releases, considered unstable by drawio author.

larsrh commented on 2020-01-15 13:53

@dvalter Thanks!

zack6849 commented on 2020-01-15 13:27

https://github.com/jgraph/drawio-desktop/issues/199#issuecomment-574590238

Any thoughts on this, @dvalter?

Thanks!

dvalter commented on 2020-01-14 09:45

@larsrh, thank you for pointing out, now it's fixed

larsrh commented on 2020-01-14 08:54

Please remove the gconf dependency, it's unneeded (see also https://aur.archlinux.org/packages/gconf/)

dvalter commented on 2020-01-02 18:01

@danhyal I disagree because packaging (on top of system-wide Electron) is fairly fast and simple, and usage of distro Electron instead of bundled seems fairly reasonable in GNU/Linux.

danhyal commented on 2020-01-01 21:07

should delete this package since drawio-desktop-bin is a better solution.

dvalter commented on 2019-12-26 19:08

@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

@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

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"