Skip to content

Commit

Permalink
him188/use-release-build (#283)
Browse files Browse the repository at this point in the history
* use release build

* 不要在 ubuntu 打包

* fix build
  • Loading branch information
Him188 committed May 16, 2024
1 parent d9c10db commit 1a572a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
matrix:
os:
- windows-2022
- ubuntu-20.04
# - ubuntu-20.04
- macos-12
env:
enableLocalPublishingTest: 'false'
Expand Down
12 changes: 6 additions & 6 deletions ci-helper/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ tasks.register("uploadAndroidApkQR") {

val zipDesktopDistribution = tasks.register("zipDesktopDistribution", Zip::class) {
dependsOn(
":app:desktop:createDistributable",
":app:desktop:createReleaseDistributable",
)
from(project(":app:desktop").layout.buildDirectory.dir("compose/binaries/main/app"))
from(project(":app:desktop").layout.buildDirectory.dir("compose/binaries/main-release/app"))
// ani-3.0.0-beta22-dev7.zip
archiveBaseName.set("ani")
archiveVersion.set(ReleaseEnvironment().fullVersion)
Expand All @@ -156,7 +156,7 @@ tasks.register("uploadDesktopInstallers") {

if (hostOS != OS.WINDOWS) {
dependsOn(
":app:desktop:packageDistributionForCurrentOS"
":app:desktop:packageReleaseDistributionForCurrentOS"
)
}

Expand Down Expand Up @@ -184,8 +184,8 @@ tasks.register("uploadDesktopInstallers") {

tasks.register("prepareArtifactsForManualUpload") {
dependsOn(
":app:desktop:createDistributable",
":app:desktop:packageDistributionForCurrentOS",
":app:desktop:createReleaseDistributable",
":app:desktop:packageReleaseDistributionForCurrentOS",
)
dependsOn(zipDesktopDistribution)

Expand Down Expand Up @@ -374,7 +374,7 @@ fun ReleaseEnvironment.uploadDesktopDistributions() {
extension = kind
),
contentType = "application/octet-stream",
file = project(":app:desktop").layout.buildDirectory.dir("compose/binaries/main/$kind").get().asFile
file = project(":app:desktop").layout.buildDirectory.dir("compose/binaries/main-release/$kind").get().asFile
.walk()
.single { it.extension == kind },
)
Expand Down

0 comments on commit 1a572a1

Please sign in to comment.