From 660736304e922b0247a5c60628aca43c264ad5f0 Mon Sep 17 00:00:00 2001 From: mircearoata Date: Fri, 10 Nov 2023 14:40:41 +0100 Subject: [PATCH] Remove entire Mods directory when using SML_HooksOnly --- .github/workflows/updateSML.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/updateSML.yml b/.github/workflows/updateSML.yml index f423df3..30b3f10 100644 --- a/.github/workflows/updateSML.yml +++ b/.github/workflows/updateSML.yml @@ -175,18 +175,15 @@ jobs: path: 'UEAssetToolkit' repository: 'mircearoata/UEAssetToolkit' + - name: Replace SML with hooks-only version + run: | + mv SML\Mods Mods_TEMP + cp satisfactory-modding-actions\SML_HooksOnly SML\Mods -Recurse + - name: Copy UEAssetToolkit to project run: | cp UEAssetToolkit\\AssetDumper SML\\Mods -Recurse cp UEAssetToolkit\\AssetGenerator SML\\Mods -Recurse - - - name: Replace SML with hooks-only version - run: | - mkdir SML_TEMP - mv SML\Mods\SML SML_TEMP\ - mv SML\Mods\SMLEditor SML_TEMP\ - cp satisfactory-modding-actions\SML_HooksOnly\SML SML\Mods -Recurse - cp satisfactory-modding-actions\SML_HooksOnly\SMLEditor SML\Mods -Recurse - name: Compile project run: | @@ -243,8 +240,7 @@ jobs: - name: Restore SMLEditor utils folder run: | - mkdir SML\Mods\SMLEditor\Content - cp SML_TEMP\SMLEditor\Content\Utils SML\Mods\SMLEditor\Content -Recurse + cp Mods_TEMP\SMLEditor\Content\Utils SML\Mods\SMLEditor\Content\Utils -Recurse - name: Run asset generator run: | @@ -274,10 +270,8 @@ jobs: - name: Undo "Replace SML with hooks-only version" run: | - rm -r SML\Mods\SML - rm -r SML\Mods\SMLEditor - cp SML_TEMP\SML SML\Mods -Recurse - cp SML_TEMP\SMLEditor SML\Mods -Recurse + rm -r SML\Mods + mv Mods_TEMP SML\Mods - name: Commit and push working-directory: SML