mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
* 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>
13 lines
347 B
JavaScript
Executable File
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))
|