-
Notifications
You must be signed in to change notification settings - Fork 1
/
release.py
41 lines (34 loc) · 1.67 KB
/
release.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
'''
Build the release as zip archiv.
usage: argv[1] the zip archive file
argv[2] version number.
Eclipse Public License - v 2.0
Copyright (c) 2018 Johannes Gerbershagen <[email protected]>
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
NO WARRANTY:
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, AND TO THE EXTENT
PERMITTED BY APPLICABLE LAW, THE PROGRAM IS PROVIDED ON AN "AS IS"
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF
TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE. Each Recipient is solely responsible for determining the
appropriateness of using and distributing the Program and assumes all
risks associated with its exercise of rights under this Agreement,
including but not limited to the risks and costs of program errors,
compliance with applicable laws, damage to or loss of data, programs
or equipment, and unavailability or interruption of operations.
'''
import os, platform
from os.path import join
import sys
def execute(cmd_parts):
print(' '.join(cmd_parts))
os.system(' '.join(cmd_parts))
execute(['zip', sys.argv[1], join('target', 'FOSSwareSearch-'+sys.argv[2]+'.jar' ),
join('target', 'github-api-1.96.prerelease.jar'), 'ConsoleWidth.dll', 'libConsoleWidth.so', 'fosss.py', 'README.md',
'install_fosswareSearch.xml', 'Install.py',
join('lang', 'Resource_de.properties'), 'config.json', 'log.properties'
])