-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added .bat helper scripts to download PopcornFX Runtime SDK for Deskt…
…op, Mobile or all platforms. Updated README to state the dependency with 7-zip
- Loading branch information
Showing
5 changed files
with
102 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
*.swp | ||
Binaries/ | ||
Intermediate/ | ||
PopcornFX_Runtime_SDK/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
@echo off | ||
|
||
call "Download_SDK_Desktop.bat" | ||
call "Download_SDK_Mobile.bat" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@echo off | ||
|
||
echo "---------- Downloading PopcornFX Runtime SDK for Unreal Engine (Desktop platforms) ----------" | ||
|
||
setlocal | ||
|
||
bitsadmin /reset | ||
bitsadmin /create third_party_download_desktop | ||
bitsadmin /addfile third_party_download_desktop https://downloads.popcornfx.com/Plugins/UE4/UnrealEngine_PopcornFXPlugin_2.11.2_Win64_Linux64_Mac64.7z "%~dp0\_PopcornFX_Runtime_SDK_Desktop.7z" | ||
bitsadmin /setpriority third_party_download_desktop "FOREGROUND" | ||
bitsadmin /resume third_party_download_desktop | ||
|
||
:WAIT_FOR_DOWNLOAD_LOOP_START | ||
call bitsadmin /info third_party_download_desktop /verbose | find "STATE: TRANSFERRED" | ||
if %ERRORLEVEL% equ 0 goto WAIT_FOR_DOWNLOAD_LOOP_END | ||
call bitsadmin /RawReturn /GetBytesTransferred third_party_download_desktop | ||
echo Bytes transferred | ||
timeout 2 > nul | ||
goto WAIT_FOR_DOWNLOAD_LOOP_START | ||
:WAIT_FOR_DOWNLOAD_LOOP_END | ||
|
||
bitsadmin /complete third_party_download_desktop | ||
|
||
echo "---------- Download complete ----------" | ||
echo "---------- Preparing PopcornFX_Runtime_SDK/ ----------" | ||
|
||
rem rmdir /s /q %~dp0\PopcornFX_Runtime_SDK | ||
mkdir %~dp0\PopcornFX_Runtime_SDK | ||
|
||
echo "---------- Unzipping _PopcornFX_Runtime_SDK.7z ----------" | ||
|
||
7z x _PopcornFX_Runtime_SDK_Desktop.7z -o_PopcornFX_Runtime_SDK_Desktop | ||
|
||
echo "---------- Copying PopcornFX Runtime SDK ----------" | ||
|
||
xcopy _PopcornFX_Runtime_SDK_Desktop\PopcornFX\PopcornFX_Runtime_SDK %~dp0\PopcornFX_Runtime_SDK /S /F /Y | ||
|
||
echo "---------- Removing temp files ----------" | ||
|
||
rmdir /s /q %~dp0\_PopcornFX_Runtime_SDK_Desktop | ||
del /f _PopcornFX_Runtime_SDK_Desktop.7z | ||
|
||
echo "---------- Finished ----------" | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@echo off | ||
|
||
echo "---------- Downloading PopcornFX Runtime SDK for Unreal Engine (Mobile platforms) ----------" | ||
|
||
setlocal | ||
|
||
bitsadmin /reset | ||
bitsadmin /create third_party_download_mobile | ||
bitsadmin /addfile third_party_download_mobile https://downloads.popcornfx.com/Plugins/UE4/UnrealEngine_PopcornFXPlugin_2.11.2_iOS_Android.7z "%~dp0\_PopcornFX_Runtime_SDK_Mobile.7z" | ||
bitsadmin /setpriority third_party_download_mobile "FOREGROUND" | ||
bitsadmin /resume third_party_download_mobile | ||
|
||
:WAIT_FOR_DOWNLOAD_LOOP_START | ||
call bitsadmin /info third_party_download_mobile /verbose | find "STATE: TRANSFERRED" | ||
if %ERRORLEVEL% equ 0 goto WAIT_FOR_DOWNLOAD_LOOP_END | ||
call bitsadmin /RawReturn /GetBytesTransferred third_party_download_mobile | ||
echo Bytes transferred | ||
timeout 2 > nul | ||
goto WAIT_FOR_DOWNLOAD_LOOP_START | ||
:WAIT_FOR_DOWNLOAD_LOOP_END | ||
|
||
bitsadmin /complete third_party_download_mobile | ||
|
||
echo "---------- Download complete ----------" | ||
echo "---------- Preparing PopcornFX_Runtime_SDK/ ----------" | ||
|
||
rem rmdir /s /q %~dp0\PopcornFX_Runtime_SDK | ||
mkdir %~dp0\PopcornFX_Runtime_SDK | ||
|
||
echo "---------- Unzipping _PopcornFX_Runtime_SDK_Mobile.7z ----------" | ||
|
||
7z x _PopcornFX_Runtime_SDK_Mobile.7z -o_PopcornFX_Runtime_SDK_Mobile | ||
|
||
echo "---------- Copying PopcornFX Runtime SDK ----------" | ||
|
||
xcopy _PopcornFX_Runtime_SDK_Mobile\PopcornFX\PopcornFX_Runtime_SDK %~dp0\PopcornFX_Runtime_SDK /S /F /Y | ||
|
||
echo "---------- Removing temp files ----------" | ||
|
||
rmdir /s /q %~dp0\_PopcornFX_Runtime_SDK_Mobile | ||
del /f _PopcornFX_Runtime_SDK_Mobile.7z | ||
|
||
echo "---------- Finished ----------" | ||
|
||
endlocal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters