Skip to content

Commit

Permalink
linux: patch reaper-menu.ini to remove emojis
Browse files Browse the repository at this point in the history
Emojis can't be displayed in the Linux version of reaper.
  • Loading branch information
Udo Sauer committed Nov 1, 2024
1 parent 8ccf5ea commit be38b95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions linux/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,11 @@ cp -r ultraschall-theme/osFiles/Linux/ProjectTemplates ultraschall-theme
rm -rf ultraschall-theme/osFiles

# patch color to fix the storyboard view
echo "Patching Theme..."
sed -i 's/col_main_text=.*/col_main_text=15790320/g' ultraschall-theme/ColorThemes/Ultraschall_5.ReaperTheme

# create libSwell config file (Linux only) and adjust menu settings
echo "Creating libSwell colortheme file..."
cat << EOF > ultraschall-theme/libSwell.colortheme
menubar_height 28
menubar_font_size 15
Expand All @@ -344,6 +346,13 @@ menu_submenu_arrow #FDBC00
EOF
cp ultraschall-theme/libSwell.colortheme ultraschall-theme/libSwell-user.colortheme

# patch reaper-menu.ini and remove emojis that are not shown in linux
echo "Patching reaper-menu.ini..."
sed -r -i 's/(item_[0-9]*=-[0-9]* )(.*) (1. Setup$)/\1\3/g' ultraschall-theme/reaper-menu.ini
sed -r -i 's/(item_[0-9]*=-[0-9]* )(.*) (2. Recording$)/\1\3/g' ultraschall-theme/reaper-menu.ini
sed -r -i 's/(item_[0-9]*=-[0-9]* )(.*) (3. Production$)/\1\3/g' ultraschall-theme/reaper-menu.ini
sed -r -i 's/(item_[0-9]*=-[0-9]* )(.*) (Miscellaneous$)/\1\3/g' ultraschall-theme/reaper-menu.ini

# create a tar file
pushd ultraschall-theme > /dev/null || exit
tar cvf "../$ULTRASCHALL_INSTALLER_DIR/themes/ultraschall-theme.tar" ./* > /dev/null
Expand Down

0 comments on commit be38b95

Please sign in to comment.