-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Missing android build command for simple demo (fix cronos-la…
…bs/play-unreal-plugin#238) (#28) Close: - cronos-labs/play-unreal-plugin#238 Solution: - Add android-build.ps1 - Remove android_key_gen.bat and replace it with android_key_gen.ps1 - Update README * Update README * Update README
- Loading branch information
Showing
4 changed files
with
96 additions
and
47 deletions.
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
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,16 @@ | ||
[System.Environment]::SetEnvironmentVariable('JAVA_HOME','C:\Program Files\Android\Android Studio\jre') | ||
[System.Environment]::SetEnvironmentVariable('ANDROID_HOME',"$env:LOCALAPPDATA\Android\Sdk") | ||
[System.Environment]::SetEnvironmentVariable('NDKROOT',"$env:LOCALAPPDATA\Android\Sdk\ndk\21.4.7075529") | ||
|
||
$curDir = (Get-Item .).FullName | ||
cmd.exe /c "C:\Program Files\Epic Games\UE_4.27\Engine\Build\BatchFiles\RunUAT.bat" ` | ||
BuildCookRun ` | ||
-utf8output ` | ||
-platform=Android ` | ||
-cookflavor=ASTC ` | ||
-clientconfig=Development ` | ||
-serverconfig=Development ` | ||
-project="$curDir/CronosPlayUnrealDemo.uproject" ` | ||
-noP4 -nodebuginfo -allmaps ` | ||
-cook -build -stage -prereqs -pak -archive ` | ||
-archivedirectory="$curDir\archive" |
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
& "C:\Program Files\Android\Android Studio\jre\bin\keytool.exe" ` | ||
-genkey -v -keystore key.keystore -alias Mykey -keyalg RSA -keysize 2048 -validity 10000 ` | ||
-dname "CN=TestGuy, OU=MyCompany, O=MyGame, L=MyCity, ST=NC, C=00" ` | ||
-storepass 123456 -keypass 123456 | ||
|
||
$path = "Build\Android" | ||
If(!(Test-Path -PathType container $path)) | ||
{ | ||
New-Item -ItemType Directory -Path $path | ||
} | ||
|
||
|
||
move key.keystore Build\Android |