Skip to content

Commit

Permalink
Exclude Editor settings from package. Add some debug logging for pack…
Browse files Browse the repository at this point in the history
…aging.
  • Loading branch information
philip-lamb committed Jun 15, 2023
1 parent 2de22e0 commit 1aa0825
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ public static void CreatePackage() {
#endif // UNITY_ANDROID

string[] assets = {
"Assets",
"Assets/artoolkitX-Unity",
"Assets/Patterns",
"Assets/StreamingAssets",
};

AssetDatabase.ExportPackage(assets, packageName, ExportPackageOptions.Recurse);
Expand Down
28 changes: 24 additions & 4 deletions Source/packaging/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,34 @@
# -e = exit on errors
set -e -x

#One can pass the unity version as parameter is no version is passed the script will only look for an app called 'Unity'
UNITY_VERSION=$1

# Get our location.
OURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ARUNITYX_HOME="$OURDIR/../.."
PROJECT_PATH="${ARUNITYX_HOME}/Source/Package"
PLUGINS_BASE="${PROJECT_PATH}/Assets/artoolkitX-Unity/Plugins"

# Parse parameters
while test $# -gt 0
do
case "$1" in
--with-gpu) UNITY_WITH_GPU=
;;
--log) touch "$2" && LOG="-logFile $2"; shift
;;
--debug) DEBUG=
;;
--dev) DEV=1
;;
--*) echo "bad option $1"
usage
;;
*) echo "bad argument $1"
usage
;;
esac
shift
done

OS=$(uname -s)
WINPATH=cygpath
if [ "$OS" = "Linux" ]
Expand Down Expand Up @@ -113,7 +132,8 @@ sed -Ei "" "s/artoolkitX for Unity Version (([0-9]+\.[0-9]+)(\.[0-9]+)?(r[0-9]+)
-stackTraceLogType Full \
-projectPath "${UNITY_PROJECT_PATH}" \
-arunityxpackagename arunityX-${VERSION}.unitypackage \
-executeMethod ARToolKitPackager.CreatePackage
-executeMethod ARToolKitPackager.CreatePackage \
${LOG} \

# Move the output.
mv "${PROJECT_PATH}/arunityX-${VERSION}.unitypackage" "${ARUNITYX_HOME}"

0 comments on commit 1aa0825

Please sign in to comment.