[PR #802] [MERGED] chore(ui): define version constant #1045

Closed
opened 2026-03-03 01:07:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/certimate-go/certimate/pull/802
Author: @PBK-B
Created: 6/16/2025
Status: Merged
Merged: 6/22/2025
Merged by: @fudiwei

Base: mainHead: bin/chore_define_version


📝 Commits (6)

  • ab54a8f chore(ui): define version constant
  • f9dfbaf chore(ui): version number obtains compatible non-git environments, supports .env file config
  • eaf71e9 build: set fallback app version to "v0.0.0-dev"
  • 7773c83 fix: remove the --always parameter, add skip git tag version to get logic
  • 20944be fix: vite use loadEnv api
  • c2d6966 Update version.ts

📊 Changes

3 files changed (+40 additions, -18 deletions)

View changed files

📝 ui/src/domain/version.ts (+3 -1)
📝 ui/types/vite-env.d.ts (+1 -0)
📝 ui/vite.config.ts (+36 -17)

📄 Description

通过获取 git tag 并配置 vite define __APP_VERSION__ 在编译时生成版本号

TBR; @usual2970 @fudiwei


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/certimate-go/certimate/pull/802 **Author:** [@PBK-B](https://github.com/PBK-B) **Created:** 6/16/2025 **Status:** ✅ Merged **Merged:** 6/22/2025 **Merged by:** [@fudiwei](https://github.com/fudiwei) **Base:** `main` ← **Head:** `bin/chore_define_version` --- ### 📝 Commits (6) - [`ab54a8f`](https://github.com/certimate-go/certimate/commit/ab54a8f1d9df90ea7bc5c475ceba6cd25f472aee) chore(ui): define version constant - [`f9dfbaf`](https://github.com/certimate-go/certimate/commit/f9dfbafa127b112daa02f58533721aa137dc8d59) chore(ui): version number obtains compatible non-git environments, supports .env file config - [`eaf71e9`](https://github.com/certimate-go/certimate/commit/eaf71e94dadb3cffeae0ee8dccb6730d695aa9b6) build: set fallback app version to "v0.0.0-dev" - [`7773c83`](https://github.com/certimate-go/certimate/commit/7773c832c1fe85a2f82cc5be70bce647cbcc4a6b) fix: remove the `--always` parameter, add skip git tag version to get logic - [`20944be`](https://github.com/certimate-go/certimate/commit/20944bee59d674721767c7fcb164d28db6faef80) fix: vite use `loadEnv` api - [`c2d6966`](https://github.com/certimate-go/certimate/commit/c2d6966d590f01cafc9925cc300b863bce2682ca) Update version.ts ### 📊 Changes **3 files changed** (+40 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `ui/src/domain/version.ts` (+3 -1) 📝 `ui/types/vite-env.d.ts` (+1 -0) 📝 `ui/vite.config.ts` (+36 -17) </details> ### 📄 Description 通过获取 git tag 并配置 vite define `__APP_VERSION__` 在编译时生成版本号 TBR; @usual2970 @fudiwei --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 01:07:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/certimate#1045
No description provided.