Skip to content

Commit

Permalink
Bundle Choreo AppImage
Browse files Browse the repository at this point in the history
Fixes #465.
  • Loading branch information
calcmogul committed Nov 18, 2024
1 parent 5f1c42f commit 93178c8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/choreo.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def fileNameMacArm = "Choreo-$choreoGitTag-macOS-aarch64-standalone.zip"

def downloadUrlMacArm = baseUrl + fileNameMacArm

def fileNameLinux = "Choreo-$choreoGitTag-Linux-x86_64-standalone.zip"
def fileNameLinux = "Choreo-$choreoGitTag-Linux-x86_64.AppImage"

def downloadUrlLinux = baseUrl + fileNameLinux

Expand Down Expand Up @@ -44,8 +44,7 @@ def downloadTaskMacArm = tasks.register('downloadChoreoMacArm', Download) {

def downloadTaskLinux = tasks.register('downloadChoreoLinux', Download) {
src downloadUrlLinux
def fileName = file(src.file).name
dest "$buildDir/downloads/$fileName"
dest "$buildDir/downloads/choreo"
overwrite true
}

Expand Down Expand Up @@ -86,9 +85,10 @@ ext.choreoZipSetup = { AbstractArchiveTask zip->

zip.inputs.files downloadTaskLinux.get().outputFiles

zip.from(project.zipTree(downloadTaskLinux.get().outputFiles.first())) {
zip.from(downloadTaskLinux.get().outputFiles.first()) {
into '/choreo'
includeEmptyDirs = false
fileMode 0755
}
} else if (project.hasProperty('macBuild')) {
zip.dependsOn downloadTaskMac
Expand Down

0 comments on commit 93178c8

Please sign in to comment.