Skip to content

Commit

Permalink
#feat: resource exclude dir: models_enemies models logs
Browse files Browse the repository at this point in the history
  • Loading branch information
half-nothing committed Jan 31, 2024
1 parent b3b1eef commit 0574a59
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ test*/
# Exclude runtime files
/ArkPetsConfig.json
/models_data.json
/desktop/src/main/resource/assets/models/
/desktop/src/main/resource/assets/models_data.json
2 changes: 1 addition & 1 deletion core/src/cn/harryh/arkpets/ArkConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class ArkConfig {
public float physic_static_friction_acc;
public float physic_speed_limit_x;
public float physic_speed_limit_y;
public int server_port;
public int server_port = 8080;
public boolean separate_arkpet_from_launcher;

private ArkConfig() {
Expand Down
10 changes: 10 additions & 0 deletions desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ eclipse.project.name = appName + "-desktop"

import org.gradle.internal.os.OperatingSystem

processResources {
includeEmptyDirs = false
excludes = [
"**/models_enemies/**",
"**/models/**",
"**/logs/**",
"models_data.json"
]
}

// Runs the app without debug.
task run(dependsOn: classes, type: JavaExec, group: 'execute') {
mainClass = project.mainClassName
Expand Down

0 comments on commit 0574a59

Please sign in to comment.