Diff: https://github.com/project-chip/zap/compare/v2025.07.24...v2026.02.26 Changelog: https://github.com/project-chip/zap/releases/tag/v2026.02.26
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
diff --git a/src-script/script-util.js b/src-script/script-util.js
|
|
index fb8fe7a8589f..2b2a43f46053 100644
|
|
--- a/src-script/script-util.js
|
|
+++ b/src-script/script-util.js
|
|
@@ -237,28 +237,6 @@ async function rebuildBackendIfNeeded() {
|
|
* ads the timestamp and saves it into .version.json
|
|
*/
|
|
async function stampVersion() {
|
|
- try {
|
|
- let out = await getStdout('{"hash": null,"date": null}', 'git', [
|
|
- 'log',
|
|
- '-1',
|
|
- '--format={"hash": "%H","timestamp": %ct}'
|
|
- ])
|
|
- let version = JSON.parse(out)
|
|
- let d = new Date(version.timestamp * 1000) // git gives seconds, Date needs milliseconds
|
|
- let result = await setPackageJsonVersion(d, 'real')
|
|
- version.date = d
|
|
- version.zapVersion = result.version
|
|
- let versionFile = path.join(__dirname, '../.version.json')
|
|
- console.log(
|
|
- env.formatEmojiMessage(
|
|
- '🔍',
|
|
- `Git commit: ${version.hash} from ${version.date}`
|
|
- )
|
|
- )
|
|
- await fsp.writeFile(versionFile, JSON.stringify(version))
|
|
- } catch (err) {
|
|
- console.log(`Error retrieving version: ${err}`)
|
|
- }
|
|
}
|
|
|
|
/**
|