chore: register version 1.1.0
This commit is contained in:
parent
fad52d79d2
commit
a4163a2ba6
@ -1,6 +1,12 @@
|
|||||||
import type { AppVersion } from "@/model/AppVersion";
|
import type { AppVersion } from "@/model/AppVersion";
|
||||||
|
|
||||||
export const appVersions: AppVersion[] = [
|
export const appVersions: AppVersion[] = [
|
||||||
|
{
|
||||||
|
tag: "1.1.0",
|
||||||
|
ipfsHash: "bafybeiewdwsk3qjfhpjwy7agyayanzuctv3l2hwbubqpg2hxhoebxshk2m",
|
||||||
|
releaseDate: "2025-11-06",
|
||||||
|
description: "Explorer and versioning features added"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
tag: "1.0.0",
|
tag: "1.0.0",
|
||||||
ipfsHash: "bafybeiagfqnxnb5zdrks6dicfm7kxjdtzzzzm2ouluxgdseg2hrrotayzi",
|
ipfsHash: "bafybeiagfqnxnb5zdrks6dicfm7kxjdtzzzzm2ouluxgdseg2hrrotayzi",
|
||||||
|
|||||||
@ -7,17 +7,12 @@ import vueJsx from "@vitejs/plugin-vue-jsx";
|
|||||||
import svgLoader from "vite-svg-loader";
|
import svgLoader from "vite-svg-loader";
|
||||||
|
|
||||||
function getGitTag(): string {
|
function getGitTag(): string {
|
||||||
try {
|
|
||||||
const tag = execSync("git describe --tags --abbrev=0").toString().trim();
|
|
||||||
return tag || "";
|
|
||||||
} catch (error) {
|
|
||||||
try {
|
try {
|
||||||
const tags = execSync("git tag --sort=-version:refname").toString().trim().split("\n");
|
const tags = execSync("git tag --sort=-version:refname").toString().trim().split("\n");
|
||||||
return tags.length > 0 ? tags[0] : "unknown";
|
return tags.length > 0 ? tags[0] : "unknown";
|
||||||
} catch (fallbackError) {
|
} catch (fallbackError) {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user