mirror of
https://github.com/KRTirtho/spotube.git
synced 2026-11-04 10:13:59 +00:00
Merge pull request #3152 from team-spotube/macos-dmg-fixes
fix(macos): add GraalVM runtime dependency and initialize GraalVm in …
This commit is contained in:
commit
64fb23e62b
@ -424,6 +424,9 @@ nucleus.application {
|
|||||||
|
|
||||||
nativeDistributions {
|
nativeDistributions {
|
||||||
packageName = bundleId
|
packageName = bundleId
|
||||||
|
// User-facing name (.app bundle, DMG productName, Launchpad/Dock); packageName above is the reverse-DNS id.
|
||||||
|
// The GraalVM DMG task reads only appName ?: packageName, not macOS.packageName
|
||||||
|
appName = if (isNightly) "Spotube Nightly" else "Spotube"
|
||||||
packageVersion = version
|
packageVersion = version
|
||||||
licenseFile = project.file("../LICENSE")
|
licenseFile = project.file("../LICENSE")
|
||||||
|
|
||||||
@ -498,6 +501,8 @@ nucleus.application {
|
|||||||
|
|
||||||
macOS {
|
macOS {
|
||||||
iconFile.set(project.file("$desktopIconDir/icon.icns"))
|
iconFile.set(project.file("$desktopIconDir/icon.icns"))
|
||||||
|
bundleID = if (isNightly) "$bundleId.nightly" else bundleId
|
||||||
|
dockName = appName
|
||||||
notarization {
|
notarization {
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -590,6 +595,8 @@ tasks.withType<Copy>().matching { it.name == "copyGraalvmAwtSoLibs" }.configureE
|
|||||||
// Issue with compose plugin
|
// Issue with compose plugin
|
||||||
// https://github.com/JetBrains/compose-hot-reload/blob/master/docs/Known_limitations.md#property-composeapplicationresourcesdir-is-null-when-running-hot-reload-tasks
|
// https://github.com/JetBrains/compose-hot-reload/blob/master/docs/Known_limitations.md#property-composeapplicationresourcesdir-is-null-when-running-hot-reload-tasks
|
||||||
tasks.withType<ComposeHotRun>().configureEach {
|
tasks.withType<ComposeHotRun>().configureEach {
|
||||||
|
// Populates the resources dir below with the VLC natives (appResourcesRootDir); hot run doesn't depend on it by default
|
||||||
|
dependsOn("prepareAppResources")
|
||||||
jvmArgs(
|
jvmArgs(
|
||||||
"--enable-native-access=ALL-UNNAMED"
|
"--enable-native-access=ALL-UNNAMED"
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user