siyuan/linux-build.sh

25 lines
374 B
Bash

#!/bin/bash
./build-ui.sh
rm -rf app/build
rm -rf app/kernel-linux
echo 'Building Kernel'
cd kernel
go version
export GO111MODULE=on
export GOPROXY=https://goproxy.io
export CGO_ENABLED=1
export GOOS=linux
export GOARCH=amd64
go build --tags fts5 -v -o "app/kernel-linux/SiYuan-Kernel" -ldflags "-s -w" .
cd ..
echo 'Building Electron'
cd app
npm run dist-linux
cd ..