Chameleon

Chameleon Commit Details

Date:2011-10-06 12:58:29 (7 years 7 months ago)
Author:blackosx
Commit:1611
Parents: 1610
Message:Fix slimpkg.sh to work with previous commit for using zip + pkg image.
Changes:
M/branches/blackosx/package/slimpkg.sh
M/branches/blackosx/Makefile

File differences

branches/blackosx/package/slimpkg.sh
325325
326326
327327
328
328
329329
330330
331331
332
333
334
335
336
337
332
333
334
335
336
337
338338
339339
340340
find "${1}/${packagename}" -name '.DS_Store' -delete
pushd "${1}/${packagename}" >/dev/null
xar -c -f "${1%/*}/$packagename.pkg" --compression none .
xar -c -f "${1%/*}/${packagename// /}-${version}-r${revision}.pkg" --compression none .
popd >/dev/null
# Here is the place for assign a Icon to the pkg
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.pkg"
SetFile -a C "${1%/*}/$packagename.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
echo ""
branches/blackosx/Makefile
123123
124124
125125
126
126127
127128
128129
pkg installer: all
${SRCROOT}/package/buildpkg.sh ${SYMROOT}/package;
#${SRCROOT}/package/slimpkg.sh ${SYMROOT}/package;
@echo "\t[ZIP] ${DISTFILE}.pkg"
@ditto -c -k --sequesterRsrc ${DISTFILE}.pkg ${DISTFILE}.zip
@rm -r ${DISTFILE}.pkg

Archive Download the corresponding diff file

Revision: 1611