From 815128bd5343ccd8c38480faee63ea9db3e938ee Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 31 May 2022 16:56:09 +0800 Subject: [PATCH] =?UTF-8?q?:octocat:=20=E6=9E=84=E5=BB=BA=E6=97=B6?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E8=BF=90=E8=A1=8C=E6=A8=A1=E5=BC=8F=E4=B8=BA?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=A8=A1=E5=BC=8F=20`prod`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d00e80987..ad5cd56b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"