You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: scripts/make-bindist
+12-13
Original file line number
Diff line number
Diff line change
@@ -4,32 +4,31 @@ from pathlib import Path
4
4
5
5
importargparse
6
6
importplatform
7
+
importshutil
7
8
importsubprocess
8
9
importzipfile
9
10
10
11
ROOT_DIR=Path(__file__).resolve().parent.parent
11
12
12
13
defmain():
13
14
parser=argparse.ArgumentParser(description='Creates a binary distribution of the language server')
14
-
parser.add_argument('-o', '--output', type=Path, default=ROOT_DIR/'bindists'/f'curry-language-server-{platform.machine().lower()}-{platform.system().lower()}.zip', help='The name of the output zip.')
15
+
parser.add_argument('-f', '--format', type=str, default='zip'ifplatform.system() =='Windows'else'gztar', help='The format of the output archive.')
16
+
parser.add_argument('-o', '--output', type=Path, default=ROOT_DIR/'bindists'/f'curry-language-server-{platform.machine().lower()}-{platform.system().lower()}', help='The name of the output archive.')
0 commit comments