Commit Graph

79 Commits

Author SHA1 Message Date
Nick Shin
696c57ee72 HTML5: output "shareable link" when packaging has uploaded successfully to amazon's s3 servers
tested with phosphor's AWS S3 KeyID & Secret Access Key

#lockdown josh.adams
#jira UE-22574 - HTML5: Amazon S3 for HTML5 does not auto generate a shareable link of the packaged project

[CL 2742263 by Nick Shin in Main branch]
2015-10-26 16:47:53 -04:00
Nick Shin
a592058439 remove the read-only file-attribute before copy .htaccess
#lockdown josh.adams
#jira UE-22014 - Failure during packaging projects for HTML5

[CL 2730601 by Nick Shin in Main branch]
2015-10-15 16:17:26 -04:00
Ben Marsh
57097692aa Change deployment context and project params to use file references rather than raw paths.
[CL 2707182 by Ben Marsh in Main branch]
2015-09-26 14:41:15 -04:00
James Moran
4e2577f5b3 Fix numerous path slash issues for HTML5 packaging on Mac.
Fixes UE-20141

[CL 2693468 by James Moran in Main branch]
2015-09-16 10:49:15 -04:00
James Moran
f9392202a7 Tweaking HTML5 package compression.
When packaged HTML5 can now handle being hosted on servers that don't support static compression - done by removing explicit requests for compressed files.
Compression requires correct server setup. htaccess file included in package deploy to make this easier.
Changed HTML5LaunchHelper to switch between compressed/uncompressed files when uncompressed files do/don't exist.

[CL 2691701 by James Moran in Main branch]
2015-09-15 10:35:25 -04:00
Peter Sauerbrei
e706287759 Speed up reading and accessing ini files from UAT/UBT
#uat
#ubt
#codereview ben.marsh, wes.hunt

[CL 2691637 by Peter Sauerbrei in Main branch]
2015-09-15 09:29:42 -04:00
Ben Marsh
9610023ca5 Use FileReference and DirectoryReference classes instead of strings for paths. Massively reduces the amount of paranoid calls to GetFullPath(), CleanDirectorySeparators() et al., and improves performance for really common UBT operations like making relative paths or checking if files are under a directory. Strong typing ensures that intention of parameters is explicit.
[CL 2678429 by Ben Marsh in Main branch]
2015-09-03 08:47:24 -04:00
James Moran
52722d49c4 Don't use AppendLine on StringBuilder is it outputs system dependent line endings. Manually output \\n instead.
Fixes UE-20380

[CL 2672115 by James Moran in Main branch]
2015-08-28 06:22:04 -04:00
James Moran
c53f5a47cb When copying the html5 helper command template remove any read only file attributes.
Fixes issues when attempting to write to these files.

[CL 2668953 by James Moran in Main branch]
2015-08-26 04:36:06 -04:00
Peter Sauerbrei
34146c450d refactored Log to LogLog and LogConsole to Log
#uat

[CL 2662556 by Peter Sauerbrei in Main branch]
2015-08-20 09:37:11 -04:00
Ben Marsh
47c58ec57c Rename the ErrorCodes enum to ExitCode, and ErrorCodes.Error_Success to ExitCode.Success.
[CL 2662478 by Ben Marsh in Main branch]
2015-08-20 08:38:09 -04:00
James Moran
d25a9d8094 Mac HTML5LaunchHelper script is now copied instead of created to keep file permissions (i.e. +x).
Mark HTML5LaunchHelper script as executable.
Script handles spaces when pushing working directory.
Fixes UE-19637 (again)

[CL 2654364 by James Moran in Main branch]
2015-08-13 05:21:11 -04:00
James Moran
2a1ba3ccad Packaging HTML5 deploys double-click script for HTML5LaunchHelper to avoid using the command line.
Fixes UE-19637

[CL 2647934 by James Moran in Main branch]
2015-08-07 11:00:13 -04:00
Ankit Khare
08ec877c77 Always copy web server during packaging itself too for html5. #jira UE-19556
[CL 2643992 by Ankit Khare in Main branch]
2015-08-04 16:19:39 -04:00
Peter Sauerbrei
dc1d815f84 refactored the logging system for UAT/UBT to be more like UE4
we now use an enum similar to UE4 with Fatal, Error, Warning, Display, Log, Verbose, and VeryVerbose
Log will only go to the log file unless -verbose is passed on the command line
reduced some of the output from UAT to be Log only

[CL 2631062 by Peter Sauerbrei in Main branch]
2015-07-23 14:51:46 -04:00
Ankit Khare
9f0dbaee08 #html5 fix packaging when prebuildsync was not called ( packaging content only games, sync'd from perforce)
[CL 2622371 by Ankit Khare in Main branch]
2015-07-15 16:37:24 -04:00
James Moran
e89583075e emscripten's file_packager.py requires EM_CONFIG is set before it's run.
#codereview ankit.khare

[CL 2615093 by James Moran in Main branch]
2015-07-09 10:31:56 -04:00
Wes Hunt
7fa290bb33 Summary: running UAT from VS is simpler and faster.
UEB-261 - Ensure that compiling AutomationTool in VS will compile all other Automation Projects
* Just set AutomationTool as your startup project and pass the command to execute.
* VS will build the script modules at build time, instead of every time at runtime.
* To make this happen, "UBT.exe -ProjectFiles" now generates a companion AutomationTool.csproj.References that make AutomationTool depend on all Automation modules.
* AutomationTool.exe defaults to not building script modules at runtime. Pass -compile if you want to dynamically build them.
* Without the .references file, AutomationTool will only build itself and you will need to pass -compile.
* RunUAT.bat still works that same, defaulting to runtime compilation and supporting -nocompile flag. It then passes -compile (or nothing) to AutomationTool.

Other
* All Automation projects target .Net 4.5. Some already were and had hard dependencies on them (Rocket and SyncGithub -> Octokit). Now that AutomationTool directly depends on them, everything had to use .Net 4.5.
* Decoupled logic for -NoCompile and -NoCompileEditor. The flags are still confusing, but -NoCompile is no longer linked to -NoCompileEditor.
* Had to leave in stub support in UAT for -NoCompile else RunUAT.bat passes it along and UAT complains that it doesn't understand it.
* Added a CommandUtils.Run option to support run command, but still output the run duration.
* Reduced the verbosity when UAT.proj is run from dozens of lines per module to a single Module -> Output line. It was looking like there were problems, but it was just msbuild spew.
#codereview:ben.marsh

[CL 2615060 by Wes Hunt in Main branch]
2015-07-09 10:15:37 -04:00
Ben Marsh
a8fbbae1a8 Fix compile failure on Mac due to unused variable warning being treated as an error.
#codereview Ankit.Khare

[CL 2611916 by Ben Marsh in Main branch]
2015-07-06 20:53:10 -04:00
Ankit Khare
bd63d0b413 UEPLAT-790: One click integeration with CDNs #html5
This allows the build to be uploaded Amazon S3 during packaging. the game http link can directly shared with other people.  This does not depend on AMZ SDK and only uses REST API.

[CL 2611867 by Ankit Khare in Main branch]
2015-07-06 19:26:15 -04:00
Ankit Khare
3f5f900855 Fix HTML5Launcher to correctly launch Safari and only attach to localhost by default. (attaching to other interfaces is behind a command line argument now - existing code causes issues on Windows with UAC and on stock Mac)
[CL 2610709 by Ankit Khare in Main branch]
2015-07-05 22:57:28 -04:00
Ankit Khare
9b38554ee8 UEPLAT-826 : use HTML5 SDK from third party directories.
- Always pickup HTML5 sdk from third party directory.
   - Use the new html5 template by default.

[CL 2610587 by Ankit Khare in Main branch]
2015-07-04 18:45:54 -04:00
Wes Hunt
506f7e64a4 UEB-260 - Break AutomationTool into AutomationUtils that all automation projects depend on, and AutomationTool, which essentially only contains the startup code.
* Remove ErrorReporter.Error, replace with AutomationException with Error Code.
* Move ErrorCodes to AutomationException.
* Don't return exit codes. Solely rely on exceptions to propagate exit codes.
* Remove MainProc delegate
* Remove setting of Environment.ExitCode as it is ignored when main returns an int.
* ShutdownLogging is nothrow, as all exceptions would be ignored anyway.
* Wrap all shutdown steps so further ones get a chance to run.
* Move HostPlatform.Initialize into the global try/catch block
#codereview:ben.marsh

[CL 2605826 by Wes Hunt in Main branch]
2015-06-30 11:40:05 -04:00
James Moran
0672ad1e6f Fix HTML5LaunchHelper not serving to remote machines.
[CL 2600347 by James Moran in Main branch]
2015-06-25 06:39:00 -04:00
Ankit Khare
cb9851e8cc #html5 fix emitting compression for code projects. use consistent file extentions for compressed files.
[CL 2584749 by Ankit Khare in Main branch]
2015-06-11 15:29:20 -04:00