Clone the repository:
git clone https://github.com/marktext/marktext.git
Before you can get started developing, you need set up your build environment:
- Node.js
>=v12.0.0, npm and yarn - Python
v2.7.xfor node-gyp - C++ compiler and development tools
Additional development dependencies on Linux:
- libx11 (dev)
- libxkbfile (dev)
- libsecret (dev)
- libfontconfig (dev)
On Debian-based Linux: sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev libfontconfig-dev
On Red Hat-based Linux: sudo dnf install libx11-devel libxkbfile-devel libsecret-devel fontconfig-devel
- Go to
marktextfolder - Install dependencies:
yarn installoryarn install --frozen-lockfile - Build Mark Text binaries and packages:
yarn run build - Mark Text binary is located under
buildfolder
Copy the build app to applications folder, or if on Windows run the executable installer.
$ yarn run <script> # or npm run <script>
| Script | Description |
|---|---|
build |
Build Mark Text binaries and packages for your OS |
build:bin |
Build Mark Text binary for your OS |
dev |
Build and run Mark Text in developer mode |
lint |
Lint code style |
test / unit |
Run unit tests |
For more scripts please see package.json.