1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 12:55:55 +00:00

* Maintenance: Update the build script to not require local git if we have a commit hash already.

This commit is contained in:
SirStendec 2024-10-07 16:50:51 -04:00
parent f90f7b2136
commit 70515e584f

View file

@ -39,7 +39,9 @@ console.log('FILE PATH:', FILE_PATH);
const VERSION = semver.parse(require('./package.json').version);
const commit_hash = DEV_SERVER
? null
: execSync('git rev-parse HEAD').toString().trim();
: process.env.CLIENT_COMMIT?.length > 0
? process.env.CLIENT_COMMIT
: execSync('git rev-parse HEAD').toString().trim();
// The Config