From 7894a8cd3f2ef7d993e9cfaaa3aa06a8c6fa0a97 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Mon, 18 Nov 2024 16:04:43 -0800 Subject: [PATCH] Bundle Choreo AppImage (#473) Fixes #465. --- scripts/choreo.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/choreo.gradle b/scripts/choreo.gradle index 9b848b9..452b322 100644 --- a/scripts/choreo.gradle +++ b/scripts/choreo.gradle @@ -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 @@ -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 } @@ -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