summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Mac/Lib/buildtools.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mac/Lib/buildtools.py b/Mac/Lib/buildtools.py
index d2ae0fa..3dcb6ae 100644
--- a/Mac/Lib/buildtools.py
+++ b/Mac/Lib/buildtools.py
@@ -204,6 +204,9 @@ def process_common(template, progress, code, rsrcname, destname, is_update, copy
id = Res.Unique1ID(RESTYPE)
res = Res.Resource(data)
res.AddResource(RESTYPE, id, RESNAME)
+ attrs = res.GetResAttrs()
+ attrs = attrs | 0x04 # set preload
+ res.SetResAttrs(attrs)
res.WriteResource()
res.ReleaseResource()