diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c43a97..6a2057d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - - uses: actions/checkout@v6 + uses: actions/checkout@v6 - name: Download Mod uses: actions/download-artifact@v7 @@ -66,4 +66,4 @@ jobs: uses: softprops/action-gh-release@v3 with: files: | - ${{ github.event.repository.name }}-windows-x64.zip \ No newline at end of file + ${{ github.event.repository.name }}-windows-x64.zip diff --git a/xmake.lua b/xmake.lua index 506691d..3b5f3a2 100644 --- a/xmake.lua +++ b/xmake.lua @@ -15,6 +15,12 @@ add_requires("ilistenattentively 0.12.0") add_requires("gmlib 26.10.0") add_requires("modapi 26.10.0") +rule("package_envs") + before_link(function (target) + os.addenvs(target:pkgenvs()) + end) +rule_end() + target("GMLIB-LegacyRemoteCallApi") add_cxflags( "/EHa", @@ -36,10 +42,12 @@ target("GMLIB-LegacyRemoteCallApi") add_packages( "levilamina", "legacyremotecall", + "levibuildscript", "ilistenattentively", "gmlib", "modapi" ) + add_rules("package_envs") add_rules("@levibuildscript/linkrule") add_rules("@levibuildscript/modpacker") set_exceptions("none") @@ -52,4 +60,4 @@ target("GMLIB-LegacyRemoteCallApi") os.rm(target_path) end os.cp("lib", target_path) - end) \ No newline at end of file + end)