From 35754e02834f5b68bb80551fad608cccf67bff1e Mon Sep 17 00:00:00 2001 From: EvilDragonfiend <87972842+EvilDragonfiend@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:49:15 +0900 Subject: [PATCH] Revert "Fix TgFont being excluded from build process (#11902)" This reverts commit 57f755384551a82dbbba5b4b2c4515d0d6f3b881. --- tools/build/build.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/build/build.js b/tools/build/build.js index d1b376bbc2377..72af36eb37561 100755 --- a/tools/build/build.js +++ b/tools/build/build.js @@ -198,7 +198,12 @@ export const TgFontTarget = new Juke.Target({ 'tgui/packages/tgfont/dist/tgfont.eot', 'tgui/packages/tgfont/dist/tgfont.woff2', ], - executes: async () => yarn('tgfont:build'), + executes: async () => { + await yarn('tgfont:build'); + fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.css', 'tgui/packages/tgfont/static/tgfont.css'); + fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.eot', 'tgui/packages/tgfont/static/tgfont.eot'); + fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.woff2', 'tgui/packages/tgfont/static/tgfont.woff2'); + } }); export const TguiTarget = new Juke.Target({ @@ -280,7 +285,7 @@ export const LintTarget = new Juke.Target({ }); export const BuildTarget = new Juke.Target({ - dependsOn: [DmTarget, TgFontTarget, TguiTarget], + dependsOn: [DmTarget, TguiTarget], }); export const ServerTarget = new Juke.Target({ @@ -347,7 +352,7 @@ const prependDefines = (...defines) => { }; export const TgsTarget = new Juke.Target({ - dependsOn: [TguiTarget, TgFontTarget], + dependsOn: [TguiTarget], executes: async () => { Juke.logger.info('Prepending TGS define'); prependDefines('TGS');