From 2b504891b9d0ee586de0f131106a9c22e4eddb78 Mon Sep 17 00:00:00 2001 From: gcnwm Date: Sun, 30 Apr 2023 19:50:52 +0800 Subject: [PATCH] Update FBX SDK --- .github/workflows/build.yml | 25 ++++--------------- .../AssetStudioFBXNative.vcxproj | 16 ++++++------ 2 files changed, 13 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0672046a..1d8f4a8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,9 @@ name: AssetStudioBuild on: push: - branches: [ master ] + branches: [ AssetStudio-mod ] pull_request: - branches: [ master ] + branches: [ AssetStudio-mod ] workflow_dispatch: @@ -20,36 +20,21 @@ jobs: run: | md fbx cd fbx - Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_win.exe" -OutFile "fbxsdk.exe" + Invoke-WebRequest "https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_vs2022_win.exe" -OutFile "fbxsdk.exe" Start-Process -FilePath "fbxsdk.exe" /S -Wait - Invoke-WebRequest "https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-2-1/fbx202021_fbxsdk_vs2019_pdbs.exe" -OutFile "fbxpdb.exe" + Invoke-WebRequest "https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-3-4/fbx202034_fbxsdk_vs2022_pdbs.exe" -OutFile "fbxpdb.exe" Start-Process -FilePath "fbxpdb.exe" /S -Wait cd .. - name: Nuget Restore run: nuget restore - + - name: Build .Net472 run: msbuild /p:Configuration=Release /p:TargetFramework=net472 /verbosity:minimal - - name: Build .Net5 - run: msbuild /t:AssetStudioGUI:publish /p:Configuration=Release /p:TargetFramework=net5.0-windows /p:SelfContained=false /verbosity:minimal - - name: Build .Net6 run: msbuild /t:AssetStudioGUI:publish /p:Configuration=Release /p:TargetFramework=net6.0-windows /p:SelfContained=false /verbosity:minimal - - name: Upload .Net472 Artifact - uses: actions/upload-artifact@v2 - with: - name: AssetStudio.net472 - path: AssetStudioGUI/bin/Release/net472 - - - name: Upload .Net5 Artifact - uses: actions/upload-artifact@v2 - with: - name: AssetStudio.net5 - path: AssetStudioGUI/bin/Release/net5.0-windows/publish - - name: Upload .Net6 Artifact uses: actions/upload-artifact@v2 with: diff --git a/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj b/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj index c730e478..fbec91b5 100644 --- a/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj +++ b/AssetStudioFBXNative/AssetStudioFBXNative.vcxproj @@ -100,14 +100,14 @@ true _AS_DLL;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\include;%(AdditionalIncludeDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\include;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true libfbxsdk-mt.lib;libxml2-mt.lib;zlib-mt.lib;wininet.lib;%(AdditionalDependencies) - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\lib\vs2019\x86\debug;%(AdditionalLibraryDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\lib\vs2022\x86\debug;%(AdditionalLibraryDirectories) LIBCMT;%(IgnoreSpecificDefaultLibraries) @@ -119,7 +119,7 @@ true _AS_DLL;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\include;%(AdditionalIncludeDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\include;%(AdditionalIncludeDirectories) MultiThreaded Speed @@ -129,7 +129,7 @@ true true libfbxsdk-mt.lib;libxml2-mt.lib;zlib-mt.lib;%(AdditionalDependencies) - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\lib\vs2019\x86\release;%(AdditionalLibraryDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\lib\vs2022\x86\release;%(AdditionalLibraryDirectories) @@ -138,14 +138,14 @@ true _AS_DLL;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) true - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\include;%(AdditionalIncludeDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\include;%(AdditionalIncludeDirectories) MultiThreadedDebug Console true libfbxsdk-mt.lib;libxml2-mt.lib;zlib-mt.lib;wininet.lib;%(AdditionalDependencies) - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\lib\vs2019\x64\debug;%(AdditionalLibraryDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\lib\vs2022\x64\debug;%(AdditionalLibraryDirectories) LIBCMT;%(IgnoreSpecificDefaultLibraries) @@ -157,7 +157,7 @@ true _AS_DLL;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) true - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\include;%(AdditionalIncludeDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\include;%(AdditionalIncludeDirectories) MultiThreaded Speed @@ -167,7 +167,7 @@ true true libfbxsdk-mt.lib;libxml2-mt.lib;zlib-mt.lib;%(AdditionalDependencies) - C:\Program Files\Autodesk\FBX\FBX SDK\2020.2.1\lib\vs2019\x64\release;%(AdditionalLibraryDirectories) + C:\Program Files\Autodesk\FBX\FBX SDK\2020.3.4\lib\vs2022\x64\release;%(AdditionalLibraryDirectories)