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

Commit cc678f6

Browse files
committed
Tag the package name with the commit count and commit hash
1 parent c965e81 commit cc678f6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

common/SolutionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@
3131
namespace System
3232
{
3333
internal static class AssemblyVersionInformation {
34-
internal const string Version = "0.19.0.0";
34+
internal const string Version = "0.19.0";
3535
}
3636
}

package.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,9 @@ rm -f unity/PackageProject/Assets/Plugins/GitHub/Editor/*.pdb.meta
5959
rm -f unity/PackageProject/Assets/Plugins/GitHub/Editor/*.xml
6060

6161
Version=`sed -En 's,.*Version = "(.*)".*,\1,p' common/SolutionInfo.cs`
62+
commitcount=`git rev-list --count HEAD`
63+
commit=`git log -n1 --pretty=format:%h`
64+
Version="${Version}-${commitcount}-${commit}"
65+
Version=$Version
6266
export GITHUB_UNITY_DISABLE=1
63-
"$Unity" -batchmode -projectPath "`pwd`/unity/PackageProject" -exportPackage Assets/Plugins/GitHub/Editor github-for-unity-$Version-alpha.unitypackage -force-free -quit
67+
"$Unity" -batchmode -projectPath "`pwd`/unity/PackageProject" -exportPackage Assets/Plugins/GitHub/Editor github-for-unity-$Version.unitypackage -force-free -quit

0 commit comments

Comments
 (0)