Hello,
Why Exclude Files don’t work properly when we build for windows (win32)?
Hello,
Why Exclude Files don’t work properly when we build for windows (win32)?
Can you provide more details?
Can you post your build.settings?
Thanks
Rob
When I exclude some folder they aren’t all removed. My git folder is removed but not my “notgoh” folder On IOs or android they are corectly removed.
Do you need more details or information?
My buildsetting file
settings = { build = {neverStripDebugInfo = true}, orientation = { default = "landscapeRight", supported = { "landscapeRight","landscapeLeft" } }, splashScreen={ enable=false, image="Default-Landscape.png" }, iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay -- CFBundleIconFile = "Icon.png", -- ici ma gueule CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-40@3x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, MinimumOSVersion = "8.0", } }, window = { defaultMode = "fullscreen", resizable = true, enableMaximizeButton = true, titleText = { default = "Stronghold", }, }, excludeFiles = { all={"git/","notgoh/","Thumbs.db","\*@6x.png","\*@6x.jpg","\*@6x.jpeg"} }, android = { isGame = true, supportsScreens = { smallScreens = true, normalScreens = true, largeScreens = true, xlargeScreens = true, }, largeHeap = true, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.WRITE\_INTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, usesFeatures = { { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.location.network", required=false }, { name = "android.hardware.touchscreen", required = false}, }, }, plugins = { ["plugin.admob"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true } }, }, }
Can you provide more details?
Can you post your build.settings?
Thanks
Rob
When I exclude some folder they aren’t all removed. My git folder is removed but not my “notgoh” folder On IOs or android they are corectly removed.
Do you need more details or information?
My buildsetting file
settings = { build = {neverStripDebugInfo = true}, orientation = { default = "landscapeRight", supported = { "landscapeRight","landscapeLeft" } }, splashScreen={ enable=false, image="Default-Landscape.png" }, iphone = { plist = { NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, UIStatusBarHidden = true, UIPrerenderedIcon = true, -- set to false for "shine" overlay -- CFBundleIconFile = "Icon.png", -- ici ma gueule CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-60@3x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", "Icon-Small-40.png", "Icon-Small-40@2x.png", "Icon-Small-40@3x.png", "Icon-Small-50.png", "Icon-Small-50@2x.png", "Icon-Small.png", "Icon-Small@2x.png", "Icon-Small@3x.png" }, MinimumOSVersion = "8.0", } }, window = { defaultMode = "fullscreen", resizable = true, enableMaximizeButton = true, titleText = { default = "Stronghold", }, }, excludeFiles = { all={"git/","notgoh/","Thumbs.db","\*@6x.png","\*@6x.jpg","\*@6x.jpeg"} }, android = { isGame = true, supportsScreens = { smallScreens = true, normalScreens = true, largeScreens = true, xlargeScreens = true, }, largeHeap = true, usesPermissions = { "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.WRITE\_INTERNAL\_STORAGE", "com.android.vending.BILLING", "com.android.vending.CHECK\_LICENSE", }, usesFeatures = { { name="android.hardware.location", required=false }, { name="android.hardware.location.gps", required=false }, { name="android.hardware.location.network", required=false }, { name = "android.hardware.touchscreen", required = false}, }, }, plugins = { ["plugin.admob"] = { publisherId = "com.coronalabs" }, ["plugin.google.iap.v3"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["plugin.amazon.iap"] = { publisherId = "com.coronalabs", supportedPlatforms = { ["android-kindle"]=true } }, }, }
Did you find a fix to this issue? I am experiencing the same thing, windows builds aren’t excluding the files. (I’m building on Parralels Desktop virtual machine in case that could be a factor)
settings = { splashScreen = { enable = true, image = "Launch.png" }, excludeFiles = { -- Exclude unnecessary icon assets from all builds all = { "acorn", "notes", "bg\_hires", "bg\_lowres", "bg\_potentials", "fonts\_off", "img\_noapp", "website", "exclude", "screenshots", "vids", "WAVS", "SFX/exclude", "android.keystore", "DesignDoc.rtf", "concept\_art", "MUS\_OFF", "MUS\_todo", "MUS\_WAVS", "img\_off", "contracts", "img/\*.acorn", "DarkArpsHangDrum" }, iphone = { "Icon-\*dpi.png", }, android = { "Images.xcassets", }, }, ......
It seems like excluding whole folders is what doesn’t work. As in the above build.setting I want to exclude the entire MUS_OFF folder. Listing it like that excludes it properly for ios, android, and macOS builds but not Win32.
changing “MUS_OFF” to be “MUS_OFF/*” solves the problem on win32 I’ve found. So fixed there. It would be nice to be able to use the cleaner syntax on all platforms tho.