mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Added the --src-pkg packaging option.
This commit is contained in:
parent
de6f50ab12
commit
500468ed1c
10
package.py
10
package.py
@ -150,12 +150,22 @@ def package_arch(edition):
|
|||||||
copy_source_files(srcpath, packages)
|
copy_source_files(srcpath, packages)
|
||||||
shutil.copy(op.join('images', ed('dg{}_logo_128.png')), srcpath)
|
shutil.copy(op.join('images', ed('dg{}_logo_128.png')), srcpath)
|
||||||
|
|
||||||
|
def package_source_tgz(edition):
|
||||||
|
app_version = get_module_version('core_{}'.format(edition))
|
||||||
|
name = 'dupeguru-{}-src-{}.tar.gz'.format(edition, app_version)
|
||||||
|
dest = op.join('build', name)
|
||||||
|
print_and_do('hg archive -t tgz -S {}'.format(dest))
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
conf = json.load(open('conf.json'))
|
conf = json.load(open('conf.json'))
|
||||||
edition = conf['edition']
|
edition = conf['edition']
|
||||||
ui = conf['ui']
|
ui = conf['ui']
|
||||||
dev = conf['dev']
|
dev = conf['dev']
|
||||||
|
if args.src_pkg:
|
||||||
|
print("Creating source package for dupeGuru {}".format(edition.upper()))
|
||||||
|
package_source_tgz(edition)
|
||||||
|
return
|
||||||
print("Packaging dupeGuru {0} with UI {1}".format(edition.upper(), ui))
|
print("Packaging dupeGuru {0} with UI {1}".format(edition.upper(), ui))
|
||||||
if ui == 'cocoa':
|
if ui == 'cocoa':
|
||||||
package_cocoa(edition, args)
|
package_cocoa(edition, args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user