Skip to content

Commit

Permalink
Restore exe build in Windows workflow [noci]
Browse files Browse the repository at this point in the history
  • Loading branch information
toasterofbread committed Aug 17, 2024
1 parent d008040 commit a3050bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ jobs:
- name: Set up Gradle
uses: gradle/gradle-build-action@v3

- name: Build zip
run: .\gradlew.bat desktopApp:packageReleaseZip
- name: Build zip and exe
run: .\gradlew.bat desktopApp:packageReleaseZip desktopApp:packageReleaseExe -PGIT_TAG_OVERRIDE="v0.4.0"

- name: Upload zip artifact
uses: actions/upload-artifact@v3
with:
name: spmp-windows-release
name: spmp-windows-release-zip
path: desktopApp/build/outputs/*.zip

- name: Upload exe artifact
uses: actions/upload-artifact@v3
with:
name: spmp-windows-release-exe
path: desktopApp/build/compose/binaries/main-release/exe/*.exe
5 changes: 5 additions & 0 deletions desktopApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ afterEvaluate {
}

tasks.withType<AbstractJPackageTask> {
if (name == "packageReleaseExe") {
// Exe packaging is weird
return@withType
}

doFirst {
DesktopUtils.runChecks(project)
}
Expand Down

0 comments on commit a3050bd

Please sign in to comment.