From 4727d3e7354a1d2dcc011840d79a84f1c4b4a49e Mon Sep 17 00:00:00 2001 From: Michael Rittmeister Date: Mon, 12 Jun 2023 17:04:05 +0200 Subject: [PATCH] Also publish client as tar.gz --- .github/workflows/ci.yml | 13 ++++++++++--- app/desktop/build.gradle.kts | 10 ++++++++++ 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5718a94..c408a49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,12 +71,16 @@ jobs: # import certificate to keychain security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH security import INSTALLER_CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH - security list-keychain -d user -s $KEYCHAIN_PATH - + security list-keychain -d user -s $KEYCHAIN_PATH - name: Build App Distribution uses: gradle/gradle-build-action@v2 with: arguments: packageReleaseDistributionForCurrentOS -Pcompose.desktop.mac.sign=true + - name: Package Linux Distribution + uses: gradle/gradle-build-action@v2 + if: matrix.os == 'ubuntu-latest' + with: + arguments: packageDistributable - name: Setup MSbuild if: matrix.os == 'windows-latest' uses: microsoft/setup-msbuild@v1.3.1 @@ -105,6 +109,8 @@ jobs: app/desktop/build/compose/binaries/main-release/deb/*.deb app/desktop/build/compose/binaries/main-release/msi/*.msi app/desktop/build/compose/binaries/main-release/pkg/*.pkg + app/desktop/build/compose/binaries/main-release/pkg/*.pkg + app/desktop/build/distributions/*.tar.gz build_android_app: runs-on: ubuntu-latest name: Build Android App @@ -199,5 +205,6 @@ jobs: deb/*.deb pkg/*.pkg msi/*.msi + *.tar.gz *.zip - *-signed.apk \ No newline at end of file + *-signed.apk diff --git a/app/desktop/build.gradle.kts b/app/desktop/build.gradle.kts index 6316738..e344946 100644 --- a/app/desktop/build.gradle.kts +++ b/app/desktop/build.gradle.kts @@ -1,5 +1,6 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat import org.jetbrains.kotlin.org.jline.utils.OSUtils +import kotlin.io.path.pathString plugins { kotlin("jvm") @@ -69,3 +70,12 @@ compose.desktop { } } +tasks { + register("packageDistributable") { + from(named("createReleaseDistributable")) + archiveBaseName = "tonbrett" + archiveClassifier = "linux" + compression = Compression.GZIP + archiveExtension = "tar.gz" + } +}