Browse Source

Changes due to new handling of system environment
Introduced with PR #2957

Ralph Plawetzki 1 year ago
parent
commit
0f0855165e
4 changed files with 6 additions and 3 deletions
  1. 2 1
      .github/workflows/appimage.yml
  2. 2 1
      dist/linux/appimage/build.sh
  3. 1 0
      dist/linux/debian/rules
  4. 1 1
      pom.xml

+ 2 - 1
.github/workflows/appimage.yml

@@ -67,6 +67,7 @@ jobs:
           REVISION_NUM: ${{  needs.get-version.outputs.revNum }}
       - name: Run jpackage
         run: >
+          TRAYICONSDIR="@{appdir}/usr/share/icons/hicolor/symbolic/apps"
           ${JAVA_HOME}/bin/jpackage
           --verbose
           --type app-image
@@ -92,7 +93,7 @@ jobs:
           --java-options "-Dcryptomator.ipcSocketPath=\"~/.config/Cryptomator/ipc.socket\""
           --java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\""
           --java-options "-Dcryptomator.showTrayIcon=false"
-          --java-options "-Dcryptomator.integrationsLinux.trayIconsDir=\"/usr/share/icons/hicolor/symbolic/apps\""
+          --java-options "-Dcryptomator.integrationsLinux.trayIconsDir=\"${TRAYICONSDIR}\"" \
           --java-options "-Dcryptomator.buildNumber=\"appimage-${{  needs.get-version.outputs.revNum }}\""
           --add-launcher Cryptomator-gtk2=launcher-gtk2.properties
           --resource-dir dist/linux/resources

+ 2 - 1
dist/linux/appimage/build.sh

@@ -32,6 +32,7 @@ ${JAVA_HOME}/bin/jlink \
 
 # create app dir
 envsubst '${SEMVER_STR} ${REVISION_NUM}' < ../launcher-gtk2.properties > launcher-gtk2.properties
+TRAYICONSDIR="@{appdir}/usr/share/icons/hicolor/symbolic/apps"
 ${JAVA_HOME}/bin/jpackage \
     --verbose \
     --type app-image \
@@ -56,7 +57,7 @@ ${JAVA_HOME}/bin/jpackage \
     --java-options "-Dcryptomator.ipcSocketPath=\"~/.config/Cryptomator/ipc.socket\"" \
     --java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\"" \
     --java-options "-Dcryptomator.showTrayIcon=false" \
-    --java-options "-Dcryptomator.integrationsLinux.trayIconsDir=\"/usr/share/icons/hicolor/symbolic/apps\"" \
+    --java-options "-Dcryptomator.integrationsLinux.trayIconsDir=\"${TRAYICONSDIR}\"" \
     --java-options "-Dcryptomator.buildNumber=\"appimage-${REVISION_NO}\"" \
     --add-launcher cryptomator-gtk2=launcher-gtk2.properties \
     --resource-dir ../resources

+ 1 - 0
dist/linux/debian/rules

@@ -55,6 +55,7 @@ override_dh_auto_build:
 		--java-options "-Dcryptomator.ipcSocketPath=\"~/.config/Cryptomator/ipc.socket\"" \
 		--java-options "-Dcryptomator.mountPointsDir=\"~/.local/share/Cryptomator/mnt\"" \
 		--java-options "-Dcryptomator.showTrayIcon=false" \
+		--java-options "-Dcryptomator.integrationsLinux.trayIconsDir=\"/usr/share/icons/hicolor/symbolic/apps\"" \
 		--java-options "-Dcryptomator.buildNumber=\"deb-${REVISION_NUM}\"" \
 		--java-options "-Dcryptomator.appVersion=\"${SEMVER_STR}\"" \
 		--app-version "${VERSION_NUM}.${REVISION_NUM}" \

+ 1 - 1
pom.xml

@@ -37,7 +37,7 @@
 		<cryptomator.integrations.version>1.3.0-beta1</cryptomator.integrations.version>
 		<cryptomator.integrations.win.version>1.2.0</cryptomator.integrations.win.version>
 		<cryptomator.integrations.mac.version>1.2.0</cryptomator.integrations.mac.version>
-		<cryptomator.integrations.linux.version>1.3.0-beta3</cryptomator.integrations.linux.version>
+		<cryptomator.integrations.linux.version>1.3.0-beta4</cryptomator.integrations.linux.version>
 		<cryptomator.fuse.version>3.0.0</cryptomator.fuse.version>
 		<cryptomator.dokany.version>2.0.0</cryptomator.dokany.version>
 		<cryptomator.webdav.version>2.0.3</cryptomator.webdav.version>