-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
10 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
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,18 +1,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
# env variables | ||
# BUILD_TARGET | ||
|
||
# arguments | ||
UNITY_PATH=$1 # path to Unity executable (.../Unity.app/Contents/MacOS/Unity) | ||
ITCH_DESTINATION=$2 # itch.io target like userName/projectName:platform | ||
VERSION=$3 # application version | ||
BUILD_TARGET=$4 # build target | ||
|
||
echo "Remove old Build..." | ||
rm -rf Build | ||
|
||
echo "Run Unity from $UNITY_PATH..." | ||
${UNITY_PATH} -quit -batchmode -logFile - -executeMethod UnityCiPipeline.CustomBuildPipeline.RunBuildForVersion -projectPath "$(PWD)" -version=${VERSION} | ||
${UNITY_PATH} -quit -batchmode -logFile - -executeMethod UnityCiPipeline.CustomBuildPipeline.RunBuildForVersion -projectPath "$(PWD)" -version=${VERSION} -buildTarget=${BUILD_TARGET} | ||
|
||
echo "Push to itch.io..." | ||
butler push --userversion=${VERSION} --verbose Build ${ITCH_DESTINATION} |