1 Star 0 Fork 155

ampy/siyuan

forked from 思源笔记/siyuan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
darwin-build.sh 624 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
echo 'Building UI'
cd app
npm run build
cd ..
rm -rf app/build
rm -rf app/kernel-darwin
rm -rf app/kernel-darwin-arm64
echo 'Building Kernel'
cd kernel
go version
export GO111MODULE=on
export GOPROXY=https://goproxy.io
export CGO_ENABLED=1
export GOOS=darwin
export GOARCH=amd64
go build --tags fts5 -v -o "app/kernel-darwin/SiYuan-Kernel" -ldflags "-s -w" .
export GOOS=darwin
export GOARCH=arm64
go build --tags fts5 -v -o "app/kernel-darwin-arm64/SiYuan-Kernel" -ldflags "-s -w" .
cd ..
echo 'Building Electron'
cd app
npm run dist-darwin
echo 'Building Electron arm64'
npm run dist-darwin-arm64
cd ..
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ampy/siyuan.git
git@gitee.com:ampy/siyuan.git
ampy
siyuan
siyuan
master

搜索帮助