win-exe.yml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. name: Build Windows Installer
  2. on:
  3. release:
  4. types: [published]
  5. workflow_dispatch:
  6. inputs:
  7. version:
  8. description: 'Version'
  9. required: false
  10. isDebug:
  11. description: 'Build debug version with console output'
  12. type: boolean
  13. default: false
  14. push:
  15. branches-ignore:
  16. - 'dependabot/**'
  17. paths:
  18. - '.github/workflows/win-exe.yml'
  19. - 'dist/win/**'
  20. env:
  21. OPENJFX_JMODS_AMD64: 'https://download2.gluonhq.com/openjfx/24.0.1/openjfx-24.0.1_windows-x64_bin-jmods.zip'
  22. OPENJFX_JMODS_AMD64_HASH: 'f13d17c7caf88654fc835f1b4e75a9b0f34a888eb8abef381796c0002e63b03f'
  23. WINFSP_MSI: 'https://github.com/winfsp/winfsp/releases/download/v2.0/winfsp-2.0.23075.msi'
  24. WINFSP_UNINSTALLER: 'https://github.com/cryptomator/winfsp-uninstaller/releases/latest/download/winfsp-uninstaller.exe'
  25. defaults:
  26. run:
  27. shell: bash
  28. jobs:
  29. get-version:
  30. uses: ./.github/workflows/get-version.yml
  31. with:
  32. version: ${{ inputs.version }}
  33. build-msi:
  34. name: Build .msi Installer
  35. runs-on: ${{ matrix.os }}
  36. needs: [ get-version ]
  37. strategy:
  38. matrix:
  39. include:
  40. - arch: x64
  41. os: windows-latest
  42. java-dist: 'zulu'
  43. java-version: '24.0.1+9'
  44. java-package: 'jdk'
  45. - arch: arm64
  46. os: windows-11-arm
  47. java-dist: 'liberica'
  48. java-version: '24.0.1+11'
  49. java-package: 'jdk+fx' #This is needed, as liberica contains JFX 24 Jmods for Windows ARM64
  50. env:
  51. LOOPBACK_ALIAS: 'cryptomator-vault'
  52. WIN_CONSOLE_FLAG: ''
  53. steps:
  54. - uses: actions/checkout@v4
  55. - name: Setup Java
  56. uses: actions/setup-java@v4
  57. with:
  58. distribution: ${{ matrix.java-dist }}
  59. java-version: ${{ matrix.java-version }}
  60. java-package: ${{ matrix.java-package }}
  61. check-latest: true
  62. cache: 'maven'
  63. - name: Install wix and extensions
  64. run: |
  65. dotnet tool install --global wix --version 6.0.0
  66. wix.exe extension add WixToolset.UI.wixext/6.0.0 --global
  67. wix.exe extension add WixToolset.Util.wixext/6.0.0 --global
  68. - name: Download and extract JavaFX jmods from Gluon
  69. if: matrix.arch == 'x64'
  70. #In the last step we move all jmods files a dir level up because jmods are placed inside a directory in the zip
  71. run: |
  72. curl --output openjfx-jmods.zip -L "${{ env.OPENJFX_JMODS_AMD64 }}"
  73. if(!(Get-FileHash -Path openjfx-jmods.zip -Algorithm SHA256).Hash.ToLower().equals("${{ env.OPENJFX_JMODS_AMD64_HASH }}")) {
  74. throw "Wrong checksum of JMOD archive downloaded from ${{ env.OPENJFX_JMODS_AMD64 }}.";
  75. }
  76. Expand-Archive -Path openjfx-jmods.zip -DestinationPath openjfx-jmods
  77. Get-ChildItem -Path openjfx-jmods -Recurse -Filter "*.jmod" | ForEach-Object { Move-Item -Path $_ -Destination $_.Directory.Parent}
  78. shell: pwsh
  79. - name: Ensure major jfx version in pom and in jmods is the same
  80. if: matrix.arch == 'x64'
  81. run: |
  82. JMOD_VERSION_AMD64=$(jmod describe openjfx-jmods/javafx.base.jmod | head -1)
  83. JMOD_VERSION_AMD64=${JMOD_VERSION_AMD64#*@}
  84. JMOD_VERSION_AMD64=${JMOD_VERSION_AMD64%%.*}
  85. POM_JFX_VERSION=$(mvn help:evaluate "-Dexpression=javafx.version" -q -DforceStdout)
  86. POM_JFX_VERSION=${POM_JFX_VERSION#*@}
  87. POM_JFX_VERSION=${POM_JFX_VERSION%%.*}
  88. if [ $POM_JFX_VERSION -ne $JMOD_VERSION_AMD64 ]; then
  89. >&2 echo "Major JavaFX version in pom.xml (${POM_JFX_VERSION}) != amd64 jmod version (${JMOD_VERSION_AMD64})"
  90. exit 1
  91. fi
  92. - name: Set version
  93. run: mvn versions:set -DnewVersion=${{ needs.get-version.outputs.semVerStr }}
  94. - name: Run maven
  95. run: mvn -B clean package -Pwin -DskipTests -Djavafx.platform=win
  96. - name: Patch target dir
  97. run: |
  98. cp LICENSE.txt target
  99. cp target/cryptomator-*.jar target/mods
  100. - name: Run jlink with help option
  101. id: jep-493-check
  102. run: |
  103. JMOD_PATHS="openjfx-jmods"
  104. if ! $(${JAVA_HOME}/bin/jlink --help | grep -q "Linking from run-time image enabled"); then
  105. JMOD_PATHS="${JAVA_HOME}/jmods;${JMOD_PATHS}"
  106. fi
  107. echo "jmod_paths=${JMOD_PATHS}" >> "$GITHUB_OUTPUT"
  108. - name: Run jlink
  109. # Remark: no compression is applied for improved build compression later (here msi)
  110. run: >
  111. ${JAVA_HOME}/bin/jlink
  112. --verbose
  113. --output runtime
  114. --module-path "${{ steps.jep-493-check.outputs.jmod_paths }}"
  115. --add-modules java.base,java.desktop,java.instrument,java.logging,java.naming,java.net.http,java.scripting,java.sql,java.xml,javafx.base,javafx.graphics,javafx.controls,javafx.fxml,jdk.crypto.mscapi,jdk.unsupported,jdk.accessibility,jdk.management.jfr,java.compiler
  116. --strip-native-commands
  117. --no-header-files
  118. --no-man-pages
  119. --strip-debug
  120. --compress zip-0
  121. - name: Change win-console flag if debug is active
  122. if: ${{ inputs.isDebug }}
  123. run: echo "WIN_CONSOLE_FLAG=--win-console" >> $GITHUB_ENV
  124. - name: Run jpackage
  125. run: >
  126. ${JAVA_HOME}/bin/jpackage
  127. --verbose
  128. --type app-image
  129. --runtime-image runtime
  130. --input target/libs
  131. --module-path target/mods
  132. --module org.cryptomator.desktop/org.cryptomator.launcher.Cryptomator
  133. --dest appdir
  134. --name Cryptomator
  135. --vendor "Skymatic GmbH"
  136. --copyright "(C) 2016 - 2025 Skymatic GmbH"
  137. --app-version "${{ needs.get-version.outputs.semVerNum }}.${{ needs.get-version.outputs.revNum }}"
  138. --java-options "--enable-preview"
  139. --java-options "--enable-native-access=javafx.graphics,org.cryptomator.jfuse.win,org.cryptomator.integrations.win"
  140. --java-options "-Xss5m"
  141. --java-options "-Xmx256m"
  142. --java-options "-Dcryptomator.appVersion=\"${{ needs.get-version.outputs.semVerStr }}\""
  143. --java-options "-Dfile.encoding=\"utf-8\""
  144. --java-options "-Djava.net.useSystemProxies=true"
  145. --java-options "-Dcryptomator.logDir=\"@{localappdata}/Cryptomator\""
  146. --java-options "-Dcryptomator.pluginDir=\"@{appdata}/Cryptomator/Plugins\""
  147. --java-options "-Dcryptomator.settingsPath=\"@{appdata}/Cryptomator/settings.json;@{userhome}/AppData/Roaming/Cryptomator/settings.json\""
  148. --java-options "-Dcryptomator.p12Path=\"@{appdata}/Cryptomator/key.p12;@{userhome}/AppData/Roaming/Cryptomator/key.p12\""
  149. --java-options "-Dcryptomator.ipcSocketPath=\"@{localappdata}/Cryptomator/ipc.socket\""
  150. --java-options "-Dcryptomator.mountPointsDir=\"@{userhome}/Cryptomator\""
  151. --java-options "-Dcryptomator.loopbackAlias=\"${{ env.LOOPBACK_ALIAS }}\""
  152. --java-options "-Dcryptomator.showTrayIcon=true"
  153. --java-options "-Dcryptomator.buildNumber=\"msi-${{ needs.get-version.outputs.revNum }}\""
  154. --java-options "-Dcryptomator.integrationsWin.autoStartShellLinkName=\"Cryptomator\""
  155. --java-options "-Dcryptomator.integrationsWin.keychainPaths=\"@{appdata}/Cryptomator/keychain.json;@{userhome}/AppData/Roaming/Cryptomator/keychain.json\""
  156. --java-options "-Dcryptomator.integrationsWin.windowsHelloKeychainPaths=\"@{appdata}/Cryptomator/windowsHelloKeychain.json\""
  157. --java-options "-Djavafx.verbose=${{ inputs.isDebug }}"
  158. --resource-dir dist/win/resources
  159. --icon dist/win/resources/Cryptomator.ico
  160. ${WIN_CONSOLE_FLAG}
  161. - name: Patch Application Directory
  162. run: |
  163. cp dist/win/contrib/* appdir/Cryptomator
  164. - name: Set LOOPBACK_ALIAS in patchWebDAV.bat
  165. shell: pwsh
  166. run: |
  167. $patchScript = "appdir\Cryptomator\patchWebDAV.bat"
  168. try {
  169. (Get-Content $patchScript ) -replace '::REPLACE ME', "SET LOOPBACK_ALIAS=`"${{ env.LOOPBACK_ALIAS}}`"" | Set-Content $patchScript
  170. } catch {
  171. Write-Host "Failed to set LOOPBACK_ALIAS for patchWebDAV.bat"
  172. exit 1
  173. }
  174. - name: Fix permissions
  175. run: attrib -r appdir/Cryptomator/Cryptomator.exe
  176. shell: pwsh
  177. - name: Extract jars with DLLs for Codesigning
  178. shell: pwsh
  179. run: |
  180. Add-Type -AssemblyName "System.io.compression.filesystem"
  181. $jarFolder = Resolve-Path ".\appdir\Cryptomator\app\mods"
  182. $jarExtractDir = New-Item -Path ".\appdir\jar-extract" -ItemType Directory
  183. #for all jars inspect
  184. Get-ChildItem -Path $jarFolder -Filter "*.jar" | ForEach-Object {
  185. $jar = [Io.compression.zipfile]::OpenRead($_.FullName)
  186. if (@($jar.Entries | Where-Object {$_.Name.ToString().EndsWith(".dll")} | Select-Object -First 1).Count -gt 0) {
  187. #jars containing dlls extract
  188. Set-Location $jarExtractDir
  189. Expand-Archive -Path $_.FullName
  190. }
  191. $jar.Dispose()
  192. }
  193. - name: Extract wixhelper.dll for Codesigning #see https://github.com/cryptomator/cryptomator/issues/3130
  194. shell: pwsh
  195. run: |
  196. New-Item -Path appdir/jpackage-jmod -ItemType Directory
  197. & $env:JAVA_HOME\bin\jmod.exe extract --dir jpackage-jmod "${env:JAVA_HOME}\jmods\jdk.jpackage.jmod"
  198. Get-ChildItem -Recurse -Path "jpackage-jmod" -File wixhelper.dll | Select-Object -Last 1 | Copy-Item -Destination "appdir"
  199. - name: Codesign
  200. uses: skymatic/code-sign-action@v3
  201. with:
  202. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  203. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  204. certificatesha1: 5FC94CE149E5B511E621F53A060AC67CBD446B3A
  205. description: Cryptomator
  206. timestampUrl: 'http://timestamp.digicert.com'
  207. folder: appdir
  208. recursive: true
  209. - name: Replace DLLs inside jars with signed ones
  210. shell: pwsh
  211. run: |
  212. $jarExtractDir = Resolve-Path ".\appdir\jar-extract"
  213. $jarFolder = Resolve-Path ".\appdir\Cryptomator\app\mods"
  214. Get-ChildItem -Path $jarExtractDir | ForEach-Object {
  215. $jarName = $_.Name
  216. $jarFile = "${jarFolder}\${jarName}.jar"
  217. Set-Location $_
  218. Get-ChildItem -Path $_ -Recurse -File "*.dll" | ForEach-Object {
  219. # update jar with signed dll
  220. jar --file="$jarFile" --update $(Resolve-Path -Relative -Path $_)
  221. }
  222. }
  223. - name: Generate license for MSI
  224. run: >
  225. mvn -B license:add-third-party "-Djavafx.platform=win"
  226. "-Dlicense.thirdPartyFilename=license.rtf"
  227. "-Dlicense.outputDirectory=dist/win/resources"
  228. "-Dlicense.fileTemplate=dist/win/resources/licenseTemplate.ftl"
  229. "-Dlicense.includedScopes=compile"
  230. "-Dlicense.excludedGroups=^org\.cryptomator"
  231. "-Dlicense.failOnMissing=true"
  232. "-Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges"
  233. shell: pwsh
  234. - name: Create MSI
  235. run: >
  236. ${JAVA_HOME}/bin/jpackage
  237. --verbose
  238. --type msi
  239. --win-upgrade-uuid bda45523-42b1-4cae-9354-a45475ed4775
  240. --app-image appdir/Cryptomator
  241. --dest installer
  242. --name Cryptomator
  243. --vendor "Skymatic GmbH"
  244. --copyright "(C) 2016 - 2025 Skymatic GmbH"
  245. --app-version "${{ needs.get-version.outputs.semVerNum }}.${{ needs.get-version.outputs.revNum}}"
  246. --win-menu
  247. --win-dir-chooser
  248. --win-shortcut-prompt
  249. --win-update-url "https:\\cryptomator.org\downloads"
  250. --win-menu-group Cryptomator
  251. --resource-dir dist/win/resources
  252. --license-file dist/win/resources/license.rtf
  253. --file-associations dist/win/resources/FAvaultFile.properties
  254. env:
  255. JP_WIXWIZARD_RESOURCES: ${{ github.workspace }}/dist/win/resources # requires abs path, used in resources/main.wxs
  256. JP_WIXHELPER_DIR: ${{ github.workspace }}\appdir
  257. - name: Codesign MSI
  258. uses: skymatic/code-sign-action@v3
  259. with:
  260. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  261. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  262. certificatesha1: 5FC94CE149E5B511E621F53A060AC67CBD446B3A
  263. description: Cryptomator Installer
  264. timestampUrl: 'http://timestamp.digicert.com'
  265. folder: installer
  266. - name: Add possible alpha/beta tags and architecture to installer name
  267. run: mv installer/Cryptomator-*.msi Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.arch }}.msi
  268. - name: Create detached GPG signature with key 615D449FE6E6A235
  269. run: |
  270. echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  271. echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a Cryptomator-*.msi
  272. env:
  273. GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  274. GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  275. - name: Upload artifacts
  276. uses: actions/upload-artifact@v4
  277. with:
  278. name: msi-${{ matrix.arch }}
  279. path: |
  280. Cryptomator-*.msi
  281. Cryptomator-*.asc
  282. if-no-files-found: error
  283. build-exe:
  284. name: Build .exe installer
  285. runs-on: ${{ matrix.os }}
  286. needs: [ get-version, build-msi ]
  287. strategy:
  288. matrix:
  289. include:
  290. - arch: x64
  291. os: windows-latest
  292. executable-suffix: x64
  293. java-dist: 'zulu'
  294. java-version: '24.0.1+9'
  295. java-package: 'jdk'
  296. - arch: arm64
  297. os: windows-11-arm
  298. executable-suffix: arm64
  299. java-dist: 'liberica'
  300. java-version: '24.0.1+11'
  301. java-package: 'jdk+fx' #This is needed, as liberica contains JFX 24 Jmods for Windows ARM64
  302. steps:
  303. - uses: actions/checkout@v4
  304. - name: Install wix and extensions
  305. run: |
  306. dotnet tool install --global wix --version 6.0.0
  307. wix.exe extension add WixToolset.BootstrapperApplications.wixext/6.0.0 --global
  308. wix.exe extension add WixToolset.Util.wixext/6.0.0 --global
  309. - name: Download .msi
  310. uses: actions/download-artifact@v4
  311. with:
  312. name: msi-${{ matrix.arch }}
  313. path: dist/win/bundle/resources
  314. - name: Strip version info from msi file name
  315. run: mv dist/win/bundle/resources/Cryptomator*.msi dist/win/bundle/resources/Cryptomator.msi
  316. - name: Setup Java
  317. uses: actions/setup-java@v4
  318. with:
  319. distribution: ${{ matrix.java-dist }}
  320. java-version: ${{ matrix.java-version }}
  321. java-package: ${{ matrix.java-package }}
  322. check-latest: true
  323. cache: 'maven'
  324. - name: Generate license for exe
  325. run: >
  326. mvn -B license:add-third-party "-Djavafx.platform=win"
  327. "-Dlicense.thirdPartyFilename=license.rtf"
  328. "-Dlicense.fileTemplate=dist/win/bundle/resources/licenseTemplate.ftl"
  329. "-Dlicense.outputDirectory=dist/win/bundle/resources"
  330. "-Dlicense.includedScopes=compile"
  331. "-Dlicense.excludedGroups=^org\.cryptomator"
  332. "-Dlicense.failOnMissing=true"
  333. "-Dlicense.licenseMergesUrl=file:///${{ github.workspace }}/license/merges"
  334. shell: pwsh
  335. - name: Download WinFsp
  336. run: |
  337. curl --output dist/win/bundle/resources/winfsp.msi -L ${{ env.WINFSP_MSI }}
  338. shell: pwsh
  339. - name: Download Legacy-WinFsp uninstaller
  340. run: |
  341. curl --output dist/win/bundle/resources/winfsp-uninstaller.exe -L ${{ env.WINFSP_UNINSTALLER }}
  342. shell: pwsh
  343. - name: Create Wix Burn bundle
  344. working-directory: dist/win
  345. run: >
  346. wix build
  347. -define BundleName="Cryptomator"
  348. -define BundleVersion="${{ needs.get-version.outputs.semVerNum }}.${{ needs.get-version.outputs.revNum}}"
  349. -define BundleVendor="Skymatic GmbH"
  350. -define BundleCopyright="(C) 2016 - 2025 Skymatic GmbH"
  351. -define AboutUrl="https://cryptomator.org"
  352. -define HelpUrl="https://cryptomator.org/contact"
  353. -define UpdateUrl="https://cryptomator.org/downloads/"
  354. -ext "WixToolset.Util.wixext"
  355. -ext "WixToolset.BootstrapperApplications.wixext"
  356. ./bundle/bundleWithWinfsp.wxs
  357. -out "../../installer/unsigned/Cryptomator-Installer.exe"
  358. - name: Detach burn engine in preparation to sign
  359. run: >
  360. wix burn detach installer/unsigned/Cryptomator-Installer.exe -engine tmp/engine.exe
  361. - name: Codesign burn engine
  362. uses: skymatic/code-sign-action@v3
  363. with:
  364. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  365. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  366. certificatesha1: 5FC94CE149E5B511E621F53A060AC67CBD446B3A
  367. description: Cryptomator Installer
  368. timestampUrl: 'http://timestamp.digicert.com'
  369. folder: tmp
  370. - name: Reattach signed burn engine to installer
  371. run: >
  372. wix burn reattach installer/unsigned/Cryptomator-Installer.exe -engine tmp/engine.exe -o installer/Cryptomator-Installer.exe
  373. - name: Codesign EXE
  374. uses: skymatic/code-sign-action@v3
  375. with:
  376. certificate: ${{ secrets.WIN_CODESIGN_P12_BASE64 }}
  377. password: ${{ secrets.WIN_CODESIGN_P12_PW }}
  378. certificatesha1: 5FC94CE149E5B511E621F53A060AC67CBD446B3A
  379. description: Cryptomator Installer
  380. timestampUrl: 'http://timestamp.digicert.com'
  381. folder: installer
  382. - name: Add possible alpha/beta tags to installer name
  383. run: mv installer/Cryptomator-Installer.exe Cryptomator-${{ needs.get-version.outputs.semVerStr }}-${{ matrix.executable-suffix }}.exe
  384. - name: Create detached GPG signature with key 615D449FE6E6A235
  385. run: |
  386. echo "${GPG_PRIVATE_KEY}" | gpg --batch --quiet --import
  387. echo "${GPG_PASSPHRASE}" | gpg --batch --quiet --passphrase-fd 0 --pinentry-mode loopback -u 615D449FE6E6A235 --detach-sign -a Cryptomator-*.exe
  388. env:
  389. GPG_PRIVATE_KEY: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }}
  390. GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
  391. - name: Upload artifacts
  392. uses: actions/upload-artifact@v4
  393. with:
  394. name: exe-${{ matrix.executable-suffix }}
  395. path: |
  396. Cryptomator-*.exe
  397. Cryptomator-*.asc
  398. if-no-files-found: error
  399. publish:
  400. name: Publish installers to the github release
  401. if: startsWith(github.ref, 'refs/tags/') && github.event.action == 'published'
  402. runs-on: ubuntu-latest
  403. needs: [ build-msi, build-exe ]
  404. outputs:
  405. download-url-msi-x64: ${{ fromJSON(steps.publish.outputs.assets)[0].browser_download_url }}
  406. download-url-msi-arm64: ${{ fromJSON(steps.publish.outputs.assets)[1].browser_download_url }}
  407. download-url-exe-x64: ${{ fromJSON(steps.publish.outputs.assets)[2].browser_download_url }}
  408. download-url-exe-arm64: ${{ fromJSON(steps.publish.outputs.assets)[3].browser_download_url }}
  409. steps:
  410. - name: Download installers
  411. uses: actions/download-artifact@v4
  412. with:
  413. merge-multiple: true
  414. - name: Publish installers on GitHub Releases
  415. id: publish
  416. uses: softprops/action-gh-release@v2
  417. with:
  418. fail_on_unmatched_files: true
  419. token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }}
  420. # do not change ordering of filelist, required for correct job output
  421. files: |
  422. *.msi
  423. *.exe
  424. *.asc
  425. allowlist-msi-x64:
  426. uses: ./.github/workflows/av-whitelist.yml
  427. needs: [ publish ]
  428. with:
  429. url: ${{ needs.publish.outputs.download-url-msi-x64 }}
  430. secrets: inherit
  431. allowlist-msi-arm64:
  432. uses: ./.github/workflows/av-whitelist.yml
  433. needs: [ publish ]
  434. with:
  435. url: ${{ needs.publish.outputs.download-url-msi-arm64 }}
  436. secrets: inherit
  437. allowlist-exe-x64:
  438. uses: ./.github/workflows/av-whitelist.yml
  439. needs: [ publish, allowlist-msi-x64 ]
  440. with:
  441. url: ${{ needs.publish.outputs.download-url-exe-x64 }}
  442. secrets: inherit
  443. allowlist-exe-arm64:
  444. uses: ./.github/workflows/av-whitelist.yml
  445. needs: [ publish, allowlist-msi-arm64 ]
  446. with:
  447. url: ${{ needs.publish.outputs.download-url-exe-arm64 }}
  448. secrets: inherit
  449. notify-winget:
  450. name: Notify for winget-release
  451. if: needs.get-version.outputs.versionType == 'stable'
  452. needs: [publish, get-version]
  453. runs-on: ubuntu-latest
  454. steps:
  455. - name: Slack Notification
  456. uses: rtCamp/action-slack-notify@v2
  457. env:
  458. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
  459. SLACK_USERNAME: 'Cryptobot'
  460. SLACK_ICON: false
  461. SLACK_ICON_EMOJI: ':bot:'
  462. SLACK_CHANNEL: 'cryptomator-desktop'
  463. SLACK_TITLE: "MSI packages of ${{ github.event.repository.name }} ${{ github.event.release.tag_name }} published."
  464. SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions/workflows/winget.yml| release them to winget>."
  465. SLACK_FOOTER: false
  466. MSG_MINIMAL: true