Skip to content

Latest commit

History

History
85 lines (62 loc) 路 2.01 KB

README.md

File metadata and controls

85 lines (62 loc) 路 2.01 KB

SiYuan
Build Your Eternal Digital Garden

涓枃

馃挕 Introduction

A fork of SiYuan, a local-first personal knowledge management system

馃殌 Release

first, create a tag from a branch, then push the tag to trigger ci build and docker image build.tag example:v0.0.0

git tag v0.0.0
git push origin dev v0.0.0

then, merge dev to main or push to main

Publish docker image

docker login
docker buildx build --push -t terwer/my-note:latest -t terwer/my-note:v0.0.0 .

Build

macOS

python3 scripts/build.py mac

Windows

python3 scripts/build.py win

Linux

python3 scripts/build.py linux

Then, setup file is under build forder

Dev

kernel

cd kernel
go env -w GO111MODULE=on
# go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOPROXY=https://proxy.golang.com.cn
# go env -w GOPROXY=https://goproxy.cn
go build --tags "fts5" -o "../app/kernel/SiYuan-Kernel"
cd ../app/kernel
./SiYuan-Kernel --wd=.. --mode=dev

app

cd app
npm install -g pnpm
pnpm config set registry https://registry.npmmirror.com/

pnpm install
pnpm run dev
pnpm run start