Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Part of #13551 - Create packages under release/debug directories as appropriate #13845

Merged
merged 2 commits into from Dec 10, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

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.
  • Loading branch information
leikahing committed Dec 9, 2016
commit 6a7fb6cd2b668a2da6d3abb909742948745ca058
@@ -28,7 +28,7 @@ upload() {


This comment has been minimized.

@aneeshusa

aneeshusa Oct 30, 2016

Member

Keep this line to avoid diff noise and fit with the double newline between functions style.

This comment has been minimized.

@leikahing

leikahing Nov 9, 2016

Author Contributor

This is resolved in the next commit (haven't done any squashing yet in order to separate out my fixes and improvements).

main() {
if [[ "${#}" != 1 ]]; then
if (( "${#}" != 1 )); then

This comment has been minimized.

@aneeshusa

aneeshusa Oct 28, 2016

Member

Huh, I never knew about this, +1 from me!

usage >&2
return 1
fi
@@ -41,13 +41,13 @@ main() {
package=target/arm-linux-androideabi/release/*."${extension}"
elif [[ "${platform}" == "linux" ]]; then
extension=tar.gz
package=target/*."${extension}"
package=target/release/*."${extension}"
elif [[ "${platform}" == "mac" ]]; then
extension=dmg
package=target/*."${extension}"
package=target/release/*."${extension}"
elif [[ "${platform}" == "macbrew" ]]; then
extension=tar.gz
package=target/brew/*."${extension}"
package=target/release/brew/*."${extension}"
elif [[ "${platform}" == "windows" ]]; then
extension=msi
package=target/release/msi/*.msi
@@ -156,7 +156,7 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
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 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=

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 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
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 @@ def package(self, release=False, dev=False, android=None, debug=False, debugger=
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/')

ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.