mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-16 01:43:55 +00:00
9 lines
302 B
JavaScript
9 lines
302 B
JavaScript
const fxManifest = await Bun.file('./fxmanifest.lua').text();
|
|
|
|
let newVersion = process.env.TGT_RELEASE_VERSION;
|
|
newVersion = newVersion.replace('v', '')
|
|
|
|
const newFileContent = fxManifest.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`);
|
|
|
|
await Bun.write('./fxmanifest.lua', newFileContent);
|