forked from DeepSecurityHealthCheck/HealthCheckCore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec_windows.yml
34 lines (30 loc) · 1.02 KB
/
buildspec_windows.yml
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
version: 0.2
phases:
install:
runtime-versions:
python: 3.8
pre_build:
commands:
- echo "Pre build"
- mkdir keys
- aws s3 cp s3://dshc-public/PUBLIC_key.pem ./keys
- pip3 install pyinstaller
- python.exe -m pip install -U setuptools
- pip3 install --upgrade -r requirements.txt
- pip3 install ./vendor/SDK/
build:
commands:
- echo "Building"
- pyinstaller.exe -F extractor.py --icon=tmlogo.ico --hidden-import=pkg_resources.py2_warn --hidden-import=deepsecurity -p c:\python38\lib\site-packages\requests -p c:\python38\lib\site-packages\colorama
#
post_build:
commands:
- echo "Post build"
- python.exe utils/gen_config.py
- mkdir dist/keys
- cp keys/* dist/keys
- mkdir dist/config
- cp config/api_config.yml dist/config/
- cp docs/EXTRACTOR_README.md dist/
- powershell.exe ./utils/zip_extractor_windows.ps1
- aws s3 cp extractor-windows.zip s3://dshc-public/extractors/