We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52ffe27 + 5a8edd6 commit 430505eCopy full SHA for 430505e
.gitignore
@@ -19,7 +19,10 @@ yarn-error.log*
19
20
js/
21
/css/
22
-build/
+
23
+# packaged app
24
+build/artifacts
25
26
coverage*
27
vendor/
28
build/pre-commit.js
@@ -0,0 +1,14 @@
1
+/**
2
+ * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
3
+ * SPDX-License-Identifier: AGPL-3.0-or-later
4
+ */
5
6
+const fs = require('fs')
7
8
+exports.preCommit = (props) => {
9
+ const old = fs.readFileSync('appinfo/info.xml').toString('utf-8')
10
11
+ const updated = old.replace(/<version>(.+?)<\/version>/, '<version>' + props.version + '</version>')
12
13
+ fs.writeFileSync('appinfo/info.xml', updated)
14
+}
0 commit comments