mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-31 13:58:49 +01:00
:octocat: 构建时注入运行模式为生成模式 prod
This commit is contained in:
parent
e9f0cc92c7
commit
815128bd53
1 changed files with 6 additions and 6 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -62,35 +62,35 @@ jobs:
|
|||
config:
|
||||
- os: ubuntu-20.04
|
||||
kernel_path: "../app/kernel-linux/SiYuan-Kernel"
|
||||
build_args: "-s -w"
|
||||
build_args: "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist-linux"
|
||||
goos: "linux"
|
||||
goarch: "amd64"
|
||||
suffix: "linux.AppImage"
|
||||
- os: ubuntu-20.04
|
||||
kernel_path: "../app/kernel-linux/SiYuan-Kernel"
|
||||
build_args: "-s -w"
|
||||
build_args: "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist-linux"
|
||||
goos: "linux"
|
||||
goarch: "amd64"
|
||||
suffix: "linux.tar.gz"
|
||||
- os: macos-latest
|
||||
kernel_path: "../app/kernel-darwin/SiYuan-Kernel"
|
||||
build_args: "-s -w"
|
||||
build_args: "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist-darwin"
|
||||
goos: "darwin"
|
||||
goarch: "amd64"
|
||||
suffix: "mac.dmg"
|
||||
- os: macos-latest
|
||||
kernel_path: "../app/kernel-darwin-arm64/SiYuan-Kernel"
|
||||
build_args: "-s -w"
|
||||
build_args: "-s -w -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist-darwin-arm64"
|
||||
goos: "darwin"
|
||||
goarch: "arm64"
|
||||
suffix: "mac-arm64.dmg"
|
||||
- os: windows-2019
|
||||
kernel_path: "../app/kernel/SiYuan-Kernel.exe"
|
||||
build_args: "-s -w -H=windowsgui"
|
||||
build_args: "-s -w -H=windowsgui -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist"
|
||||
goos: "windows"
|
||||
gobin: "bin"
|
||||
|
|
@ -99,7 +99,7 @@ jobs:
|
|||
suffix: "win.exe"
|
||||
- os: windows-2019
|
||||
kernel_path: "../app/kernel32/SiYuan-Kernel.exe"
|
||||
build_args: "-s -w -H=windowsgui"
|
||||
build_args: "-s -w -H=windowsgui -X github.com/siyuan-note/siyuan/kernel/util.Mode=prod"
|
||||
electron_args: "dist-win32"
|
||||
goos: "windows"
|
||||
mingwsys: "MINGW32"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue