mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 10:21:52 +00:00
* add nc-broadcast to view initialization.sh logs * include stderr * refactor build * add frontend/config.json as frontend dependency * fix nc-broadcast * always run all workflows * address dependabot alerts * fix build caching * remove registries.json * more efficient build
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))
|