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

Commit 2a81f95

Browse files
author
Andreia Gaita
authored
Merge pull request #969 from github-for-unity/fixes/packaging
Fix unitypackage creation
2 parents 133e3b4 + 0475edd commit 2a81f95

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

create-unitypackage.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh -eu
2+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3+
4+
version=$(sed -En 's,.*Version = "(.*)".*,\1,p' common/SolutionInfo.cs)
5+
commitcount=$(git rev-list --count HEAD)
6+
commit=$(git log -n1 --pretty=format:%h)
7+
version="${version}.${commitcount}-${commit}"
8+
9+
$DIR/submodules/packaging/unitypackage/run.sh --path $DIR/unity/PackageProject --out $DIR --file github-for-unity-$version

0 commit comments

Comments
 (0)