Skip to content

Commit

Permalink
Use etc\fonts\fonts.conf - run fc-cache on install
Browse files Browse the repository at this point in the history
* it spawns a dos console to run fc-cache - good for debugging
  • Loading branch information
Cecil committed Mar 10, 2015
1 parent 77c19f8 commit 1028d81
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions make/win7/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ def pre_build
"#{TGT_DIR}/share/glib-2.0/schemas"
end
sh "#{WINDRES} -I. shoes/appwin32.rc shoes/appwin32.o"
cp "#{ShoesDeps}/etc/fonts/fonts.conf", TGT_DIR # at root level
cp_r "#{ShoesDeps}/etc/fonts/conf.d", TGT_DIR # need at root?
cp_r "#{ShoesDeps}/etc", TGT_DIR
mkdir_p "#{ShoesDeps}/lib"
cp_r "#{ShoesDeps}/lib/gtk-2.0", "#{TGT_DIR}/lib" # shoes, exerb, ruby here
Expand Down
2 changes: 0 additions & 2 deletions make/xwin7/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def pre_build
"#{TGT_DIR}/share/glib-2.0/schemas"
end
sh "#{WINDRES} -I. shoes/appwin32.rc shoes/appwin32.o"
cp "#{ShoesDeps}/etc/fonts/fonts.conf", TGT_DIR # at root level
cp_r "#{ShoesDeps}/etc/fonts/conf.d", TGT_DIR # need at root?
cp_r "#{ShoesDeps}/etc", TGT_DIR
mkdir_p "#{ShoesDeps}/lib"
cp_r "#{ShoesDeps}/lib/gtk-2.0", "#{TGT_DIR}/lib" # shoes, exerb, ruby here
Expand Down
6 changes: 4 additions & 2 deletions platform/msw/base.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ Section "MainSection" SEC01
File /r /x nsis ..\*.*

${EnvVarUpdate} $0 "PATH" "A" HKLM $INSTDIR
${EnvVarUpdate} $0 "FONTCONFIG_FILE" "A" HKLM "$INSTDIR\fonts.conf"
${EnvVarUpdate} $0 "FONTCONFIG_FILE" "A" HKLM "$INSTDIR\etc\fonts\fonts.conf"
${registerExtension} "$INSTDIR\${SHOES_NAME}.exe" ".shy" "Shoes Application"
DetailPrint "Building font cache, this may take a while..."
ExecWait '"$INSTDIR\fc-cache.exe" "-f"'
SectionEnd

Section -AdditionalIcons
Expand Down Expand Up @@ -124,7 +126,7 @@ Section Uninstall

${unregisterExtension} ".shy" "Shoes Application"
${un.EnvVarUpdate} $0 "PATH" "R" HKLM $INSTDIR
${un.EnvVarUpdate} $0 "FONTCONFIG_FILE" "R" HKLM "$INSTDIR\fonts.conf"
${un.EnvVarUpdate} $0 "FONTCONFIG_FILE" "R" HKLM "$INSTDIR\etc\fonts\fonts.conf"

DeleteRegKey ${SHOES_UNINST_ROOT_KEY} "${SHOES_UNINST_KEY}"
DeleteRegKey HKLM "${SHOES_INST_KEY}"
Expand Down

0 comments on commit 1028d81

Please sign in to comment.