Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Install Linux icon to hicolor theme directory for proper icon lookup

Prateek Sunal5539b9f3ebaa
diff --git a/mobile/apps/auth/linux/packaging/build_rpm.sh b/mobile/apps/auth/linux/packaging/build_rpm.sh
index 8562486e5e..e9acc4b2ea 100755
--- a/mobile/apps/auth/linux/packaging/build_rpm.sh
+++ b/mobile/apps/auth/linux/packaging/build_rpm.sh
@@ -64,9 +64,11 @@ cp -r "$BUNDLE_DIR"/* "$STAGING_DIR/usr/share/enteauth/"
echo -e "${YELLOW}Copying metainfo file...${NC}"
cp linux/packaging/enteauth.appdata.xml "$STAGING_DIR/usr/share/metainfo/"
-# Copy icon
+# Copy icon to multiple locations for better compatibility
echo -e "${YELLOW}Copying icon...${NC}"
-cp "$BUNDLE_DIR/data/flutter_assets/assets/icons/io.ente.auth.png" "$STAGING_DIR/usr/share/pixmaps/io.ente.auth.png"
+cp "assets/icons/io.ente.auth.png" "$STAGING_DIR/usr/share/pixmaps/io.ente.auth.png"
+mkdir -p "$STAGING_DIR/usr/share/icons/hicolor/256x256/apps"
+cp "assets/icons/io.ente.auth.png" "$STAGING_DIR/usr/share/icons/hicolor/256x256/apps/io.ente.auth.png"
# Copy desktop file
echo -e "${YELLOW}Copying desktop file...${NC}"