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 3dedc70 commit ccd87e1
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,28 +158,29 @@ runs:
rm ${{ inputs.bin-path }}/editor/$file
fi
if [ "$platform" == "macos" ]; then
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.app/Contents/MacOS/Blazium" >> $GITHUB_ENV
elif [ "$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)
# Find the .console.exe file within the subdirectory
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
echo "Using cached platform $platform and arch $arch and mono $mono"
ls ${{ inputs.bin-path }}/editor
fi
if [ "$platform" == "macos" ]; then
echo "BLAZIUM_EDITOR=${{ inputs.bin-path }}/editor/Blazium.app/Contents/MacOS/Blazium" >> $GITHUB_ENV
elif [ "$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)
# Find the .console.exe file within the subdirectory
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
# Add Blazium to PATH
echo "${{ inputs.bin-path }}/editor" >> $GITHUB_PATH
Expand Down

0 comments on commit ccd87e1

Please sign in to comment.