From: fredboy <fredboy@protonmail.com>
Date: Sat, 25 May 2024 03:47:42 +0000 (+0700)
Subject: Softlink assets
X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=4ad92d4055405f5acda70baa38177a6b414fa9bf;p=cavedroid.git

Softlink assets
---

diff --git a/android/assets b/android/assets
new file mode 120000
index 0000000..ec2e4be
--- /dev/null
+++ b/android/assets
@@ -0,0 +1 @@
+../assets
\ No newline at end of file
diff --git a/desktop/assets b/desktop/assets
new file mode 120000
index 0000000..ec2e4be
--- /dev/null
+++ b/desktop/assets
@@ -0,0 +1 @@
+../assets
\ No newline at end of file
diff --git a/desktop/build.gradle b/desktop/build.gradle
index 9127345..f909ef1 100644
--- a/desktop/build.gradle
+++ b/desktop/build.gradle
@@ -8,10 +8,10 @@ java.targetCompatibility = JavaVersion.VERSION_17
 java.sourceCompatibility = JavaVersion.VERSION_1_8
 
 sourceSets.main.java.srcDirs = ["src/"]
-sourceSets.main.resources.srcDirs = ["../android/assets"]
+sourceSets.main.resources.srcDirs = ["assets/"]
 
 project.ext.mainClassName = "ru.deadsoftware.cavedroid.desktop.DesktopLauncher"
-project.ext.assetsDir = new File("../android/assets")
+project.ext.assetsDir = new File("assets/")
 
 task run(dependsOn: build, type: JavaExec) {
     main = project.mainClassName