Font size + appimage tweaks
This commit is contained in:
parent
18ce09238f
commit
a415b96a13
3 changed files with 20 additions and 14 deletions
|
|
@ -12,6 +12,8 @@ GREEN='\033[0;32m'
|
|||
YELLOW='\033[1;33m'
|
||||
NC='\033[0m' # No Color
|
||||
|
||||
rm -rf AppDir/
|
||||
|
||||
echo -e "${GREEN}Building ${APP_NAME} AppImage...${NC}"
|
||||
|
||||
# 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/
|
||||
chmod +x AppDir/usr/bin/passport-c-media-player
|
||||
|
||||
# Copy desktop file
|
||||
cp AppDir/usr/share/applications/passport-c-media-player.desktop AppDir/
|
||||
# Create desktop file directly in script (avoids copy conflicts)
|
||||
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
|
||||
echo -e "${GREEN}Setting up icon...${NC}"
|
||||
|
|
@ -55,18 +69,10 @@ if [ ! -f "linuxdeploy-x86_64.AppImage" ]; then
|
|||
chmod +x linuxdeploy-x86_64.AppImage
|
||||
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
|
||||
echo -e "${GREEN}Creating AppImage...${NC}"
|
||||
./linuxdeploy-x86_64.AppImage \
|
||||
--appdir AppDir \
|
||||
--plugin ffmpeg \
|
||||
--output appimage \
|
||||
-d AppDir/usr/share/applications/passport-c-media-player.desktop \
|
||||
-i AppDir/usr/share/icons/hicolor/256x256/apps/passport-c-media-player.png
|
||||
|
|
@ -82,4 +88,4 @@ if [ -f "${OUTPUT_NAME}" ]; then
|
|||
else
|
||||
echo -e "${RED}Error: AppImage creation failed!${NC}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
6
src/ui.c
6
src/ui.c
|
|
@ -1227,9 +1227,9 @@ int ui_load_fonts(UiFonts *fonts) {
|
|||
|
||||
memset(fonts, 0, sizeof(*fonts));
|
||||
for (size_t i = 0; i < sizeof(FONT_CANDIDATES) / sizeof(FONT_CANDIDATES[0]); ++i) {
|
||||
fonts->small = TTF_OpenFont(FONT_CANDIDATES[i], 18);
|
||||
fonts->medium = TTF_OpenFont(FONT_CANDIDATES[i], 24);
|
||||
fonts->large = TTF_OpenFont(FONT_CANDIDATES[i], 32);
|
||||
fonts->small = TTF_OpenFont(FONT_CANDIDATES[i], 13);
|
||||
fonts->medium = TTF_OpenFont(FONT_CANDIDATES[i], 17);
|
||||
fonts->large = TTF_OpenFont(FONT_CANDIDATES[i], 22);
|
||||
if (fonts->small && fonts->medium && fonts->large) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
BIN
src/ui.o
BIN
src/ui.o
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue