Files
start-os/web/build-config.js
Matt Hill 86567e7fa5 rename frontend to web and update contributing guide (#2509)
* rename frontend to web and update contributing guide

* rename this time

* fix build

* restructure rust code

* update documentation

* update descriptions

* Update CONTRIBUTING.md

Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>

---------

Co-authored-by: Aiden McClelland <me@drbonez.dev>
Co-authored-by: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com>
Co-authored-by: J H <2364004+Blu-J@users.noreply.github.com>
2023-11-13 21:22:23 +00:00

13 lines
347 B
JavaScript
Executable File

// @ts-check
const fs = require('fs')
const childProcess = require('child_process')
const gitHash = String(
childProcess.execSync('git describe --always --abbrev=40 --dirty=-modified'),
).trim()
const origConfig = require('./config.json')
origConfig['gitHash'] = gitHash
fs.writeFileSync('./config.json', JSON.stringify(origConfig, null, 2))