mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-07 03:40:14 +00:00
create/test/upload tahoe-lafs-VERSION-osx.pkg, not tahoe-lafs-osx.pkg
Closes ticket:2393
This commit is contained in:
parent
05c6966801
commit
c12d49b54e
2
Makefile
2
Makefile
@ -42,7 +42,7 @@ test-osx-pkg:
|
|||||||
|
|
||||||
upload-osx-pkg:
|
upload-osx-pkg:
|
||||||
@if [ "X${BB_BRANCH}" = "Xmaster" ] || [ "X${BB_BRANCH}" = "X" ]; then \
|
@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 \
|
else \
|
||||||
echo not uploading tahoe-lafs-osx-pkg because this is not trunk but is branch \"${BB_BRANCH}\" ; \
|
echo not uploading tahoe-lafs-osx-pkg because this is not trunk but is branch \"${BB_BRANCH}\" ; \
|
||||||
fi
|
fi
|
||||||
|
@ -23,7 +23,7 @@ pkgbuild --root $PWD \
|
|||||||
# create product archive
|
# create product archive
|
||||||
productbuild --distribution $PWD/misc/build_helpers/osx/Distribution.xml \
|
productbuild --distribution $PWD/misc/build_helpers/osx/Distribution.xml \
|
||||||
--package-path . \
|
--package-path . \
|
||||||
tahoe-lafs-osx.pkg
|
tahoe-lafs-$VERSION-osx.pkg
|
||||||
|
|
||||||
# remove intermediate pkg
|
# remove intermediate pkg
|
||||||
rm -f tahoe-lafs.pkg
|
rm -f tahoe-lafs.pkg
|
||||||
|
@ -85,7 +85,11 @@ def test_osx_pkg(pkgfile):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print "Testing..."
|
pkgs = [fn for fn in os.listdir(".") if fn.endswith("-osx.pkg")]
|
||||||
test_osx_pkg('tahoe-lafs-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!"
|
print "Looks OK!"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user