mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-13 03:24:36 +00:00
replace/substitute variables in debug launcher
This commit is contained in:
+2
-1
@@ -4,4 +4,5 @@ installer
|
||||
*.wixobj
|
||||
*.pdb
|
||||
*.msi
|
||||
license.rtf
|
||||
license.rtf
|
||||
debug.properties
|
||||
Vendored
+7
-1
@@ -63,6 +63,12 @@ if ($clean -and (Test-Path -Path $appPath)) {
|
||||
Remove-Item -Path $appPath -Force -Recurse
|
||||
}
|
||||
|
||||
# prepare additional launcher
|
||||
$debugProps = Get-Content -Path $buildDir\resources\debug-launcher.properties
|
||||
$debugProps = $debugProps -replace '\${SEM_VER_STR}', "$semVerNo"
|
||||
$debugProps = $debugProps -replace '\${REVISION_NUM}', "$revisionNo"
|
||||
Set-Content -Path $buildDir\resources\debug.properties -Value $debugProps
|
||||
|
||||
# create app dir
|
||||
& "$Env:JAVA_HOME\bin\jpackage" `
|
||||
--verbose `
|
||||
@@ -93,7 +99,7 @@ if ($clean -and (Test-Path -Path $appPath)) {
|
||||
--java-options "-Dcryptomator.integrationsWin.keychainPaths=`"~/AppData/Roaming/$AppName/keychain.json`"" `
|
||||
--java-options "-Dcryptomator.showTrayIcon=true" `
|
||||
--java-options "-Dcryptomator.buildNumber=`"msi-$revisionNo`"" `
|
||||
--add-launcher jfxDebug=$buildDir\resources\jfxDebug.properties `
|
||||
--add-launcher debug=$buildDir\resources\debug.properties `
|
||||
--resource-dir resources `
|
||||
--icon resources/$AppName.ico
|
||||
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@ java-options=--enable-preview \
|
||||
--enable-native-access=org.cryptomator.jfuse.win \
|
||||
-Xss5m \
|
||||
-Xmx256m \
|
||||
-Dcryptomator.appVersion="$semVerNo" \
|
||||
-Dcryptomator.appVersion="${SEM_VER_STR}" \
|
||||
-Dfile.encoding="utf-8" \
|
||||
-Dcryptomator.logDir="~/AppData/Roaming/$AppName" \
|
||||
-Dcryptomator.pluginDir="~/AppData/Roaming/$AppName/Plugins" \
|
||||
@@ -15,5 +15,5 @@ java-options=--enable-preview \
|
||||
-Dcryptomator.integrationsWin.autoStartShellLinkName="$AppName" \
|
||||
-Dcryptomator.integrationsWin.keychainPaths="~/AppData/Roaming/$AppName/keychain.json" \
|
||||
-Dcryptomator.showTrayIcon=true \
|
||||
-Dcryptomator.buildNumber="msi-$revisionNo" \
|
||||
-Dcryptomator.buildNumber="msi-${REVISION_NUM}" \
|
||||
-Djavafx.verbose=true
|
||||
Reference in New Issue
Block a user