Skip to content

Commit 876ebd4

Browse files
committed
chores: pack LICENSE to release
1 parent 267e4e3 commit 876ebd4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

release/build.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@
2323
['tools', 'exec/tools'],
2424
]
2525

26+
copy = [
27+
'config',
28+
'systemd-service',
29+
'LICENSE',
30+
]
31+
32+
copy = map(lambda x: f'../{x}', copy)
33+
copy = ' '.join(copy)
34+
2635
for o, a in t:
2736
dir = f'certdx_{o}_{a}'
2837
for e, s in exec:
@@ -33,7 +42,7 @@
3342
f'''-o {dir}/certdx_{e}{".exe" if o == "windows" else ""} '''
3443
f'''../{s}''', shell=True
3544
)
36-
subprocess.run(f"cp -r ../config {dir} && cp -r ../systemd-service {dir}", shell=True)
45+
subprocess.run(f"cp -r {copy} {dir}", shell=True)
3746
subprocess.run(f"zip -r {dir}.zip {dir}", shell=True)
3847
subprocess.run(f"rm -r {dir}", shell=True)
3948

0 commit comments

Comments
 (0)