rdb 16 лет назад
Родитель
Сommit
947efd8f94
2 измененных файлов с 4 добавлено и 0 удалено
  1. 1 0
      makepanda/makepanda.py
  2. 3 0
      makepanda/makepandacore.py

+ 1 - 0
makepanda/makepanda.py

@@ -943,6 +943,7 @@ def CompileBundle(target, inputs, opts):
     
     oscmd("rm -rf %s" % target)
     oscmd("mkdir -p %s/Contents/MacOS/" % target)
+    SetOrigExt("%s/Contents/MacOS/%s" % (target, bundleName), ".dll")
     CompileLink("%s/Contents/MacOS/%s" % (target, bundleName), objects, opts + ["BUNDLE"])
     oscmd("cp %s %s/Contents/Info.plist" % (plist, target))
     for r in resources:

+ 3 - 0
makepanda/makepandacore.py

@@ -1178,6 +1178,9 @@ ORIG_EXT={}
 def GetOrigExt(x):
     return ORIG_EXT[x]
 
+def SetOrigExt(x, v):
+    ORIG_EXT[x] = v
+
 def CalcLocation(fn, ipath):
     if (fn.count("/")): return fn