Search
lxdream.org :: lxdream :: r1061:06ea56ae747f
lxdream 0.9.1
released Jun 29
Download Now
changeset1061:06ea56ae747f
parent1060:46f3893e59ce
child1062:5bde715d4d3d
authornkeynes
dateMon Jun 29 09:25:11 2009 +0000 (10 years ago)
Add code to the makefile to construct the .dmg images. Apparently it _can_ be done after all
Makefile.am
Makefile.in
dmg.layout
1.1 --- a/Makefile.am Mon Jun 29 06:38:16 2009 +0000
1.2 +++ b/Makefile.am Mon Jun 29 09:25:11 2009 +0000
1.3 @@ -2,6 +2,8 @@
1.4
1.5 POD2MAN=@POD2MAN@
1.6 BUNDLE=lxdream.app
1.7 +DMGFILE=lxdream-$(VERSION)-$(host_cpu).dmg
1.8 +DMGLABEL=Lxdream-$(VERSION)-$(host_cpu)
1.9
1.10 if BUILD_SYSTEST
1.11 TEST_SUBDIR = test
1.12 @@ -82,4 +84,17 @@
1.13 @echo --- Done ---
1.14 endif
1.15
1.16 +# Build a Mac DMG disk image.
1.17 +dmg: $(BUNDLE)
1.18 + @echo --- Building DMG image ---
1.19 + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE)
1.20 + hdiutil attach -mountpoint tmp.mount $(DMGFILE)
1.21 + cp -Rdp $(BUNDLE) tmp.mount/
1.22 + cp dmg.layout tmp.mount/.DS_Store
1.23 + ln -s /Applications tmp.mount/Applications
1.24 + hdiutil unmount tmp.mount
1.25 + zip -9 $(DMGFILE).zip $(DMGFILE)
1.26 + rm $(DMGFILE)
1.27 + @echo --- Done ---
1.28 +
1.29 bundle: all
2.1 --- a/Makefile.in Mon Jun 29 06:38:16 2009 +0000
2.2 +++ b/Makefile.in Mon Jun 29 09:25:11 2009 +0000
2.3 @@ -270,6 +270,8 @@
2.4 sysconfdir = @sysconfdir@
2.5 target_alias = @target_alias@
2.6 BUNDLE = lxdream.app
2.7 +DMGFILE = lxdream-$(VERSION)-$(host_cpu).dmg
2.8 +DMGLABEL = Lxdream-$(VERSION)-$(host_cpu)
2.9 @BUILD_SYSTEST_TRUE@TEST_SUBDIR = test
2.10 SUBDIRS = src po $(TEST_SUBDIR)
2.11 EXTRA_DIST = autogen.sh lxdream.pod lxdream.desktop bundlelibs.pl
2.12 @@ -847,6 +849,19 @@
2.13 @GUI_COCOA_TRUE@ done
2.14 @GUI_COCOA_TRUE@ @echo --- Done ---
2.15
2.16 +# Build a Mac DMG disk image.
2.17 +dmg: $(BUNDLE)
2.18 + @echo --- Building DMG image ---
2.19 + hdiutil create -fs HFS+ -size 5m -volname $(DMGLABEL) $(DMGFILE)
2.20 + hdiutil attach -mountpoint tmp.mount $(DMGFILE)
2.21 + cp -Rdp $(BUNDLE) tmp.mount/
2.22 + cp dmg.layout tmp.mount/.DS_Store
2.23 + ln -s /Applications tmp.mount/Applications
2.24 + hdiutil unmount tmp.mount
2.25 + zip -9 $(DMGFILE).zip $(DMGFILE)
2.26 + rm $(DMGFILE)
2.27 + @echo --- Done ---
2.28 +
2.29 bundle: all
2.30 # Tell versions [3.59,3.63) of GNU make to not export all variables.
2.31 # Otherwise a system limit (for SysV at least) may be exceeded.
3.1 Binary file dmg.layout has changed
.