Skip to content

Commit

Permalink
Prepare for client
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer committed Jan 20, 2024
1 parent 1204264 commit c1cb21a
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 34 deletions.
58 changes: 25 additions & 33 deletions patches/0001-Remove-Useless-project.patch
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,23 @@ Date: Fri, 23 Jun 2023 15:42:03 +0800
Subject: [PATCH] Remove Useless project

---
build.gradle | 39 +--------------------------------------
settings.gradle | 4 ++--
2 files changed, 3 insertions(+), 40 deletions(-)
build.gradle | 23 +++--------------------
settings.gradle | 5 +++--
2 files changed, 6 insertions(+), 22 deletions(-)

diff --git a/build.gradle b/build.gradle
index 84cfbefca7ba0af2c492ff86aa0a312549b78e84..0c774d0cc758c78d3c8552146ff90bfe83e9af8f 100644
index 84cfbefca7ba0af2c492ff86aa0a312549b78e84..08e366725571f8b4b5df482e370a6a57c5c93fc4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -58,7 +58,7 @@ allprojects{
}else{
//skip to last submodule
if(name.contains(':')) name = name.split(':').last()
- return "com.github.Anuken.Arc:$name:${getArcHash()}"
+ return "com.github.anuken.Arc:$name:${getArcHash()}"
}
}

@@ -103,16 +103,6 @@ allprojects{
return project.ext.mainClassName.substring(0, project.ext.mainClassName.indexOf("desktop") - 1)
}
Expand All @@ -29,45 +38,27 @@ index 84cfbefca7ba0af2c492ff86aa0a312549b78e84..0c774d0cc758c78d3c8552146ff90bfe
generateLocales = {
def output = 'en\n'
def bundles = new File(project(':core').projectDir, 'assets/bundles/')
@@ -236,25 +226,6 @@ configure(subprojects - project(":annotations")){
@@ -236,6 +226,7 @@ configure(subprojects - project(":annotations")){
}
}

-project(":desktop"){
- apply plugin: "java"
-
- compileJava.options.fork = true
-
- dependencies{
- implementation project(":core")
- implementation arcModule("extensions:discord")
- implementation arcModule("natives:natives-desktop")
- implementation arcModule("natives:natives-freetype-desktop")
-
- if(debugged()) implementation project(":debug")
-
- implementation "com.github.Anuken:steamworks4j:$steamworksVersion"
-
- implementation arcModule("backends:backend-sdl")
- }
-}
-
project(":core"){
apply plugin: "java-library"
apply plugin: "kotlin"
@@ -341,10 +312,7 @@ project(":core"){
+if(findProject("desktop")!=null)
project(":desktop"){
apply plugin: "java"

@@ -341,10 +332,7 @@ project(":core"){

afterEvaluate{
task mergedJavadoc(type: Javadoc){
- def blacklist = [project(":ios"), project(":desktop"), project(":server"), project(":annotations")]
- if(findProject(":android") != null){
- blacklist += project(":android")
- }
+ def blacklist = [project(":server"), project(":annotations")]
+ def blacklist = [project(":server"), project(":annotations"), findProject(":desktop")]

source rootProject.subprojects.collect{ project ->
if(!blacklist.contains(project) && project.hasProperty("sourceSets")){
@@ -458,13 +426,8 @@ task deployAll{
@@ -458,13 +446,8 @@ task deployAll{
}

dependsOn cleanDeployOutput
Expand All @@ -82,19 +73,20 @@ index 84cfbefca7ba0af2c492ff86aa0a312549b78e84..0c774d0cc758c78d3c8552146ff90bfe
}

diff --git a/settings.gradle b/settings.gradle
index fed0fcf07666d4654905a50e341590dccfe9718e..fbabdea3f28a02757a65baef8be6e6c1c8355500 100644
index fed0fcf07666d4654905a50e341590dccfe9718e..e344541be936a2da267de1fbb35f29355ff13789 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -2,7 +2,7 @@ if(JavaVersion.current().ordinal() < JavaVersion.VERSION_16.ordinal()){
@@ -2,7 +2,8 @@ if(JavaVersion.current().ordinal() < JavaVersion.VERSION_16.ordinal()){
throw new Exception("!!! YOU MUST USE JAVA 16 OR ABOVE TO COMPILE AND RUN MINDUSTRY !!! Read the README. Your version: ${System.properties["java.version"]}")
}

-include 'desktop', 'core', 'server', 'ios', 'annotations', 'tools', 'tests'
+include 'core', 'server', 'annotations', 'tools', 'tests'
+include 'desktop'

def use = { ... names ->
for(String name : names){
@@ -27,7 +27,7 @@ if(hasSdk){
@@ -27,7 +28,7 @@ if(hasSdk){

//UPDATE: it no longer chokes on AGP with the latest version, but instead gives a completely different error. brilliant.
if(!System.getProperty("jna.tmpdir")?.contains("JetBrains")){
Expand Down
2 changes: 1 addition & 1 deletion patches/0002-Change-versionType-to-MindustryX.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Subject: [PATCH] Change versionType to `MindustryX`
2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/build.gradle b/build.gradle
index 0c774d0cc758c78d3c8552146ff90bfe83e9af8f..21fc48cc78893299ddc290a808edb8d9996f46b7 100644
index 08e366725571f8b4b5df482e370a6a57c5c93fc4..85a69bf239cbaf49569afa9dfec678a749782b28 100644
--- a/build.gradle
+++ b/build.gradle
@@ -30,12 +30,12 @@ allprojects{
Expand Down
19 changes: 19 additions & 0 deletions patches/0015-archash.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: way-zer <himc.wicp@gmail.com>
Date: Sat, 20 Jan 2024 15:19:36 +0800
Subject: [PATCH] archash

---
gradle.properties | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle.properties b/gradle.properties
index 0ee7c648df1b9844d337d243efe441c0b598afaf..570059c3407dd628532bafa39bef9aecbd995565 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -25,4 +25,4 @@ org.gradle.caching=true
#used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
-archash=152e49944a
+archash=v146

0 comments on commit c1cb21a

Please sign in to comment.