diagrams.net Desktop app

diagrams.net 的官方 electron 构建。(Official electron build of draw.io)

Github stars Tracking Chart

draw.io Desktop

drawio-desktop 是一个基于 Electron 的 diagrams.net 桌面应用程序。 draw.io 是diagrams.net 的旧名称,我们只是不想麻烦更改所有二进制文件的名称。

发布部分 下载构建的二进制文件。

Travis MacOS/Linux构建 Build Status

Appveyor Windows构建 Build status

安全

draw.io Desktop 旨在与 Internet 完全隔离。所有 JavaScript 文件都是自包含的,内容安全策略禁止运行远程加载的 JavaScript。

不会从外部发送图表数据,也不会从外部发送有关应用程序使用情况的任何分析。这意味着我们没有 JavaScript 实现的某些功能在 Desktop 构建中不起作用,即 .vsd 和 Gliffy 导入。

开发

draw.io 是 drawio-desktop 的 git 子模块。要获得两者,您需要递归克隆:

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

要运行此命令:

  1. npm install(在此仓库的根目录中)
  2. npm install(在此仓库的 drawio 目录中)
  3. 如果要在开发人员模式下进行开发/调试,请 export DRAWIO_ENV=dev。
  4. 如果以开发人员模式运行,请将 https://github.com/jgraph/mxgraph 克隆为该存储库的同级目录,并将包含存储库的文件夹重命名为“mxgraph2”。
  5. npm start 运行该应用程序。

发布:

  1. 更新 draw.io 子模块并推送更改。在添加到原始版本之前添加版本标签。
  2. 等待构建完成(https://travis-ci.org/jgraph/drawio-desktophttps://ci.appveyor.com/project/davidjgraph/drawio...
  3. 转到 https://github.com/jgraph/drawio-desktop/releases,编辑预览版本。
  4. 下载 Windows exe 和 Windows Portable,使用 signtool sign /a /tr http://timestamp.globalsign.com/?signature=sha2 /td SHA256 c:/path/to/your/file.exe 对它们进行签名
  5. 将签名文件重新上传为 draw.io-windows-installer-x.y.z.exe 和 draw.io-windows-no-installer-x.y.z.exe
  6. 添加发行说明
  7. 发布发行

draw-io desktop 使用 draw-io。draw.io 使用 mxGraph 库 作为堆栈的基础,而来自 mxGraph 的 GraphEditor 示例 作为应用程序部分的基础。

Dependency Diagram 编辑该图像


(The first version translated by vz on 2020.08.12)

Main metrics

Overview
Name With Ownerjgraph/drawio-desktop
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 2)
PlatformChrome OS, Linux, Mac, Windows
License:Apache License 2.0
所有者活动
Created At2017-05-25 20:58:42
Pushed At2025-04-22 17:34:48
Last Commit At
Release Count207
Last Release Namev26.2.2 (Posted on 2025-04-01 14:09:20)
First Release Namev6.2.9 (Posted on )
用户参与
Stargazers Count54k
Watchers Count539
Fork Count5.2k
Commits Count0.9k
Has Issues Enabled
Issues Count1569
Issue Open Count69
Pull Requests Count20
Pull Requests Open Count0
Pull Requests Close Count18
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

About

drawio-desktop is a draw.io desktop app based on Electron.

Download built binaries from the releases section.

Travis MacOS/Linux builds Build Status

Appveyor Windows build Build status

Security

draw.io Desktop is designed to be completely isolated from the Internet. 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. This means certain functionality for which we do not have a JavaScript implementation do not work in the Desktop build, namely .vsd and Gliffy import.

Build Status

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. npm install (in the drawio directory of this repo)
  3. export DRAWIO_ENV=dev if you want to develop/debug in dev mode.
  4. If you run in dev mode, clone https://github.com/jgraph/mxgraph as a sibling directory to this repo, rename the folder containing the repo "mxgraph2".
  5. npm start runs the app.

To release:

  1. Update the draw.io sub-module and push the change
  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://timestamp.globalsign.com/?signature=sha2 /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

draw.io desktop app

draw-io desktop uses draw-io. draw.io uses the mxGraph library as the base of the stack, with the GraphEditor example from mxGraph as the base of the application part.

Dependency Diagram
Edit this image