mirror of
https://github.com/Darkrock-Studios/hammer-editor.git
synced 2026-08-04 15:19:46 +00:00
Added flatpak dependency generator
This commit is contained in:
parent
f3ee1440e9
commit
fab9ecb910
5 changed files with 8515 additions and 1 deletions
0
.gitHooks/pre-commit
Normal file → Executable file
0
.gitHooks/pre-commit
Normal file → Executable file
|
|
@ -68,6 +68,7 @@ plugins {
|
|||
alias(libs.plugins.aboutlibraries.plugin.android) apply false
|
||||
alias(libs.plugins.jetbrains.kover)
|
||||
alias(libs.plugins.kotlinx.atomicfu)
|
||||
alias(libs.plugins.flatpak.gradle.generator) apply false
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ plugins {
|
|||
alias(libs.plugins.jetbrains.compose)
|
||||
alias(libs.plugins.jetbrains.kover)
|
||||
alias(libs.plugins.aboutlibraries.plugin)
|
||||
alias(libs.plugins.flatpak.gradle.generator)
|
||||
}
|
||||
|
||||
group = "com.darkrockstudios.apps.hammer.desktop"
|
||||
|
|
@ -212,4 +213,21 @@ fun findMakeAppx(): String? {
|
|||
}
|
||||
|
||||
return null
|
||||
}
|
||||
}
|
||||
|
||||
// Flatpak Gradle Generator configuration
|
||||
tasks.named("flatpakGradleGenerator") {
|
||||
// Output file for Flatpak sources
|
||||
setProperty("outputFile", rootProject.file("flatpak/flatpak-sources.json"))
|
||||
|
||||
// Exclude test configurations to reduce the dependency list
|
||||
setProperty("excludeConfigurations", listOf(
|
||||
"testCompileClasspath",
|
||||
"testRuntimeClasspath",
|
||||
"jvmTestCompileClasspath",
|
||||
"jvmTestRuntimeClasspath"
|
||||
))
|
||||
|
||||
// Set architecture (x86_64 is the default, but can specify for clarity)
|
||||
// setProperty("onlyArches", "x86_64")
|
||||
}
|
||||
|
|
|
|||
8493
flatpak/flatpak-sources.json
Normal file
8493
flatpak/flatpak-sources.json
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -92,6 +92,7 @@ kotlinx-io-okio = "0.9.0"
|
|||
|
||||
compose-texteditor = "1.6.0"
|
||||
platform-spellcheckerkt = "1.0.0"
|
||||
flatpak-gradle-generator = "1.6.0"
|
||||
|
||||
[libraries]
|
||||
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activity-compose" }
|
||||
|
|
@ -289,6 +290,7 @@ sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight" }
|
|||
buildconfig = { id = "com.github.gmazzo.buildconfig", version.ref = "buildconfig" }
|
||||
aboutlibraries_plugin = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "aboutlibraries" }
|
||||
aboutlibraries_plugin_android = { id = "com.mikepenz.aboutlibraries.plugin.android", version.ref = "aboutlibraries" }
|
||||
flatpak_gradle_generator = { id = "io.github.jwharm.flatpak-gradle-generator", version.ref = "flatpak-gradle-generator" }
|
||||
|
||||
[bundles]
|
||||
koin_server = ["koin_core", "koin_core_coroutines", "koin_sl4j", "koin_ktor"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue