Skip to content

Commit 7ccac43

Browse files
committed
Small cleaup
1 parent d25cb6f commit 7ccac43

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/windows.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ jobs:
6262
- name: Move .dll files
6363
run: |
6464
$dest = "build\windows\x64\runner\Release"
65-
dir
6665
cp $dest\helper\_internal/MSVCP140.dll $dest\
6766
cp $dest\helper\_internal/VCRUNTIME140.dll $dest\
6867
cp $dest\helper\_internal/VCRUNTIME140_1.dll $dest\
@@ -129,8 +128,8 @@ jobs:
129128
ls -la
130129
rm 1.zip
131130
cd ..
132-
cp signed/authenticator-helper.exe yubioath-desktop-windows/yubioath-desktop-dennis-windows/helper/authenticator-helper.exe
133-
cp signed/authenticator.exe yubioath-desktop-windows/yubioath-desktop-dennis-windows/authenticator.exe
131+
cp signed/authenticator-helper.exe yubioath-desktop-windows/*/helper/authenticator-helper.exe
132+
cp signed/authenticator.exe yubioath-desktop-windows/*/authenticator.exe
134133
- name: upload signed artifacts
135134
uses: actions/upload-artifact@v4
136135
with:
@@ -156,9 +155,11 @@ jobs:
156155

157156
- name: Create an unsigned .msi installer package
158157
run: |
158+
$arr = $env:GITHUB_REF -split '/'
159+
$branch = $arr[2]
159160
$env:PATH += ";$env:WIX\bin"
160-
$env:SRCDIR = "signed-files\yubioath-desktop-dennis-windows\"
161-
heat dir .\signed-files\yubioath-desktop-dennis-windows\ -out fragment.wxs -gg -scom -srd -sfrag -dr INSTALLDIR -cg ApplicationFiles -var env.SRCDIR
161+
$env:SRCDIR = "signed-files\yubioath-desktop-$branch-windows\"
162+
heat dir .\signed-files\yubioath-desktop-$branch-windows\ -out fragment.wxs -gg -scom -srd -sfrag -dr INSTALLDIR -cg ApplicationFiles -var env.SRCDIR
162163
candle .\fragment.wxs .\resources\win\yubioath-desktop.wxs -ext WixUtilExtension -arch x64
163164
light fragment.wixobj yubioath-desktop.wixobj -ext WixUIExtension -ext WixUtilExtension -o yubioath-desktop.msi
164165
- name: Rename and archive app bundle

0 commit comments

Comments
 (0)