mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:56:31 +00:00
address false positive vulnerability detection #1
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
echo Build Cython app
|
||||
set CURRENT_DIR=%cd%
|
||||
|
||||
REM Change to the parent directory of the current location
|
||||
cd /d %~dp0
|
||||
|
||||
echo remove dist folder:
|
||||
if exist dist rmdir dist /s /q
|
||||
if exist build rmdir build /s /q
|
||||
|
||||
|
||||
echo install python and dependencies
|
||||
if not exist venv (
|
||||
python -m venv venv
|
||||
)
|
||||
|
||||
venv\Scripts\python -m pip install --upgrade pip
|
||||
venv\Scripts\pip install -r requirements.txt
|
||||
venv\Scripts\pip install --upgrade pyinstaller pyinstaller-hooks-contrib
|
||||
|
||||
venv\Scripts\python setup.py build_ext --inplace
|
||||
if %errorlevel% neq 0 (
|
||||
echo "Error building cython extension"
|
||||
exit /b %errorlevel%
|
||||
)
|
||||
|
||||
echo install azaion-loader
|
||||
venv\Scripts\pyinstaller --name=azaion-loader ^
|
||||
--collect-all requests ^
|
||||
--collect-all boto3 ^
|
||||
--collect-all msgpack ^
|
||||
--collect-all zmq ^
|
||||
--collect-all jwt ^
|
||||
--collect-all boto3 ^
|
||||
--collect-all cryptography ^
|
||||
--collect-all yaml ^
|
||||
--collect-all loguru ^
|
||||
--hidden-import constants ^
|
||||
--hidden-import file_data ^
|
||||
--hidden-import remote_command ^
|
||||
--hidden-import remote_command_handler ^
|
||||
--hidden-import user ^
|
||||
--hidden-import security ^
|
||||
--hidden-import cdn_manager ^
|
||||
--hidden-import credentials ^
|
||||
--hidden-import api_client ^
|
||||
--hidden-import hardware_service ^
|
||||
start.py
|
||||
|
||||
|
||||
robocopy "dist\azaion-loader\_internal" "..\dist-azaion\_internal" "security.cp312-win_amd64.pyd" "cdn_manager.cp312-win_amd64.pyd"
|
||||
robocopy "dist\azaion-loader\_internal" "..\dist-azaion\_internal" "constants.cp312-win_amd64.pyd" "credentials.cp312-win_amd64.pyd" "api_client.cp312-win_amd64.pyd"
|
||||
robocopy "dist\azaion-loader\_internal" "..\dist-azaion\_internal" "hardware_service.cp312-win_amd64.pyd" "user.cp312-win_amd64.pyd"
|
||||
robocopy "dist\azaion-loader\_internal" "..\dist-azaion\_internal" "main_loader.cp312-win_amd64.pyd"
|
||||
|
||||
robocopy "dist\azaion-loader\_internal" "..\dist-dlls\_internal" /E
|
||||
robocopy "dist\azaion-loader" "..\dist-azaion" "azaion-loader.exe"
|
||||
|
||||
cd /d %CURRENT_DIR%
|
||||
Reference in New Issue
Block a user