summarylogtreecommitdiffstats
path: root/no-git-checkout.patch
blob: e768e81b1b129283eb05a380167725fbe0f35762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --unified --recursive --text deltachat-desktop-1.4.2-orig/bin/build-shared-version-info.js deltachat-desktop-1.4.2-no-git/bin/build-shared-version-info.js
--- deltachat-desktop-1.4.2-orig/bin/build-shared-version-info.js	2020-06-26 12:55:04.000000000 +0000
+++ deltachat-desktop-1.4.2-no-git/bin/build-shared-version-info.js	2020-06-26 16:04:17.587613647 +0000
@@ -6,7 +6,12 @@
   const { status, stdout, stderr } = spawnSync('git', ['describe'])
   if (status !== 0) {
     console.log(stderr)
-    throw new Error('getting git commit failed')
+    const package = await fs.readJSON(join(__dirname, '../package.json'))
+    return {
+      VERSION: package.version,
+      BUILD_TIMESTAMP: Date.now(),
+      GIT_REF: "None",
+    }
   }
   const package = await fs.readJSON(join(__dirname, '../package.json'))
   return {