Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac DMG doesn't build on newer versions of OS X than 10.11 #123

Closed
stmuk opened this issue Nov 11, 2018 · 7 comments
Closed

Mac DMG doesn't build on newer versions of OS X than 10.11 #123

stmuk opened this issue Nov 11, 2018 · 7 comments
Assignees

Comments

@stmuk
Copy link
Contributor

stmuk commented Nov 11, 2018

Log of successful build on 10.11


> diskutil eject /Volumes/Rakudo
Disk /Volumes/Rakudo ejected
> hdiutil create  'temp' -ov -size 92308k -fs HFS+ -volname 'Rakudo' -attach
...................................................................................
/dev/disk2          	GUID_partition_scheme          	
/dev/disk2s1        	Apple_HFS                      	/Volumes/Rakudo
created: /Users/steve/temp/rakudo-star-2018.10/ports/darwin_dmg/Temp_build/temp.dmg
Copying Rakudo files
> CpMac -r '/Applications/Rakudo'    '/Volumes/Rakudo'
> cp ../HOW_TO_INSTALL.txt  '/Volumes/Rakudo/README.txt'
> cp -pr ../../../docs  '/Volumes/Rakudo/Docs'
' touch                        '/Volumes/Rakudo/Rakudo/Icon
> cp ../2000px-Camelia.svg.icns /Volumes/Rakudo/.VolumeIcon.icns
> sips -i                       /Volumes/Rakudo/.VolumeIcon.icns
/Volumes/Rakudo/.VolumeIcon.icns
  /Volumes/Rakudo/.VolumeIcon.icns
> DeRez -only icns              /Volumes/Rakudo/.VolumeIcon.icns > tempicns.rsrc
> Rez -append tempicns.rsrc -o '/Volumes/Rakudo/Rakudo/bin/perl6'
> mkdir                        /Volumes/Rakudo/.background
> cp ../installerbg.png        /Volumes/Rakudo/.background
> SetFile -c icnC              '/Volumes/Rakudo/.VolumeIcon.icns'
> SetFile -a C                 '/Volumes/Rakudo'
> SetFile -a C                 '/Volumes/Rakudo/Rakudo'
> SetFile -a C                 '/Volumes/Rakudo/Rakudo/bin/perl6'
' SetFile -a V                 '/Volumes/Rakudo/Rakudo/Icon
> rm tempicns.rsrc
>>> Adjusting sizes and positions in installation window
> osascript ../adjust_installation_window.scpt
>>> Waiting on .DS_STORE to be written
>>> Compressing
> diskutil eject /Volumes/Rakudo
Disk /Volumes/Rakudo ejected
> hdiutil convert 'temp.dmg' -format UDBZ -o 'rakudo-star-2018.10'
Preparing imaging engine…
Reading Protective Master Boot Record (MBR : 0)…
   (CRC32 $16D6C881: Protective Master Boot Record (MBR : 0))
Reading GPT Header (Primary GPT Header : 1)…
   (CRC32 $C9F83DFC: GPT Header (Primary GPT Header : 1))
Reading GPT Partition Data (Primary GPT Table : 2)…
   (CRC32 $42957983: GPT Partition Data (Primary GPT Table : 2))
Reading  (Apple_Free : 3)…
   (CRC32 $00000000:  (Apple_Free : 3))
Reading disk image (Apple_HFS : 4)…
..................................................................................
   (CRC32 $84A37AD7: disk image (Apple_HFS : 4))
Reading  (Apple_Free : 5)…
..................................................................................
   (CRC32 $00000000:  (Apple_Free : 5))
Reading GPT Partition Data (Backup GPT Table : 6)…
..................................................................................
   (CRC32 $42957983: GPT Partition Data (Backup GPT Table : 6))
Reading GPT Header (Backup GPT Header : 7)…
...................................................................................
   (CRC32 $BA1AE2A2: GPT Header (Backup GPT Header : 7))
Adding resources…
...................................................................................
Elapsed Time:  5.803s
File size: 21269933 bytes, Checksum: CRC32 $D2CE1C44
Sectors processed: 184616, 167396 compressed
Speed: 14.1Mbytes/sec
Savings: 77.5%
created: /Users/steve/temp/rakudo-star-2018.10/ports/darwin_dmg/Temp_build/rakudo-star-2018.10.dmg
>>> Adding click-thru license and auto-open
> hdiutil unflatten                 'rakudo-star-2018.10.dmg'
hdiutil: unflatten: unflattening "rakudo-star-2018.10.dmg"...
> hdiutil flatten                   'rakudo-star-2018.10.dmg'
hdiutil: flatten: flattening "rakudo-star-2018.10.dmg"...
steve@tau:~/temp/rakudo-star-2018.10/ports/darwin_dmg 
$ 
@lizmat
Copy link
Contributor

lizmat commented Nov 11, 2018

Do we have an error log for 10.11+ ?

@virtualsue
Copy link
Contributor

This issue can be assigned to me if desired.

@lizmat
Copy link
Contributor

lizmat commented Nov 11, 2018

That would be very nice, thank you.

@virtualsue
Copy link
Contributor

The procedure used in ports/darwin_dmg/package_darwin_dmg.pl to make a dmg file has succumbed to changes in Apple APIs over time. I think most of it works, despite widespread deprecation of the utilities involved. Having a look at how this can be ameliorated/fixed.

In case anyone wonders, Rakudo Star dmg files are being built using a macbook of mine that has been left on OS X 10.11 for this purpose.

buildlog.txt

@lizmat
Copy link
Contributor

lizmat commented Nov 12, 2018

Cool. FWIW, I've tried to assign this issue to you, but for some reason you're not in the list of people to assign to, even though you have committed to this repo in the past. Go figure.

@clarkema
Copy link
Member

I've got DMG building working on macOS 10.14 (see PR #126) but since I haven't committed anything before I'd appreciate a quick sanity check from someone more experienced!

@clarkema
Copy link
Member

Merged PR #126 which adds a Swift helper to set the appropriate images in the DMG. With this in place I can now build DMGs using my MBP running 10.14.1, so I think that means @virtualsue's Macbook can now be released from duty!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants