File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 44import subprocess
55import os
66import zipfile
7-
7+ import sys
88
99def make_release_tarballs ():
1010 VERSION = None
@@ -46,6 +46,8 @@ def make_release_tarballs():
4646 z .write ("releases/" + target_dir + "/zigverm" +
4747 exe_ext , target_dir + "/zigverm" )
4848 z .write ("releases/" + target_dir + "/zig" + exe_ext , target_dir + "/zig" )
49+ z .write ("LICENSE" , target_dir + "/LICENSE" )
50+ z .write ("README.md" , target_dir + "/README" )
4951 except subprocess .CalledProcessError as e :
5052 print ("\n \n ===========================================================" )
5153 print (f"ERROR: Workgroup failed with exit code { e .returncode } " )
@@ -57,6 +59,8 @@ def main():
5759
5860 if args [1 ] == "make-release" :
5961 make_release_tarballs ()
62+ else :
63+ print (f"\x1b [33minvalid usage. No such subcommand '{ args [1 ]} '" , file = sys .stderr )
6064
6165
6266if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments