23 lines
898 B
Diff
23 lines
898 B
Diff
diff --git a/gui/vite.config.ts b/gui/vite.config.ts
|
|
index 2171bccd..b4db20b9 100644
|
|
--- a/gui/vite.config.ts
|
|
+++ b/gui/vite.config.ts
|
|
@@ -5,14 +5,10 @@ import { execSync } from 'child_process';
|
|
import path from 'path';
|
|
import { visualizer } from 'rollup-plugin-visualizer';
|
|
|
|
-const commitHash = execSync('git rev-parse --verify --short HEAD').toString().trim();
|
|
-const versionTag = execSync('git --no-pager tag --sort -taggerdate --points-at HEAD')
|
|
- .toString()
|
|
- .split('\n')[0]
|
|
- .trim();
|
|
+const commitHash = "";
|
|
+const versionTag = "@version@";
|
|
// If not empty then it's not clean
|
|
-const gitCleanString = execSync('git status --porcelain').toString();
|
|
-const gitClean = gitCleanString ? false : true;
|
|
+const gitClean = true;
|
|
if (!gitClean) console.log('Git is dirty because of:\n' + gitCleanString);
|
|
|
|
console.log(`version is ${versionTag || commitHash}${gitClean ? '' : '-dirty'}`);
|