upload-osx-pkg:
@if [ "X${BB_BRANCH}" = "Xmaster" ] || [ "X${BB_BRANCH}" = "X" ]; then \
- flappclient --furlfile ~/.tahoe-osx-pkg-upload.furl upload-file tahoe-lafs-osx.pkg; \
+ flappclient --furlfile ~/.tahoe-osx-pkg-upload.furl upload-file tahoe-lafs-*-osx.pkg; \
else \
echo not uploading tahoe-lafs-osx-pkg because this is not trunk but is branch \"${BB_BRANCH}\" ; \
fi
# create product archive
productbuild --distribution $PWD/misc/build_helpers/osx/Distribution.xml \
--package-path . \
- tahoe-lafs-osx.pkg
+ tahoe-lafs-$VERSION-osx.pkg
# remove intermediate pkg
rm -f tahoe-lafs.pkg
if __name__ == '__main__':
- print "Testing..."
- test_osx_pkg('tahoe-lafs-osx.pkg')
+ pkgs = [fn for fn in os.listdir(".") if fn.endswith("-osx.pkg")]
+ if len(pkgs) != 1:
+ print "ERR: unable to find a single .pkg file:", pkgs
+ sys.exit(1)
+ print "Testing %s ..." % pkgs[0]
+ test_osx_pkg(pkgs[0])
print "Looks OK!"