treewide: fix more icon by moving to valid path
This commit is contained in:
@@ -239,7 +239,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
mkdir -p $out/bin
|
||||
ln -s $out/lib/soh.elf $out/bin/soh
|
||||
install -Dm644 ../soh/macosx/sohIcon.png $out/share/icons/hicolor/1024x1024/apps/soh.png
|
||||
install -Dm644 ../soh/macosx/sohIcon.png $out/share/icons/soh.png
|
||||
''
|
||||
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
|
||||
# Recreate the macOS bundle (without using cpack)
|
||||
|
||||
@@ -34,8 +34,8 @@ buildNpmPackage (finalAttrs: {
|
||||
env.ELECTRON_SKIP_BINARY_DOWNLOAD = 1;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/icons/hicolor/1024x1024
|
||||
cp -a build/icon.png $out/share/icons/hicolor/1024x1024/solidtime-desktop.png
|
||||
mkdir -p $out/share/icons
|
||||
cp -a build/icon.png $out/share/icons/solidtime-desktop.png
|
||||
cp -a . $out/share/solidtime-desktop
|
||||
|
||||
makeWrapper ${lib.getExe electron} $out/bin/solidtime-desktop \
|
||||
|
||||
@@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mkdir -p $out/share/applications
|
||||
cp "${desktopItem}/share/applications/"* "$out/share/applications"
|
||||
install -Dm644 meta/gui/icon.png $out/share/icons/hicolor/1024x1024/termius-app.png
|
||||
install -Dm644 meta/gui/icon.png $out/share/icons/termius-app.png
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user