diagrams.net Desktop app

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

Github星跟踪图

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)

主要指标

概览
名称与所有者jgraph/drawio-desktop
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台Chrome OS, Linux, Mac, Windows
许可证Apache License 2.0
所有者活动
创建于2017-05-25 20:58:42
推送于2025-04-22 17:34:48
最后一次提交
发布数207
最新版本名称v26.2.2 (发布于 2025-04-01 14:09:20)
第一版名称v6.2.9 (发布于 )
用户参与
星数54k
关注者数539
派生数5.2k
提交数0.9k
已启用问题?
问题数1569
打开的问题数69
拉请求数20
打开的拉请求数0
关闭的拉请求数18
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

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