win-exe.yml 22 KB

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