Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e4cc33 commit 24f7b23Copy full SHA for 24f7b23
1 file changed
Mac/Tools/IDE/BuildIDE.py
@@ -7,6 +7,8 @@
7
import buildtools
8
import Res
9
import py_resource
10
+import macfs
11
+import MACFS
12
13
buildtools.DEBUG=1
14
@@ -19,6 +21,17 @@
19
21
20
22
buildtools.process(template, mainfilename, dstfilename, 1)
23
24
+# Override the owner: IDE gets its bundle stuff from the applet
25
+# template and only needs to set the file creator.
26
+dest_fss = macfs.FSSpec(dstfilename)
27
+dest_finfo = dest_fss.GetFInfo()
28
+dest_finfo.Creator = ownertype
29
+dest_finfo.Type = 'APPL'
30
+dest_finfo.Flags = dest_finfo.Flags | MACFS.kHasBundle
31
+dest_finfo.Flags = dest_finfo.Flags & ~MACFS.kHasBeenInited
32
+dest_fss.SetFInfo(dest_finfo)
33
+
34
35
targetref = Res.OpenResFile(dstfilename)
36
Res.UseResFile(targetref)
37
0 commit comments