Skip to content

Commit

Permalink
Merge pull request #183 from leoheck/fix-appimage-icons-of-freecad-st…
Browse files Browse the repository at this point in the history
…able

Packaging: Fix the launcher icon of the stable version of the Freecad for AppImages
  • Loading branch information
chennes authored Jul 24, 2023
2 parents d6e832e + 0b26bd1 commit ea3b392
Show file tree
Hide file tree
Showing 4 changed files with 302 additions and 3 deletions.
12 changes: 12 additions & 0 deletions conda/linux/AppDir/freecad.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Version=1.0
Name=FreeCAD
Exec=AppRun
Icon=freecad
Type=Application
Categories=Engineering;
Comment=Feature based Parametric Modeler
Terminal=false
StartupNotify=true
NoDisplay=false
MimeType=application/x-extension-fcstd;
Binary file added conda/linux/AppDir/freecad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
282 changes: 282 additions & 0 deletions conda/linux/AppDir/freecad.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 8 additions & 3 deletions conda/linux/create_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,17 @@ cp qt.conf ${conda_env}/bin/
cp qt.conf ${conda_env}/libexec/

echo -e "\nCopy Icon and Desktop file"
if [ "$DEPLOY_RELEASE" = "weekly-builds" ]; then
icon_name="freecad_weekly"
else
icon_name="freecad"
fi
mkdir -p ${conda_env}/share/icons/hicolor/scalable/apps/
cp AppDir/freecad_weekly.svg ${conda_env}/share/icons/hicolor/scalable/apps/
cp AppDir/${icon_name}.svg ${conda_env}/share/icons/hicolor/scalable/apps/
mkdir -p ${conda_env}/share/icons/hicolor/64x64/apps/
cp AppDir/freecad_weekly.png ${conda_env}/share/icons/hicolor/64x64/apps/
cp AppDir/${icon_name}.png ${conda_env}/share/icons/hicolor/64x64/apps/
mkdir -p ${conda_env}/share/applications/
cp AppDir/freecad_weekly.desktop ${conda_env}/share/applications/
cp AppDir/${icon_name}.desktop ${conda_env}/share/applications/

# Remove __pycache__ folders and .pyc files
find . -path "*/__pycache__/*" -delete
Expand Down

0 comments on commit ea3b392

Please sign in to comment.