Chameleon

Chameleon Commit Details

Date:2011-10-06 02:17:18 (7 years 9 months ago)
Author:Evan Lojewski
Commit:1609
Parents: 1608
Message:Modify package script to use zip + pkg image. See http://forum.voodooprojects.org/index.php/topic,1521.msg10963.html#ms g10963
Changes:
M/trunk/Makefile
M/trunk/package/buildpkg.sh

File differences

trunk/package/buildpkg.sh
490490
491491
492492
493
494
495
496
497
498
493
494
495
496
497
498
499499
500500
501501
# command use to generate the file:
# ditto -c -k --sequesterRsrc --keepParent Icon.icns Icon.zip
# ----
# ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"
# DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc
# Rez -append tempicns.rsrc -o "${1%/*}/$packagename-${version}-r$revision.pkg"
# SetFile -a C "${1%/*}/$packagename-${version}-r$revision.pkg"
# rm -f tempicns.rsrc
# rm -rf "${pkgroot}/Icons/Icons"
ditto -xk "${pkgroot}/Icons/pkg.zip" "${pkgroot}/Icons/"
DeRez -only icns "${pkgroot}/Icons/Icons/pkg.icns" > tempicns.rsrc
Rez -append tempicns.rsrc -o "${1%/*}/$packagename-${version}-r$revision.pkg"
SetFile -a C "${1%/*}/$packagename-${version}-r$revision.pkg"
rm -f tempicns.rsrc
rm -rf "${pkgroot}/Icons/Icons"
# End
md5=$( md5 "${1%/*}/${packagename// /}-${version}-r${revision}.pkg" | awk {'print $4'} )
trunk/Makefile
123123
124124
125125
126
127
126
127
128
128129
129130
130131
pkg installer: all
${SRCROOT}/package/buildpkg.sh ${SYMROOT}/package;
@echo "\t[GZ] ${DISTFILE}.pkg"
@gzip --best ${DISTFILE}.pkg
@echo "\t[ZIP] ${DISTFILE}.pkg"
@ditto -c -k --sequesterRsrc ${DISTFILE}.pkg ${DISTFILE}.zip
@rm -r ${DISTFILE}.pkg
.PHONY: config
.PHONY: clean

Archive Download the corresponding diff file

Revision: 1609