set loopback device alias during build

instead of hardcode
This commit is contained in:
Armin Schrenk
2022-11-18 12:36:10 +01:00
parent 38062f9a8d
commit 043184cf53
3 changed files with 22 additions and 1 deletions
+12
View File
@@ -22,6 +22,8 @@ jobs:
build-msi:
name: Build .msi Installer
runs-on: windows-latest
env:
LOOPBACK_ALIAS: 'cryptomator-vault'
steps:
- uses: actions/checkout@v3
with:
@@ -105,6 +107,16 @@ jobs:
- name: Patch Application Directory
run: |
cp dist/win/contrib/* appdir/Cryptomator
- name: Set LOOPBACK_ALIAS in patchWebDAV.bat
shell: pwsh
run: |
$patchScript = "appdir\Cryptomator\patchWebDAV.bat"
try {
(Get-Content $patchScript ) -replace '::REPLACE ME', "SET LOOPBACK_ALIAS=`"${{ evn.LOOPBACK_ALIAS}}`"" | Set-Content $patchScript
} catch {
Write-Host "Failed to set LOOPBACK_ALIAS for patchWebDAV.bat"
exit 1
}
- name: Fix permissions
run: attrib -r appdir/Cryptomator/Cryptomator.exe
shell: pwsh