mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 20:33:50 +07:00
fixed unnecessary asset copying
This commit is contained in:
parent
d56565990e
commit
d0bd29cfa0
@ -14,9 +14,7 @@ public abstract class SaveFileReader{
|
||||
protected final DataOutputStream dataBytes = new DataOutputStream(byteOutput);
|
||||
protected final ReusableByteOutStream byteOutputSmall = new ReusableByteOutStream();
|
||||
protected final DataOutputStream dataBytesSmall = new DataOutputStream(byteOutputSmall);
|
||||
protected final ObjectMap<String, String> fallback = ObjectMap.of(
|
||||
|
||||
);
|
||||
protected final ObjectMap<String, String> fallback = ObjectMap.of();
|
||||
|
||||
protected void region(String name, DataInput stream, CounterInputStream counter, IORunner<DataInput> cons) throws IOException{
|
||||
counter.resetCount();
|
||||
|
@ -37,10 +37,7 @@ task dist(type: Jar, dependsOn: classes){
|
||||
|
||||
//use target = all for all platforms
|
||||
def target = getTarget()
|
||||
if(target.contains("windows")){
|
||||
def prefix = target.contains("32") ? "64" : ""
|
||||
exclude('**.so', "**.dylib", "sdl-arc${prefix}.dll", "gdx${prefix}.dll", "gdx-freetype${prefix}.dll", "**/music/**", "**/sounds/**")
|
||||
}
|
||||
if(target.contains("windows")) exclude('**.so', "**.dylib", "**/music/**", "**/sounds/**")
|
||||
if(target == "mac") exclude('**.so', "**.dll")
|
||||
if(target == "linux") exclude('**.dll', "**.dylib")
|
||||
archivesBaseName = appName + "-" + target
|
||||
|
@ -32,7 +32,10 @@ task copyAssets(){
|
||||
}
|
||||
}
|
||||
|
||||
build.dependsOn copyAssets
|
||||
createIPA.dependsOn copyAssets
|
||||
launchIPhoneSimulator.dependsOn copyAssets
|
||||
launchIOSDevice.dependsOn copyAssets
|
||||
launchIPadSimulator.dependsOn copyAssets
|
||||
|
||||
launchIPhoneSimulator.dependsOn build
|
||||
launchIPadSimulator.dependsOn build
|
||||
|
Loading…
Reference in New Issue
Block a user