Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Fix unitypackage creation #969

Merged
merged 2 commits into from
Nov 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions create-unitypackage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

version=$(sed -En 's,.*Version = "(.*)".*,\1,p' common/SolutionInfo.cs)
commitcount=$(git rev-list --count HEAD)
commit=$(git log -n1 --pretty=format:%h)
version="${version}.${commitcount}-${commit}"

$DIR/submodules/packaging/unitypackage/run.sh --path $DIR/unity/PackageProject --out $DIR --file github-for-unity-$version
2 changes: 1 addition & 1 deletion submodules/packaging