Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Feb 7, 2025
1 parent 6ceaee4 commit 1ef87c8
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,11 @@ runs:
rm ${{ inputs.bin-path }}/editor/$file
fi
# Move file
if [ "$platform" == "macos" ]; then
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.app/Contents/MacOS/Blazium" >> $GITHUB_ENV
elif [ "$platform" == "linux" ]; then
if [ "$platform" == "linux" ]; then
file=$(ls ${{ inputs.bin-path }}/editor)
chmod +x ${{ inputs.bin-path }}/editor/$file
# Rename it to Blazium
mv ${{ inputs.bin-path }}/editor/$file ${{ inputs.bin-path }}/editor/Blazium
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium" >> $GITHUB_ENV
else
# Find the first subdirectory in the bin path
subdir=$(find "${{ inputs.bin-path }}/editor" -type d -mindepth 1 -maxdepth 1)
Expand All @@ -184,7 +181,6 @@ runs:
file=$(find "$subdir" -type f -name '*.console.exe' | head -n 1)
# Rename to Blazium.exe
mv $file ${{ inputs.bin-path }}/editor/Blazium.exe
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.exe" >> $GITHUB_ENV
fi
else
Expand All @@ -194,8 +190,15 @@ runs:
# Add Blazium to PATH
echo "${{ inputs.bin-path }}/editor" >> $GITHUB_PATH
# Export Blazium Editor ENV
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium" >> $GITHUB_ENV
if [ "$platform" == "macos" ]; then
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.app/Contents/MacOS/Blazium" >> $GITHUB_ENV
elif [ "$platform" == "linux" ]; then
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium" >> $GITHUB_ENV
else
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.exe" >> $GITHUB_ENV
fi
- name: Verify Blazium Editor Installation
shell: bash
Expand Down

0 comments on commit 1ef87c8

Please sign in to comment.