This commit is contained in:
parent
1d8068e3ad
commit
c8dee1840d
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -69,8 +69,8 @@ jobs:
|
|||||||
if [ "${{ matrix.goos }}" = "windows" ]; then extension=".exe"; fi
|
if [ "${{ matrix.goos }}" = "windows" ]; then extension=".exe"; fi
|
||||||
cd backend
|
cd backend
|
||||||
BUILD_FLAGS="-s -w -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.Version=${{ env.VERSION }}' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.GoVersion=$(go version)' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.GitHash=$(git show -s --format=%H)' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
BUILD_FLAGS="-s -w -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.Version=${{ env.VERSION }}' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.GoVersion=$(go version)' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.GitHash=$(git show -s --format=%H)' -X 'git.pcux.cn/xuans/Smail/internal/buildinfo.BuildTime=$(date -u +%Y-%m-%dT%H:%M:%SZ)'"
|
||||||
go build -tags bundled -ldflags "$BUILD_FLAGS" -o ../out/release/smail$extension ./cmd/smail
|
go build -tags bundled -trimpath -ldflags "$BUILD_FLAGS" -o ../out/release/smail$extension ./cmd/smail
|
||||||
go build -ldflags "$BUILD_FLAGS" -o ../out/release/smail-admin$extension ./cmd/smail-admin
|
go build -trimpath -ldflags "$BUILD_FLAGS" -o ../out/release/smail-admin$extension ./cmd/smail-admin
|
||||||
- name: Zip
|
- name: Zip
|
||||||
run: |
|
run: |
|
||||||
cd ./out/release
|
cd ./out/release
|
||||||
|
|||||||
24
Makefile
24
Makefile
@ -20,23 +20,23 @@ build_fe:
|
|||||||
build_server: build_fe plugin
|
build_server: build_fe plugin
|
||||||
mkdir -p out/backend
|
mkdir -p out/backend
|
||||||
node deploy/bundle-plugins.mjs linux_amd64
|
node deploy/bundle-plugins.mjs linux_amd64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_linux_amd64 ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_linux_amd64 ./cmd/smail
|
||||||
node deploy/bundle-plugins.mjs linux_arm64
|
node deploy/bundle-plugins.mjs linux_arm64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_linux_arm64 ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_linux_arm64 ./cmd/smail
|
||||||
node deploy/bundle-plugins.mjs windows_amd64
|
node deploy/bundle-plugins.mjs windows_amd64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_windows_amd64.exe ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_windows_amd64.exe ./cmd/smail
|
||||||
node deploy/bundle-plugins.mjs windows_arm64
|
node deploy/bundle-plugins.mjs windows_arm64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_windows_arm64.exe ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_windows_arm64.exe ./cmd/smail
|
||||||
node deploy/bundle-plugins.mjs darwin_amd64
|
node deploy/bundle-plugins.mjs darwin_amd64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_mac_amd64 ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_mac_amd64 ./cmd/smail
|
||||||
node deploy/bundle-plugins.mjs darwin_arm64
|
node deploy/bundle-plugins.mjs darwin_arm64
|
||||||
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -tags bundled -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_mac_arm64 ./cmd/smail
|
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -tags bundled -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail_mac_arm64 ./cmd/smail
|
||||||
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_linux_amd64 ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_linux_amd64 ./cmd/smail-admin
|
||||||
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_linux_arm64 ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_linux_arm64 ./cmd/smail-admin
|
||||||
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_windows_amd64.exe ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_windows_amd64.exe ./cmd/smail-admin
|
||||||
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_windows_arm64.exe ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_windows_arm64.exe ./cmd/smail-admin
|
||||||
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_mac_amd64 ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_mac_amd64 ./cmd/smail-admin
|
||||||
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_mac_arm64 ./cmd/smail-admin
|
cd backend && CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -trimpath -ldflags "$(BUILD_LDFLAGS)" -o ../out/backend/smail-admin_mac_arm64 ./cmd/smail-admin
|
||||||
|
|
||||||
wechat_push:
|
wechat_push:
|
||||||
node deploy/build-plugins.mjs --all --plugin=wechat_push
|
node deploy/build-plugins.mjs --all --plugin=wechat_push
|
||||||
|
|||||||
@ -57,7 +57,7 @@ try {
|
|||||||
if ($LASTEXITCODE -ne 0) { throw '开发后端构建失败' }
|
if ($LASTEXITCODE -ne 0) { throw '开发后端构建失败' }
|
||||||
& go build -trimpath -ldflags $flags -o (Join-Path $output 'smail-admin.exe') ./cmd/smail-admin
|
& go build -trimpath -ldflags $flags -o (Join-Path $output 'smail-admin.exe') ./cmd/smail-admin
|
||||||
if ($LASTEXITCODE -ne 0) { throw '管理工具构建失败' }
|
if ($LASTEXITCODE -ne 0) { throw '管理工具构建失败' }
|
||||||
& go build -o (Join-Path $output 'smail-config.exe') ./cmd/smail-config
|
& go build -trimpath -o (Join-Path $output 'smail-config.exe') ./cmd/smail-config
|
||||||
if ($LASTEXITCODE -ne 0) { throw '配置工具构建失败' }
|
if ($LASTEXITCODE -ne 0) { throw '配置工具构建失败' }
|
||||||
} finally { Pop-Location }
|
} finally { Pop-Location }
|
||||||
if (-not $SkipFrontend) {
|
if (-not $SkipFrontend) {
|
||||||
|
|||||||
@ -280,9 +280,9 @@
|
|||||||
|
|
||||||
/* 核心紧凑排列组:用户名与外部邮箱相邻 */
|
/* 核心紧凑排列组:用户名与外部邮箱相邻 */
|
||||||
.compact-field-group {
|
.compact-field-group {
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: column;
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||||
gap: 4px;
|
gap: 12px;
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -500,6 +500,11 @@
|
|||||||
padding: 14px 12px 16px;
|
padding: 14px 12px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.compact-field-group {
|
||||||
|
grid-template-columns: minmax(0, 1fr);
|
||||||
|
gap: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.panel-header h2 {
|
.panel-header h2 {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user