Skip to content

Commit

Permalink
Update version display in prefab
Browse files Browse the repository at this point in the history
  • Loading branch information
jacklul committed Jun 2, 2024
1 parent c33c2f2 commit c6dfae6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
- "v*.*.*"
branches:
- master
- develop
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -27,8 +29,16 @@ jobs:
rm -fr "Assets/${{ env.ASSETS_FOLDER }}/Development"
echo "Assets/${{ env.ASSETS_FOLDER }}.meta" > metaList
find "Assets/${{ env.ASSETS_FOLDER }}/" -name \*.meta >> metaList
echo $GITHUB_REF_NAME > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
sed -i -e "s/(development version)/$GITHUB_REF_NAME/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
- run: |
echo "$GITHUB_REF_NAME" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
sed -i -e "s/(dev version)/$GITHUB_REF_NAME/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
if: startsWith(github.ref, 'refs/tags/')
- run: |
echo "branch-$GITHUB_REF_NAME" > "Assets/${{ env.ASSETS_FOLDER }}/version.txt"
sed -i -e "s/(dev version)/branch-$GITHUB_REF_NAME/g" "Assets/${{ env.ASSETS_FOLDER }}/Subtitles.prefab"
if: startsWith(github.ref, 'refs/heads/')
- uses: pCYSl5EDgo/create-unitypackage@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Assets/USharpVideoSubtitles/Subtitles.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ MonoBehaviour:
m_Calls: []
m_text: 'github.com/jacklul/USharpVideo-Subtitles

(development version)'
Version: (dev version)'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ PlayerSettings:
m_Automatic: 0
- m_BuildTarget: iOSSupport
m_APIs: 10000000
m_Automatic: 0
m_Automatic: 1
- m_BuildTarget: AppleTVSupport
m_APIs: 10000000
m_Automatic: 1
Expand Down

0 comments on commit c6dfae6

Please sign in to comment.