🔨 调整构建

This commit is contained in:
BTMuli
2025-12-30 03:03:03 +08:00
parent 692e6ccc94
commit fb8a0eee1d
3 changed files with 31 additions and 0 deletions

View File

@@ -46,6 +46,12 @@ execSync("pnpm tauri build", { stdio: "inherit" });
// 上传pdb
if (isGitHubActions) {
if (process.env.GITHUB_ENV) {
writeFileSync(process.env.GITHUB_ENV, `SENTRY_RELEASE=${release}\n`, { flag: "a" });
console.log("📦 SENTRY_RELEASE exported to GitHub Actions env.");
} else {
console.warn("⚠️ Not running inside GitHub Actions. Skipping env export.");
}
process.exit();
}
const pdbGlob = "src-tauri/target/release/TeyvatGuide.pdb";