mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
Removed fairware dialogs under Linux.
This commit is contained in:
parent
fb26d7d077
commit
a4003b6072
6
build.py
6
build.py
@ -144,11 +144,7 @@ def build_qt(edition, dev, conf):
|
||||
print_and_do("pyrcc4 -py3 {0} > {1}".format(op.join('qt', 'base', 'dg.qrc'), op.join('qt', 'base', 'dg_rc.py')))
|
||||
fix_qt_resource_file(op.join('qt', 'base', 'dg_rc.py'))
|
||||
print("Creating the run.py file")
|
||||
if conf.get('ubuntu_store'):
|
||||
ubuntu_store_setup = "dgapp.model.registered = True; dgapp.model.registration_email = \"Ubuntu Store\""
|
||||
else:
|
||||
ubuntu_store_setup = ""
|
||||
filereplace(op.join('qt', 'run_template.py'), 'run.py', edition=edition, ubuntu_store_setup=ubuntu_store_setup)
|
||||
filereplace(op.join('qt', 'run_template.py'), 'run.py', edition=edition)
|
||||
|
||||
def build_help(edition):
|
||||
print("Generating Help")
|
||||
|
@ -23,7 +23,6 @@ def main(options):
|
||||
'edition': options.edition,
|
||||
'ui': options.ui,
|
||||
'dev': options.dev,
|
||||
'ubuntu_store': options.ubuntu_store,
|
||||
}
|
||||
json.dump(conf, open('conf.json', 'w'))
|
||||
|
||||
@ -36,7 +35,5 @@ if __name__ == '__main__':
|
||||
help="Type of UI to build. 'qt' or 'cocoa'. Default is determined by your system.")
|
||||
parser.add_option('--dev', action='store_true', dest='dev', default=False,
|
||||
help="If this flag is set, will configure for dev builds.")
|
||||
parser.add_option('--ubuntu-store', action='store_true', dest='ubuntu_store', default=False,
|
||||
help="Set registration for the Ubuntu Store.")
|
||||
(options, args) = parser.parse_args()
|
||||
main(options)
|
||||
|
@ -37,6 +37,7 @@ if __name__ == "__main__":
|
||||
from qt.{edition}.app import DupeGuru
|
||||
app.setWindowIcon(QIcon(QPixmap(":/{0}".format(DupeGuru.LOGO_NAME))))
|
||||
dgapp = DupeGuru()
|
||||
{ubuntu_store_setup}
|
||||
if not ISWINDOWS:
|
||||
dgapp.model.registered = True
|
||||
install_excepthook()
|
||||
sys.exit(app.exec_())
|
||||
|
Loading…
x
Reference in New Issue
Block a user