Skip to content

Commit

Permalink
com.utilities.buildpipeline 1.5.8 (#50)
Browse files Browse the repository at this point in the history
- Added command line arg textureCompression to set LZ4/LZ4HC compression in build options
  • Loading branch information
StephenHodgson authored Feb 2, 2025
1 parent cbd9046 commit fa37b34
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ ( github.event_name == 'pull_request' || github.event.action == 'synchronize' ) }}
cancel-in-progress: ${{(github.event_name == 'pull_request' || github.event.action == 'synchronize')}}
jobs:
build:
name: ${{ matrix.os }} ${{ matrix.unity-version }} ${{ matrix.build-target }}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ In addition to any already defined [Unity Editor command line arguments](https:/
| `-acceptExternalModificationsToPlayer` | Sets the build options to accept external modifications to the player. |
| `-development` | Sets the build options to build a development build of the player. |
| `-colorSpace` | Sets the color space of the application, if the provided color space string is a valid `ColorSpace` enum value. |
| `-textureCompression` | Set the build texture compression. Can be: `LZ4`, `LZ4HC` |
| `-buildConfiguration` | Sets the build configuration of the application. Can be: `debug`, `master`, or `release`. |
| `-export` | Creates a native code project for the target platform. |
| `-symlinkSources` | Enables the use of symbolic links for the sources. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ In addition to any already defined [Unity Editor command line arguments](https:/
| `-acceptExternalModificationsToPlayer` | Sets the build options to accept external modifications to the player. |
| `-development` | Sets the build options to build a development build of the player. |
| `-colorSpace` | Sets the color space of the application, if the provided color space string is a valid `ColorSpace` enum value. |
| `-textureCompression` | Set the build texture compression. Can be: `LZ4`, `LZ4HC` |
| `-buildConfiguration` | Sets the build configuration of the application. Can be: `debug`, `master`, or `release`. |
| `-export` | Creates a native code project for the target platform. |
| `-symlinkSources` | Enables the use of symbolic links for the sources. |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,21 @@ public virtual void ParseCommandLineArgs()
case "-colorSpace":
ColorSpace = (ColorSpace)Enum.Parse(typeof(ColorSpace), arguments[++i]);
break;
case "-textureCompression":
var textureCompression = arguments[++i].ToLower();
switch (textureCompression.ToUpper())
{
case "LZ4":
BuildOptions.SetFlag(BuildOptions.CompressWithLz4);
break;
case "LZ4HC":
BuildOptions.SetFlag(BuildOptions.CompressWithLz4HC);
break;
default:
Debug.LogError($"Failed to parse -textureCompression: \"{textureCompression}\"");
break;
}
break;
case "-buildConfiguration":
var configuration = arguments[++i].Substring(1).ToLower();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Utilities.BuildPipeline",
"description": "The Build Pipeline Utilities aims to give developers more tools and options when making builds with the command line or with continuous integration.",
"keywords": [],
"version": "1.5.7",
"version": "1.5.8",
"unity": "2019.4",
"documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.buildpipeine#documentation",
"changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.buildpipeine/releases",
Expand Down

0 comments on commit fa37b34

Please sign in to comment.