Skip to content

TagSpaces is an offline, open source, document manager with tagging support

chore: generate always version.json

Ilian Sapundshiev2a49d2056040
diff --git a/.gitignore b/.gitignore
index 5b0ef8509..bd96b8e13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -125,3 +125,4 @@ playwright-report/*
deploy.sh
docker/*.zip
+app/version.json
\ No newline at end of file
diff --git a/.prettierignore b/.prettierignore
index ea6ebda97..6008c0ed7 100755
--- a/.prettierignore
+++ b/.prettierignore
@@ -46,3 +46,4 @@ tests/bin
src/renderer/aws-exports.js
src/renderer/config/config.json
src/renderer/extension-config.ts
+app/version.json
diff --git a/src/main/util.ts b/src/main/util.ts
index 80eb13bc5..4f10af6e7 100644
--- a/src/main/util.ts
+++ b/src/main/util.ts
@@ -21,14 +21,7 @@ export function resolveHtmlPath(htmlFileName: string) {
*/
export function checkVersionJson() {
const version = path.resolve(webpackPaths.srcRendererPath, 'version.json');
- if (!fs.existsSync(version)) {
- console.log(
- chalk.black.bgYellow.bold(
- 'The version.json files are missing. Sit back while we build them for you with "npm run version-meta"',
- ),
- );
- execSync('npm run version-meta');
- }
+ execSync('npm run version-meta');
}
/**