Skip to content

Commit

Permalink
Use launcher in Windows (#1005)
Browse files Browse the repository at this point in the history
Use launcher in Windows
  • Loading branch information
durswd authored Mar 22, 2024
1 parent 99be07d commit 02da29b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
3 changes: 3 additions & 0 deletions Tool/EffekseerLauncher/build_windows.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cmake -B build_windows -S .
cd build_windows
cmake --build . --config Release
6 changes: 5 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ def __exit__(self, type, value, traceback):
is_x86 = env['X86'] == '1'
is_from_ci = 'from_ci' in sys.argv

if isWin():
with CurrentDir('Tool/EffekseerLauncher'):
call('call build_windows.bat')

if isMac():
with CurrentDir('Tool/EffekseerLauncher'):
call('sh build_macosx.sh')
Expand Down Expand Up @@ -184,7 +188,7 @@ def __exit__(self, type, value, traceback):
call('chmod +x Dev/release/tools/libfbxsdk.so')
call('cp -r Dev/release/linux-x64/publish/* Dev/release/')
call('rm -rf -r Dev/release/linux-x64')

if env['PACKAGEING_FOR_MAC'] == '1' and isMac():
cd('Dev')
mkdir('Mac/Effekseer.app/Contents/Resources/')
Expand Down
33 changes: 18 additions & 15 deletions release_tool.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,30 @@ echo Compile Editor
echo Copy application

mkdir %RDIR%\Tool
mkdir %RDIR%\Tool\bin

robocopy Dev\release %RDIR%\Tool
robocopy Dev\release %RDIR%\Tool\bin

mkdir %RDIR%\Tool\scripts
mkdir %RDIR%\Tool\scripts\export
copy Dev\release\scripts\export\Default.cs %RDIR%\Tool\scripts\export\.
mkdir %RDIR%\Tool\bin\scripts
mkdir %RDIR%\Tool\bin\scripts\export
copy Dev\release\scripts\export\Default.cs %RDIR%\Tool\bin\scripts\export\.

mkdir %RDIR%\Tool\tools
copy Dev\release\tools\fbxToEffekseerCurveConverter.exe %RDIR%\Tool\tools\.
copy Dev\release\tools\fbxToEffekseerModelConverter.exe %RDIR%\Tool\tools\.
copy Dev\release\tools\libfbxsdk.dll %RDIR%\Tool\tools\.
mkdir %RDIR%\Tool\bin\tools
copy Dev\release\tools\fbxToEffekseerCurveConverter.exe %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\fbxToEffekseerModelConverter.exe %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\libfbxsdk.dll %RDIR%\Tool\bin\tools\.

copy Dev\release\tools\EffekseerMaterialCompilerDX9.dll %RDIR%\Tool\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerDX11.dll %RDIR%\Tool\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerDX12.dll %RDIR%\Tool\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerGL.dll %RDIR%\Tool\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerMetal.dll %RDIR%\Tool\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerDX9.dll %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerDX11.dll %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerDX12.dll %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerGL.dll %RDIR%\Tool\bin\tools\.
copy Dev\release\tools\EffekseerMaterialCompilerMetal.dll %RDIR%\Tool\bin\tools\.


mkdir %RDIR%\Tool\resources
robocopy Dev\release\resources\ %RDIR%\Tool\resources\. /s
mkdir %RDIR%\Tool\bin\resources
robocopy Dev\release\resources\ %RDIR%\Tool\bin\resources\. /s

copy Tool\EffekseerLauncher\build_windows\Release\EffekseerLauncher.exe %RDIR%\Tool\Effekseer.exe

echo Sample

Expand Down

0 comments on commit 02da29b

Please sign in to comment.