From 5ae354cd8d4fa51ad7c29bd28b9c75ee68a49cc9 Mon Sep 17 00:00:00 2001 From: Svornost <11434-svornost@users.noreply.gitgud.io> Date: Tue, 9 Feb 2021 17:16:32 -0800 Subject: [PATCH] Locally force TWEEGO_PATH when building FC so that other SugarCube sources don't get picked up by accident --- compile.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compile.bat b/compile.bat index ec8bda25248..1009033f4f4 100644 --- a/compile.bat +++ b/compile.bat @@ -3,6 +3,7 @@ :: Set working directory pushd %~dp0 +SETLOCAL :: See if we can find a git installation set GITFOUND=no @@ -29,6 +30,7 @@ if %GITFOUND% == yes ( if not exist "bin\resources" mkdir bin\resources CALL devTools/concatFiles.bat js\ "*.js" bin\fc.js CALL devTools/concatFiles.bat css\ "*.css" bin\fc.css +SET TWEEGO_PATH=%~dp0devTools\tweeGo\storyFormats :: Run the appropriate compiler for the user's CPU architecture. if %PROCESSOR_ARCHITECTURE% == AMD64 ( CALL "%~dp0devTools\tweeGo\tweego_win64.exe" -o "%~dp0bin/FC_pregmod.html" --module=bin/fc.js --module=bin/fc.css --head resources/raster/favicon/arcologyVector.html "%~dp0src" @@ -39,5 +41,6 @@ DEL bin\fc.js DEL bin\fc.css IF EXIST "%~dp0src\002-config\fc-version.js.commitHash.js" DEL "%~dp0src\002-config\fc-version.js.commitHash.js" +ENDLOCAL popd ECHO Done -- GitLab