Skip to content

Commit

Permalink
making deploy_clojars more versbose.
Browse files Browse the repository at this point in the history
  • Loading branch information
phronmophobic committed Oct 16, 2021
1 parent 9c96bc5 commit faeb537
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions csource/deploy_clojars.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,18 @@
'x86_64' : 'x86-64',
}[env['arch']]


subprocess.run(['cp',
'libmembraneskia-{arch}.{shared_suffix}'.format(arch=env['arch'],shared_suffix=env['shared_suffix']),
'{platform}-{resource_suffix}/resources/{resource_prefix}-{resource_suffix}/libmembraneskia.{shared_suffix}'.format(
platform=env['platform'],
resource_suffix=resource_suffix,
resource_prefix=resource_prefix,
shared_suffix=env['shared_suffix'],
)], check=True)
def run(args):
print(args)
subprocess.run(args, check=True)

run(['cp',
'libmembraneskia-{arch}.{shared_suffix}'.format(arch=env['arch'],shared_suffix=env['shared_suffix']),
'{platform}-{resource_suffix}/resources/{resource_prefix}-{resource_suffix}/libmembraneskia.{shared_suffix}'.format(
platform=env['platform'],
resource_suffix=resource_suffix,
resource_prefix=resource_prefix,
shared_suffix=env['shared_suffix'],
)])

# cp libmembraneskia-${arch}.${shared_suffix} ${platform}-${resource_suffix}/resources/${resource_prefix}-${resource_suffix}/libmembraneskia.${shared_suffix}

Expand All @@ -36,8 +39,7 @@

os.chdir('{platform}-{resource_suffix}'.format(platform=env['platform'], resource_suffix=resource_suffix) )

subprocess.run(['clojure', '-X:jar', ':sync-pom', 'true', ':version', '"{version}"'.format(version=version)],
check=True)
run(['clojure', '-X:jar', ':sync-pom', 'true', ':version', '"{version}"'.format(version=version)])

subprocess.run(['clojure', '-M:deploy'])
run(['clojure', '-M:deploy'])

0 comments on commit faeb537

Please sign in to comment.