Skip to content

Commit

Permalink
make build-assetbundle.sh do something
Browse files Browse the repository at this point in the history
sooooo tempted to make this a python script but it probably wont get complicated to necessitate that (fingers crossed)
  • Loading branch information
drewcassidy committed Sep 14, 2024
1 parent 40d7ccd commit 6fb1a3f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-assetbundle/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ FROM unityci/editor:${UNITY_VERSION}-windows-mono-3
COPY ./ /KSPBuildTools

# Code file to execute when the docker container starts up (`build-assetbundle.sh`)
ENTRYPOINT ["/KSPBuildTools/.github/actions/build-assetbundle/build-assetbundle.sh"]
ENTRYPOINT ["/KSPBuildTools/build-assetbundle.sh", "--editor", "unity-editor"]
3 changes: 0 additions & 3 deletions .github/actions/build-assetbundle/build-assetbundle.sh

This file was deleted.

23 changes: 23 additions & 0 deletions build-assetbundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash -l

POSITIONAL_ARGS=()

while [[ $# -gt 0 ]]; do
case $1 in
-e|--editor)
EDITOR="$2"
shift # past argument
shift # past value
;;
-*)
echo "Unknown option $1"
exit 1
;;
*)
POSITIONAL_ARGS+=("$1") # save positional arg
shift # past argument
;;
esac
done

$EDITOR -version

0 comments on commit 6fb1a3f

Please sign in to comment.