-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
76 additions
and
30 deletions.
There are no files selected for viewing
Binary file modified
BIN
+18.9 KB
(140%)
Assets/ShinyEffectForUGUI/Demo/Demo - ShinyEffectForUGUI.unity
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,81 @@ | ||
#!/bin/bash -e | ||
|
||
# NOTE: Set an environment variable `CHANGELOG_GITHUB_TOKEN` by running the following command at the prompt, or by adding it to your shell profile (e.g., ~/.bash_profile or ~/.zshrc): | ||
# export CHANGELOG_GITHUB_TOKEN="«your-40-digit-github-token»" | ||
|
||
# Release the project with the following steps: | ||
# 1. Update the release version in package.json. | ||
# 2. Update "CHANGELOG.md" using "github_changelog_generator-1.15.0.pre.rc". | ||
# 3. Commit package.json and CHANGELOG.md. | ||
# 4. Merge into master branch. | ||
# 5. Export unitypackage. | ||
# 6. Release using "gh-release-3.2.0". (Upload unitypackage) | ||
UNITY_PATH=/Applications/Unity5.5.0p4/Unity5.5.0p4.app/Contents/MacOS/Unity | ||
|
||
|
||
# input version | ||
# input release version | ||
echo -e "\n>> Start Github Release:" | ||
PACKAGE_NAME=`node -pe 'require("./package.json").name'` | ||
echo Github Release: $PACKAGE_NAME | ||
read -p "[? release version (for example: 1.0.0): " RELEASE_VERSION | ||
echo -e ">> Package name: ${PACKAGE_NAME}" | ||
CURRENT_VERSION=`grep -o -e "\"version\".*$" package.json | sed -e "s/\"version\": \"\(.*\)\".*$/\1/"` | ||
read -p "[? release version (for current: ${CURRENT_VERSION}): " RELEASE_VERSION | ||
[ -z "$RELEASE_VERSION" ] && exit | ||
|
||
|
||
# update version | ||
# update version in package.json | ||
echo -e "\n>> Update version... package.json" | ||
git checkout -B release develop | ||
sed -i -e "s/\"version\": \(.*\)/\"version\": \"${RELEASE_VERSION}\",/g" package.json | ||
|
||
|
||
# check unity editor | ||
UNITY_VER=`sed -e "s/m_EditorVersion: \(.*\)/\1/g" ProjectSettings/ProjectVersion.txt` | ||
UNITY_EDITOR="/Applications/Unity/Hub/Editor/${UNITY_VER}/Unity.app/Contents/MacOS/Unity" | ||
echo -e "\n>> Check unity editor... ${UNITY_VER} (${UNITY_EDITOR})" | ||
"$UNITY_EDITOR" -quit -batchmode -projectPath "`pwd`" | ||
echo -e ">> OK" | ||
|
||
# generate change log | ||
CHANGELOG_GENERATOR_ARG=`grep -o -e ".*git\"$" package.json | sed -e "s/^.*\/\([^\/]*\)\/\([^\/]*\).git.*$/--user \1 --project \2/"` | ||
echo -e "\n>> Generate change log... ${CHANGELOG_GENERATOR_ARG}" | ||
TAG=v$RELEASE_VERSION | ||
git tag $TAG | ||
git push --tags | ||
github_changelog_generator | ||
github_changelog_generator ${CHANGELOG_GENERATOR_ARG} | ||
git tag -d $TAG | ||
git push --delete origin $TAG | ||
|
||
|
||
git diff -- CHANGELOG.md | ||
read -p "[? continue? (y/N):" yn | ||
read -p "[? is the change log correct? (y/N):" yn | ||
case "$yn" in [yY]*) ;; *) exit ;; esac | ||
|
||
|
||
# commit files | ||
# commit release files | ||
echo -e "\n>> Commit release files..." | ||
git add CHANGELOG.md -f | ||
git add package.json -f | ||
git commit -m "update change log" | ||
|
||
|
||
# merge and push | ||
echo -e "\n>> Merge and push..." | ||
git checkout master | ||
git merge --no-ff release -m "release $TAG" | ||
git branch -D release | ||
git push origin master | ||
git checkout develop | ||
git merge --ff master | ||
git push origin develop | ||
|
||
|
||
# export .unitypackage and release on Github | ||
# export unitypackage | ||
PACKAGE_SRC=`node -pe 'require("./package.json").src'` | ||
$UNITY_PATH -quit -batchmode -projectPath "`pwd`" -exportpackage $PACKAGE_SRC $PACKAGE_NAME.unitypackage | ||
gh-release --draft --assets $PACKAGE_NAME.unitypackage | ||
echo -e "\n>> Export unitypackage... ${PACKAGE_SRC}" | ||
"$UNITY_EDITOR" -quit -batchmode -projectPath "`pwd`" -exportpackage "$PACKAGE_SRC" "$PACKAGE_NAME.unitypackage" | ||
echo -e ">> OK" | ||
|
||
|
||
# upload unitypackage and release on Github | ||
gh-release --assets "$PACKAGE_NAME.unitypackage" | ||
|
||
|
||
echo "\n\n$PACKAGE_NAME v$RELEASE_VERSION has been successfully released!\n" | ||
echo -e "\n\n>> $PACKAGE_NAME v$RELEASE_VERSION has been successfully released!\n" |