Font size + appimage tweaks

This commit is contained in:
markmental 2026-03-28 16:11:14 -04:00
commit a415b96a13
3 changed files with 20 additions and 14 deletions

View file

@ -12,6 +12,8 @@ GREEN='\033[0;32m'
YELLOW='\033[1;33m' YELLOW='\033[1;33m'
NC='\033[0m' # No Color NC='\033[0m' # No Color
rm -rf AppDir/
echo -e "${GREEN}Building ${APP_NAME} AppImage...${NC}" echo -e "${GREEN}Building ${APP_NAME} AppImage...${NC}"
# Check if binary exists # Check if binary exists
@ -31,8 +33,20 @@ mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
cp passport-c-media-player AppDir/usr/bin/ cp passport-c-media-player AppDir/usr/bin/
chmod +x AppDir/usr/bin/passport-c-media-player chmod +x AppDir/usr/bin/passport-c-media-player
# Copy desktop file # Create desktop file directly in script (avoids copy conflicts)
cp AppDir/usr/share/applications/passport-c-media-player.desktop AppDir/ cat > AppDir/passport-c-media-player.desktop << 'EOF'
[Desktop Entry]
Name=Passport-C Media Player
Comment=Turn your media library into an early 2000s cable box TV guide
Exec=passport-c-media-player
Icon=passport-c-media-player
Type=Application
Categories=AudioVideo;Player;TV;
Terminal=false
EOF
# Also copy to usr/share/applications for system integration
cp AppDir/passport-c-media-player.desktop AppDir/usr/share/applications/
# Copy and convert icon # Copy and convert icon
echo -e "${GREEN}Setting up icon...${NC}" echo -e "${GREEN}Setting up icon...${NC}"
@ -55,18 +69,10 @@ if [ ! -f "linuxdeploy-x86_64.AppImage" ]; then
chmod +x linuxdeploy-x86_64.AppImage chmod +x linuxdeploy-x86_64.AppImage
fi fi
# Download ffmpeg plugin if not present
if [ ! -f "linuxdeploy-plugin-ffmpeg.sh" ]; then
echo -e "${GREEN}Downloading ffmpeg plugin...${NC}"
wget -q https://raw.githubusercontent.com/linuxdeploy/linuxdeploy-plugin-ffmpeg/master/linuxdeploy-plugin-ffmpeg.sh
chmod +x linuxdeploy-plugin-ffmpeg.sh
fi
# Build AppImage # Build AppImage
echo -e "${GREEN}Creating AppImage...${NC}" echo -e "${GREEN}Creating AppImage...${NC}"
./linuxdeploy-x86_64.AppImage \ ./linuxdeploy-x86_64.AppImage \
--appdir AppDir \ --appdir AppDir \
--plugin ffmpeg \
--output appimage \ --output appimage \
-d AppDir/usr/share/applications/passport-c-media-player.desktop \ -d AppDir/usr/share/applications/passport-c-media-player.desktop \
-i AppDir/usr/share/icons/hicolor/256x256/apps/passport-c-media-player.png -i AppDir/usr/share/icons/hicolor/256x256/apps/passport-c-media-player.png
@ -82,4 +88,4 @@ if [ -f "${OUTPUT_NAME}" ]; then
else else
echo -e "${RED}Error: AppImage creation failed!${NC}" echo -e "${RED}Error: AppImage creation failed!${NC}"
exit 1 exit 1
fi fi

View file

@ -1227,9 +1227,9 @@ int ui_load_fonts(UiFonts *fonts) {
memset(fonts, 0, sizeof(*fonts)); memset(fonts, 0, sizeof(*fonts));
for (size_t i = 0; i < sizeof(FONT_CANDIDATES) / sizeof(FONT_CANDIDATES[0]); ++i) { for (size_t i = 0; i < sizeof(FONT_CANDIDATES) / sizeof(FONT_CANDIDATES[0]); ++i) {
fonts->small = TTF_OpenFont(FONT_CANDIDATES[i], 18); fonts->small = TTF_OpenFont(FONT_CANDIDATES[i], 13);
fonts->medium = TTF_OpenFont(FONT_CANDIDATES[i], 24); fonts->medium = TTF_OpenFont(FONT_CANDIDATES[i], 17);
fonts->large = TTF_OpenFont(FONT_CANDIDATES[i], 32); fonts->large = TTF_OpenFont(FONT_CANDIDATES[i], 22);
if (fonts->small && fonts->medium && fonts->large) { if (fonts->small && fonts->medium && fonts->large) {
return 0; return 0;
} }

BIN
src/ui.o

Binary file not shown.