tirbofish/dropbear · diff
fix up magna-carta crate and magna-carta-plugin gradle plugin. it works pretty nicely now :)
Signature present but could not be verified.
Unverified
@@ -75,6 +75,10 @@ The dropbear engine uses Kotlin Multiplatform, which allows the cooked up produc KMP can support, which includes mobile, WASM and desktop. Because the editor is only available on desktop, the JVM is used to evaluate the scripts as it allows for hot-reloading (not made yet). +The dropbear engine does not support any Java code (for class scripting) as it won't be read by the magna-carta parser. +Java libraries are still fine, and java classes work, but cannot be annotated by the parser, and only works +on the JVM target. You can customise the build.gradle.kts file in your project to your own likings. + ## Documentation API documentation and articles are available at (todo) @@ -8,8 +8,6 @@ import org.gradle.api.provider.Property import org.gradle.api.provider.Provider import org.gradle.api.tasks.* import org.gradle.internal.os.OperatingSystem -import java.io.File -import java.security.MessageDigest abstract class DownloadMagnaCartaToolTask: Download() { @get:Input @@ -26,37 +24,32 @@ abstract class DownloadMagnaCartaToolTask: Download() { val os = OperatingSystem.current() val arch = System.getProperty("os.arch") - val (fileName, url, expectedSha256) = when { - os.isLinux && arch == "amd64" -> Triple( + val (fileName, url) = when { + os.isLinux && arch == "amd64" -> arrayOf( "magna-carta-linux-x64", "https://github.com/4tkbytes/dropbear/releases/download/${toolVersion.get()}/magna-carta-linux-x64", - "88b3497ab7e787260aeb7f4d91fe46fa9f78ccfb32f841a27a693b824da4bc32" ) - os.isMacOsX && arch == "aarch64" -> Triple( + os.isMacOsX && arch == "aarch64" -> arrayOf( "magna-carta-macos-arm64", "https://github.com/4tkbytes/dropbear/releases/download/${toolVersion.get()}/magna-carta-macos-arm64", - "73ba95d193ab7ac5925324e4c3006c60e88bf0cb89b7a08786b75f2bfc038c10" ) - os.isMacOsX && (arch == "x86_64" || arch == "amd64") -> Triple( + os.isMacOsX && (arch == "x86_64" || arch == "amd64") -> arrayOf( "magna-carta-macos-x64", "https://github.com/4tkbytes/dropbear/releases/download/${toolVersion.get()}/magna-carta-macos-x64",
Large diffs are not rendered by default. Showing the first 50 of 346 lines. Show full diff