#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Sun, 14 Oct 2018 18:57:20 +0200
changeset 23438 94a7e26cb6d3
parent 23437 096581648654
child 23439 f57365c8c7ca
#FEATURE by cg class: ApplicationDefinition class changed: #osxDmgImageSetupLines
ApplicationDefinition.st
--- a/ApplicationDefinition.st	Sun Oct 14 14:32:33 2018 +0200
+++ b/ApplicationDefinition.st	Sun Oct 14 18:57:20 2018 +0200
@@ -2797,7 +2797,8 @@
     "generate (OSX unix) copy commands to generate a directory holding the dmg prototype image directory.
      This is used to generate a macOS deployable dmg containing an app"
 
-    |genLine product productFile dmgVolume dmgDir appDir contentsDir macOSDir resourcesDir dirsMade|
+    |genLine product productFile dmgVolume dmgDir appDir contentsDir macOSDir 
+     resourcesDir packagesDir dirsMade|
 
     product := self productName.
     productFile := self productFilename.
@@ -2808,6 +2809,7 @@
     contentsDir := appDir,'/Contents'.
     macOSDir := contentsDir,'/MacOS'.
     resourcesDir := contentsDir,'/Resources'.
+    packagesDir := contentsDir,'/Packages'.
     dirsMade := Set new.
 
     genLine :=
@@ -2845,6 +2847,8 @@
         "/ this is done indirectly, by additionalFilesToInstall_XXX
         "/ s tab; nextPutLine:('@-mkdir "%1"/packages' bindWith:macOSDir).  dirsMade add:(macOSDir,'/packages').
         s tab; nextPutLine:('@-mkdir "%1"' bindWith:resourcesDir).  dirsMade add:resourcesDir.
+        s tab; nextPutLine:('@-mkdir "%1"' bindWith:packagesDir).  dirsMade add:packagesDir.
+        s tab; nextPutLine:('@$(MAKE) stx_RESOURCES RESOURCES="%1"' bindWith:packagesDir).
         s tab; nextPutLine:('cp "',self applicationName,'" "',macOSDir,'/"').
         s tab; nextPutLine:('@-cp osx/Info.plist "',contentsDir,'/"').
         self osxDmgBackgroundImageFile notNil ifTrue:[