mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🔨 Update build scripts
This commit is contained in:
parent
25034d5eb2
commit
dc46b478bc
5 changed files with 13 additions and 12 deletions
28
scripts/linux-build.sh
Normal file
28
scripts/linux-build.sh
Normal file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo 'Building UI'
|
||||
cd app
|
||||
npm install && npm run build
|
||||
cd ..
|
||||
|
||||
echo 'Cleaning Builds'
|
||||
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 ..
|
Loading…
Add table
Add a link
Reference in a new issue