mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-02 03:59:21 +08:00
- 新增通用启动器 packaging/runtime/launcher.js:数据目录、预置数据库、自动迁移、NextAuth 密钥 - 新增构建脚本 scripts/package/build.mjs(bundle / npm / desktop / fnos) - 桌面版基于 Electron,飞牛OS 打包参考 CreditDaddy 的 fnpack 流程 - 新增 packages.yml 工作流,在各平台 Runner 构建并上传 Release - 配置目录支持 CONFIG_DIR 环境变量 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
741 B
Bash
Executable File
21 lines
741 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
|
|
if (( $(node -p 'process.versions.node.split(".")[0]') < 22 )); then
|
|
echo "CI requires Node.js 22 or later." >&2
|
|
exit 1
|
|
fi
|
|
export NEXT_TELEMETRY_DISABLED=1
|
|
export DATABASE_URL="${DATABASE_URL:-file:./ci.db}"
|
|
npm ci --no-audit --no-fund
|
|
npx --no-install prisma generate
|
|
npm test
|
|
python3 -m unittest discover -s tests/publication -v
|
|
python3 scripts/check-public-history.py HEAD
|
|
bash -n scripts/ci.sh scripts/build-image.sh
|
|
sh -n docker-entrypoint.sh
|
|
for f in packaging/runtime/launcher.js packaging/npm/bin/wrong-notebook.js packaging/desktop/main.js scripts/package/build.mjs; do node --check "$f"; done
|
|
for f in packaging/fnos/cmd/*; do bash -n "$f"; done
|
|
npm run build
|