replace/substitute variables in debug launcher

This commit is contained in:
Armin Schrenk
2023-02-06 12:15:03 +01:00
parent cf9663fc26
commit 1102f73680
4 changed files with 18 additions and 5 deletions

View File

@@ -69,6 +69,12 @@ jobs:
--no-man-pages
--strip-debug
--compress=1
- name: Prepare debug launcher config
shell: bash
run: envsubst '${SEMVER_STR} ${REVISION_NUM}' < dist/win/resources/debug-launcher.properties > debug-launcher.properties
env:
SEMVER_STR: ${{ needs.get-version.outputs.semVerStr }}
REVISION_NUM: ${{ needs.get-version.outputs.revNum }}
- name: Run jpackage
run: >
${JAVA_HOME}/bin/jpackage
@@ -102,6 +108,7 @@ jobs:
--java-options "-Dcryptomator.integrationsWin.keychainPaths=\"~/AppData/Roaming/Cryptomator/keychain.json\""
--resource-dir dist/win/resources
--icon dist/win/resources/Cryptomator.ico
--add-launcher debug=debug-launcher.properties
- name: Patch Application Directory
run: |
cp dist/win/contrib/* appdir/Cryptomator
@@ -166,7 +173,6 @@ jobs:
--resource-dir dist/win/resources
--license-file dist/win/resources/license.rtf
--file-associations dist/win/resources/FAvaultFile.properties
--add-launcher jfxDebug=dist/wind/resources/jfxDebug.properties
env:
JP_WIXWIZARD_RESOURCES: ${{ github.workspace }}/dist/win/resources # requires abs path, used in resources/main.wxs
- name: Codesign MSI