~ubuntu-branches/debian/sid/bitcoin/sid

« back to all changes in this revision

Viewing changes to contrib/macdeploy/macdeployqtplus

  • Committer: Package Import Robot
  • Author(s): Scott Howard
  • Date: 2015-07-29 15:45:52 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20150729154552-p5t8q38o0ekh1f09
Tags: 0.11.0-1
* New upstream release (Closes: #793622)
  - build on all archs, big endian is now supported
* Updated symbols file
* Added bitcoin-cli.1 manpage from contrib/debian/manpages
* Updated debian/copyright

Show diffs side-by-side

added added

removed removed

Lines of Context:
155
155
class ApplicationBundleInfo(object):
156
156
    def __init__(self, path):
157
157
        self.path = path
158
 
        appName = os.path.splitext(os.path.basename(path))[0]
 
158
        appName = "Bitcoin-Qt"
159
159
        self.binaryPath = os.path.join(path, "Contents", "MacOS", appName)
160
160
        if not os.path.exists(self.binaryPath):
161
161
            raise RuntimeError("Could not find bundle binary for " + path)
596
596
 
597
597
# ------------------------------------------------
598
598
 
599
 
target = os.path.join("dist", app_bundle)
 
599
target = os.path.join("dist", "Bitcoin-Qt.app")
600
600
 
601
601
if verbose >= 2:
602
602
    print "+ Copying source bundle +"
757
757
    
758
758
    if fancy is None:
759
759
        try:
760
 
            runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname=app_bundle_name, ov=True)
 
760
            runHDIUtil("create", dmg_name, srcfolder="dist", format="UDBZ", volname="Bitcoin-Core", ov=True)
761
761
        except subprocess.CalledProcessError as e:
762
762
            sys.exit(e.returncode)
763
763
    else:
767
767
        for path, dirs, files in os.walk("dist"):
768
768
            for file in files:
769
769
                size += os.path.getsize(os.path.join(path, file))
770
 
        size += int(size * 0.1)
 
770
        size += int(size * 0.15)
771
771
        
772
772
        if verbose >= 3:
773
773
            print "Creating temp image for modification..."
774
774
        try:
775
 
            runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname=app_bundle_name, ov=True)
 
775
            runHDIUtil("create", dmg_name + ".temp", srcfolder="dist", format="UDRW", size=size, volname="Bitcoin-Core", ov=True)
776
776
        except subprocess.CalledProcessError as e:
777
777
            sys.exit(e.returncode)
778
778
        
791
791
            print "+ Applying fancy settings +"
792
792
        
793
793
        if fancy.has_key("background_picture"):
794
 
            bg_path = os.path.join(disk_root, os.path.basename(fancy["background_picture"]))
 
794
            bg_path = os.path.join(disk_root, ".background", os.path.basename(fancy["background_picture"]))
 
795
            os.mkdir(os.path.dirname(bg_path))
795
796
            if verbose >= 3:
796
797
                print fancy["background_picture"], "->", bg_path
797
798
            shutil.copy2(fancy["background_picture"], bg_path)
836
837
                items_positions.append(itemscript.substitute(params))
837
838
 
838
839
        params = {
839
 
            "disk" : "Bitcoin-Qt",
 
840
            "disk" : "Bitcoin-Core",
840
841
            "window_bounds" : "300,300,800,620",
841
842
            "icon_size" : "96",
842
843
            "background_commands" : "",
849
850
        if bg_path is not None:
850
851
            # Set background file, then call SetFile to make it invisible.
851
852
            # (note: making it invisible first makes set background picture fail)
852
 
            bgscript = Template("""set background picture of theViewOptions to file "$bgpic"
853
 
                   do shell script "SetFile -a V /Volumes/$disk/$bgpic" """)
 
853
            bgscript = Template("""set background picture of theViewOptions to file ".background:$bgpic"
 
854
                   do shell script "SetFile -a V /Volumes/$disk/.background/$bgpic" """)
854
855
            params["background_commands"] = bgscript.substitute({"bgpic" : os.path.basename(bg_path), "disk" : params["disk"]})
855
856
 
856
857
        s = appscript.substitute(params)