diff options
author | William Lee <wlee@mochify.com> | 2016-12-09 13:37:13 -0500 |
---|---|---|
committer | William Lee <wlee@mochify.com> | 2016-12-09 15:28:39 -0500 |
commit | 6a7fb6cd2b668a2da6d3abb909742948745ca058 (patch) | |
tree | 598b4536f636fd3af7408fa12cccf60f3b4b6d20 /python/servo/package_commands.py | |
parent | d4e986023a7dd058f77fc78cda8632d068b0cd93 (diff) | |
download | servo-6a7fb6cd2b668a2da6d3abb909742948745ca058.tar.gz servo-6a7fb6cd2b668a2da6d3abb909742948745ca058.zip |
Package macos/Linux builds under release/debug dirs
This commit updates the 'mach package' command to generate output
under the target/release and target/debug directories when run on
macOS and Linux.
etc/ci/upload_nightly.sh has also been updated to upload packages from
the release/debug directories.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 5ec88e4615c..91151725fc5 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -156,7 +156,7 @@ class PackageCommands(CommandBase): dir_to_root = self.get_top_dir() print("Creating Servo.app") - dir_to_dmg = path.join(path.dirname(dir_to_build), 'dmg') + dir_to_dmg = path.join(dir_to_build, 'dmg') dir_to_app = path.join(dir_to_dmg, 'Servo.app') dir_to_resources = path.join(dir_to_app, 'Contents', 'Resources') if path.exists(dir_to_dmg): @@ -217,7 +217,7 @@ class PackageCommands(CommandBase): print("Creating dmg") os.symlink('/Applications', path.join(dir_to_dmg, 'Applications')) - dmg_path = path.join(path.dirname(dir_to_build), "servo-tech-demo.dmg") + dmg_path = path.join(dir_to_build, "servo-tech-demo.dmg") try: subprocess.check_call(['hdiutil', 'create', '-volname', 'Servo', dmg_path, '-srcfolder', dir_to_dmg]) @@ -229,8 +229,8 @@ class PackageCommands(CommandBase): print("Packaged Servo into " + dmg_path) print("Creating brew package") - dir_to_brew = path.join(path.dirname(dir_to_build), 'brew_tmp') - dir_to_tar = path.join(path.dirname(dir_to_build), 'brew') + dir_to_brew = path.join(dir_to_build, 'brew_tmp') + dir_to_tar = path.join(dir_to_build, 'brew') if not path.exists(dir_to_tar): os.makedirs(dir_to_tar) tar_path = path.join(dir_to_tar, "servo.tar.gz") @@ -320,7 +320,7 @@ class PackageCommands(CommandBase): os.close(runservo) print("Creating tarball") - tar_path = path.join(self.get_target_dir(), 'servo-tech-demo.tar.gz') + tar_path = path.join(path.dirname(binary_path), 'servo-tech-demo.tar.gz') archive_deterministically(dir_to_temp, tar_path, prepend_path='servo/') |