drawio-desktop README

The project's README from github.com/jgraph/drawio-desktop. As one markdown file: README.md.

About

drawio-desktop is a diagramming desktop app based on Electron that wraps the core draw.io editor.

Download built binaries from the releases section.

Can I use this app for free? Yes, under the apache 2.0 license. If you don't change the code and accept it is provided "as-is", you can use it for any purpose.

Windows installation

Three flavours of Windows download are published on the releases page:

The Microsoft Store (APPX) build is also installable per-user without admin rights via the Store.

Windows on Arm

draw.io Desktop is built natively for Windows on Arm (ARM64) and is supported on Windows 11 ARM64 devices. Two native ARM64 downloads are published with every release:

The MSI and Microsoft Store builds are x64 only and run under emulation on ARM64 devices. ARM64 builds up to and including 31.4.4 were shipped with auto-update disabled; install a newer release manually once, after which the ARM64 build updates itself like x64.

Linux installation

If you manage AppImages with AppImageLauncher, you need a 3.0 release of it (currently labelled beta). Since 31.4.2 the AppImage uses the static AppImage runtime so that it no longer depends on the end-of-life libfuse2, and AppImageLauncher 2.2.0, the last stable release, cannot load a static runtime. The app then fails to start with:

fuse: memory allocation failed
squashfuse 0.5.2 (c) 2012 Dave Vasilevsky
...
Can't open squashfs image: Bad address

Install a current AppImageLauncher from its releases page, which provides .deb packages, or uninstall AppImageLauncher altogether. It is not needed to run the AppImage. See #2538 for the detail.

Security

draw.io Desktop is designed to be completely isolated from the Internet, apart from the update process. This checks github.com at startup for a newer version and downloads it from an AWS S3 bucket owned by Github. To disable the update check entirely (e.g. for centrally-managed installs), set the DRAWIO_DISABLE_UPDATE=true environment variable or pass --disable-update on launch. All JavaScript files are self-contained, the Content Security Policy forbids running remotely loaded JavaScript.

No diagram data is ever sent externally, nor do we send any analytics about app usage externally. The Content Security Policy on the web part of the interface forbids remotely-loaded JavaScript and restricts the application's own network connections to itself, so the app cannot transmit your diagrams or otherwise phone home. Note that a diagram can reference external media - for example an image, background or font loaded from a URL embedded in the diagram - and these are fetched when the diagram is opened so that it renders correctly. Opening a diagram from an untrusted source may therefore trigger a request to the referenced URL, which can reveal metadata such as your IP address to that server; no diagram content is transmitted.

Security and isolating the app are the primarily objectives of draw.io desktop. If you ask for anything that involves external connections enabled in the app by default, the answer will be no.

Support

Support is provided on a reasonable business constraints basis, but without anything contractually binding. All support is provided via this repo. There is no private ticketing support for non-paying users.

Purchasing draw.io for Confluence or Jira does not entitle you to commercial support for draw.io desktop.

Developing

draw.io is a git submodule of drawio-desktop. To get both you need to clone recursively:

git clone --recursive https://github.com/jgraph/drawio-desktop.git

To run this:

  1. npm install (in the root directory of this repo)
  2. [internal use only] export DRAWIO_ENV=dev if you want to develop/debug in dev mode.
  3. npm start in the root directory of this repo runs the app. For debugging, use npm start --enable-logging.

Note: If a symlink is used to refer to drawio repo (instead of the submodule), then symlink the node_modules directory inside drawio/src/main/webapp also.

To fork the project, make your own changes and build an (unsigned) app for personal use, see doc/BUILDING_FOR_PERSONAL_USE.md.

To release:

  1. Update the draw.io sub-module and push the change. Add version tag before pushing to origin.
  2. Wait for the builds to complete (https://travis-ci.org/jgraph/drawio-desktop and https://ci.appveyor.com/project/davidjgraph/drawio-desktop)
  3. Go to https://github.com/jgraph/drawio-desktop/releases, edit the preview release.
  4. Download the windows exe and windows portable, sign them using signtool sign /a /tr http://rfc3161timestamp.globalsign.com/advanced /td SHA256 c:/path/to/your/file.exe
  5. Re-upload signed file as draw.io-windows-installer-x.y.z.exe and draw.io-windows-no-installer-x.y.z.exe
  6. Add release notes
  7. Publish release

Local Storage and Session Storage is stored in the AppData folder:

Not open-contribution

draw.io is closed to contributions (unless a maintainer permits it, which is extremely rare).

The level of complexity of this project means that even simple changes can break a lot of other moving parts. The amount of testing required is far more than it first seems. If we were to receive a PR, we'd have to basically throw it away and write it how we want it to be implemented.

We are grateful for community involvement, bug reports, & feature requests. We do not wish to come off as anything but welcoming, however, we've made the decision to keep this project closed to contributions for the long term viability of the project.

drawio-desktop (jgraph/drawio-desktop)

Searching Database…

这是什么?drawio-desktop 是 draw.io 的官方 Electron 版本,是一款桌面绘图应用。它把 draw.io 的核心编辑器封装起来,让你不用浏览器也能绘制流程图和各种图表。
除了安装程序,我还需要别的东西才能直接运行这个应用吗?不需要。发布的二进制文件可以独立运行。如果想自己构建,需要安装 Node.js,并递归克隆仓库(它会把 draw.io 编辑器作为 git 子模块一起拉取),然后运行 npm install 和 npm start。
安装时有什么需要注意的坑吗?Windows ARM64 版本在 31.4.4 及之前的版本中禁用了自动更新,因此你需要先手动安装一个更新的版本,之后更新才能正常使用。另外,在 Linux 上,较旧的 AppImageLauncher(2.2.0 版)无法启动 31.4.2 起所用的静态 AppImage 运行时,会启动失败。
它支持哪些操作系统?官方提供下载,支持 Windows(x64 和原生 ARM64)、macOS,以及通过 AppImage 支持的 Linux。
这个应用会把我的图表发送到什么地方吗?不会。除了启动时的更新检查,应用被设计为与互联网隔离,它从不向外发送图表内容或使用统计数据。
许可证和费用是怎样的?README 中写明,只要你不修改代码并按“原样”接受,该应用可用于任何用途,采用 Apache 2.0 许可证;但 GitHub 仓库元数据显示的许可证是 GPL-3.0。
为什么要用桌面版,而不是在浏览器里使用 draw.io?桌面版除了更新检查外与网络隔离,因此你的图表和使用数据不会被发送到任何地方;而使用托管的网页版则不同。
如果图表链接了外部图片或字体,会发生什么?打开图表时,为了正确渲染,会请求该 URL 获取资源。这可能会向该服务器暴露你的 IP 地址等元数据,尽管图表内容本身从不会被发送。
我可以关闭自动更新检查吗?可以。设置环境变量 DRAWIODISABLEUPDATE=true,或者启动应用时加上 --disable-update 参数,适用于集中管理的安装环境。
What are similar projects?easyread, Zettlr, krita, get-it, Mailspring, forel, QymCAD, edex-ui
Creator
jgraph
Size
3.4 MB
Stars
63.5K
Age
9y
Commits · 90 Days