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

Commit

Permalink
Make the commit count the last part of the version number
Browse files Browse the repository at this point in the history
  • Loading branch information
shana committed Sep 1, 2017
1 parent cc678f6 commit 30e4af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ rm -f unity/PackageProject/Assets/Plugins/GitHub/Editor/*.xml
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}"
Version="${Version}.${commitcount}-${commit}"
Version=$Version
export GITHUB_UNITY_DISABLE=1
"$Unity" -batchmode -projectPath "`pwd`/unity/PackageProject" -exportPackage Assets/Plugins/GitHub/Editor github-for-unity-$Version.unitypackage -force-free -quit

0 comments on commit 30e4af5

Please sign in to comment.