I'm running the packageReleaseExe and packageRelea...
# compose-desktop
z
I'm running the packageReleaseExe and packageReleaseMsi tasks with no errors, but theres no exe or msi file to be found in the build directory. Is it not possible to build them on linux?
d
It is not.
See here:
Note, that there is no cross-compilation support available at the moment, so the formats can only be built using the specific OS (e.g. to build
.dmg
you have to use macOS). Tasks that are not compatible with the current OS are skipped by default.
If you need this capability then Conveyor may be for you.
r
Is Conveyor still the only option for producing Windows and Linux builds on a Mac?
m
I just use GitHub Runners to build for the other platforms.
thank you color 1
r
For any future reference, here is my working github action for generating a MSI as an artifact:
Copy code
name: Build and Package MSI

on:
  push:
    tags:
      - buildDesktopBundles

jobs:
  build:
    runs-on: windows-latest

    steps:
      - uses: actions/checkout@v2

      - name: Set up JDK 17
        uses: actions/setup-java@v2
        with:
          java-version: '17'
          distribution: 'adopt'

      - name: Create local.properties file
        run: |
          echo "STORE_PASS=${{ secrets.STORE_PASS }}" > local.properties
          echo "KEY_PASS=${{ secrets.KEY_PASS }}" >> local.properties
        shell: bash

      - name: Build and package MSI
        run: .\gradlew packageReleaseMsi

      - name: Upload MSI as Artifact
        uses: actions/upload-artifact@v2
        with:
          name: release-MSI
          path: desktopBuilds/main-release/msi/release-1.0.1.msi
👍 2
127 Views