mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 09:49:51 +00:00
package.py: include submodules src in tar.gz
Otherwise, that results in an incomplete source package!
This commit is contained in:
parent
55ad9ef33a
commit
0f4992de47
13
package.py
13
package.py
@ -102,8 +102,19 @@ def package_source_tgz():
|
|||||||
print("Creating git archive")
|
print("Creating git archive")
|
||||||
app_version = get_module_version('core')
|
app_version = get_module_version('core')
|
||||||
name = 'dupeguru-src-{}.tar'.format(app_version)
|
name = 'dupeguru-src-{}.tar'.format(app_version)
|
||||||
dest = op.join('build', name)
|
base_path = os.getcwd()
|
||||||
|
build_path = op.join(base_path, 'build')
|
||||||
|
dest = op.join(build_path, name)
|
||||||
print_and_do('git archive -o {} HEAD'.format(dest))
|
print_and_do('git archive -o {} HEAD'.format(dest))
|
||||||
|
# Now, we need to include submodules
|
||||||
|
SUBMODULES = ['hscommon', 'qtlib', 'cocoalib']
|
||||||
|
for submodule in SUBMODULES:
|
||||||
|
print("Adding submodule {} to archive".format(submodule))
|
||||||
|
os.chdir(submodule)
|
||||||
|
archive_path = op.join(build_path, '{}.tar'.format(submodule))
|
||||||
|
print_and_do('git archive -o {} HEAD'.format(archive_path))
|
||||||
|
os.chdir(base_path)
|
||||||
|
print_and_do('tar -A {} -f {}'.format(archive_path, dest))
|
||||||
print_and_do('gzip {}'.format(dest))
|
print_and_do('gzip {}'.format(dest))
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user