fixed unnecessary asset copying

This commit is contained in:
Anuken 2019-08-14 13:47:16 -04:00
parent d56565990e
commit d0bd29cfa0
3 changed files with 6 additions and 8 deletions

View File

@ -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();

View File

@ -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

View File

@ -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