Esempio n. 1
0
def main():
    args = parse_args()
    ui = 'cocoa' if ISOSX else 'qt'
    if args.src_pkg:
        print("Creating source package for moneyGuru")
        package_source_tgz()
        return
    print("Packaging moneyGuru with UI {0}".format(ui))
    if ui == 'cocoa':
        package_cocoa_app_in_dmg('build/moneyGuru.app', '.', args)
    elif ui == 'qt':
        if ISWINDOWS:
            package_windows()
        elif ISLINUX:
            if not args.arch_pkg:
                distname, _, _ = platform.dist()
            else:
                distname = 'arch'
            if distname == 'arch':
                package_arch()
            else:
                print("Packaging for Ubuntu")
                # We only support LTS releases
                for distribution in ['trusty', 'xenial']:
                    package_debian(distribution)
        else:
            print("Qt packaging only works under Windows or Linux.")
Esempio n. 2
0
def package_cocoa(edition, args):
    app_path = {
        'se': 'build/dupeGuru.app',
        'me': 'build/dupeGuru ME.app',
        'pe': 'build/dupeGuru PE.app',
    }[edition]
    package_cocoa_app_in_dmg(app_path, '.', args)
Esempio n. 3
0
def main():
    args = parse_args()
    conf = json.load(open('conf.json'))
    ui = conf['ui']
    dev = conf['dev']
    if args.src_pkg:
        print("Creating source package for moneyGuru")
        package_source_tgz()
        return
    print("Packaging moneyGuru with UI {0}".format(ui))
    if ui == 'cocoa':
        package_cocoa_app_in_dmg('build/moneyGuru.app', '.', args)
    elif ui == 'qt':
        if ISWINDOWS:
            package_windows(dev)
        elif ISLINUX:
            if not args.arch_pkg:
                distname, _, _ = platform.dist()
            else:
                distname = 'arch'
            if distname == 'arch':
                package_arch()
            else:
                print("Packaging for Ubuntu")
                for distribution in ['trusty', 'vivid']:
                    package_debian(distribution)
        else:
            print("Qt packaging only works under Windows or Linux.")
Esempio n. 4
0
def package_cocoa(edition, args):
    app_path = {
        'se': 'build/dupeGuru.app',
        'me': 'build/dupeGuru ME.app',
        'pe': 'build/dupeGuru PE.app',
    }[edition]
    package_cocoa_app_in_dmg(app_path, '.', args)
Esempio n. 5
0
def main():
    args = parse_args()
    conf = json.load(open('conf.json'))
    ui = conf['ui']
    dev = conf['dev']
    print("Packaging PdfMasher with UI {0}".format(ui))
    if ui == 'cocoa':
        package_cocoa_app_in_dmg('build/PdfMasher.app', '.', args)
    elif ui == 'qt':
        if ISWINDOWS:
            package_windows(dev)
        elif ISLINUX:
            distname, _, _ = platform.dist()
            if distname == 'arch':
                package_arch()
            else:
                package_debian()
        else:
            print("Qt packaging only works under Windows or Linux.")
Esempio n. 6
0
def main():
    args = parse_args()
    conf = json.load(open('conf.json'))
    ui = conf['ui']
    dev = conf['dev']
    print("Packaging PdfMasher with UI {0}".format(ui))
    if ui == 'cocoa':
        package_cocoa_app_in_dmg('build/PdfMasher.app', '.', args)
    elif ui == 'qt':
        if ISWINDOWS:
            package_windows(dev)
        elif ISLINUX:
            if not args.arch_pkg:
                distname, _, _ = platform.dist()
            else:
                distname = 'arch'
            if distname == 'arch':
                package_arch()
            else:
                package_debian()
        else:
            print("Qt packaging only works under Windows or Linux.")
Esempio n. 7
0
def package_cocoa(args):
    app_path = 'build/dupeGuru.app'
    package_cocoa_app_in_dmg(app_path, '.', args)
Esempio n. 8
0
def package_cocoa(args):
    app_path = 'build/dupeGuru.app'
    package_cocoa_app_in_dmg(app_path, '.', args)
Esempio n. 9
0
def main():
    args = parse_args()
    print("Packaging moneyGuru")
    package_cocoa_app_in_dmg('build/moneyGuru.app', '.', args)